- Author
- Jørgen Haavind Jensen
- Date
- Q3 2011 JHJ: Initial version.
Example configuration excerpt
2 LibName =
"marine_elements"
3 SimObject =
"RbCable/Collision"
Input Ports
This simObject does not have any input ports.
Output Ports
| Name | Width | Description |
| energy | 3 | ... |
| momentum | 3 | ... |
Configuration parameters
| Name | Width | Description |
| N | 1 | Number of elements. |
| A | 1 | Alpha ... |
| B | 1 | Beta ... |
| E | 1 | Epsilon ... |
Initial conditions
| Name | Width | Description |
| pos | 3 | Position of point \(i \in {0\cdots\text{N}-1}\). |
| vel | 3 | Velocity of point \(i \in {0\cdots\text{N}-1}\). |
Full example file
1<Contents>
2 <OBJECTS>
3 <Lib
4 LibName = "marine_elements"
5 SimObject = "RbCable/Collision"
6 Name = "COL"
7 N = "3"
8 A = "0.1"
9 B = "0.1"
10 E = "1e-6"
11 />
12 </OBJECTS>
13
14 <INTERCONNECTIONS>
15 <Connection
16 />
17 </INTERCONNECTIONS>
18
19 <INITIALIZATION>
20 <InitialCondition
21 COL.pos0 = "0,1,0"
22 COL.pos1 = "0,1.5,0"
23 COL.pos2 = "0,2,0"
24 COL.vel0 = "0,0,0"
25 COL.vel1 = "0,0,0"
26 COL.vel2 = "0,0,0"
27 />
28 </INITIALIZATION>
29
30 <SIMULATION>
31 <Timing TStart="0" TEnd="10"/>
32 <Integrator Method="RK45_i" NumCores="1" LogStates="0" UseRSSNorm="0">
33 <StepControl Step="1e-4" StepMax="100" StepMin="1e-6" AbsTol="1e-7" RelTol="1e-7"/>
34 </Integrator>
35
36 </SIMULATION>
37</Contents>
1<Contents>
2 <OBJECTS>
3 <Lib
4 LibName = "marine_elements"
5 SimObject = "RbCable/Collision"
6 Name = "COL"
7 N = "3"
8 A = "0.1"
9 B = "0.1"
10 E = "1e-6"
11 />
12 </OBJECTS>
13
14 <INTERCONNECTIONS>
15 <Connection
16 />
17 </INTERCONNECTIONS>
18
19 <INITIALIZATION>
20 <InitialCondition
21 COL.pos0 = "0,1,0"
22 COL.pos1 = "0,1.5,0"
23 COL.pos2 = "0,2,0"
24 COL.vel0 = "0,0,0"
25 COL.vel1 = "0,0,0"
26 COL.vel2 = "0,0,0"
27 />
28 </INITIALIZATION>
29
30 <SIMULATION>
31 <Timing TStart="0" TEnd="10"/>
32 <Integrator Method="RK45_i" NumCores="1" LogStates="0" UseRSSNorm="0">
33 <StepControl Step="1e-4" StepMax="100" StepMin="1e-6" AbsTol="1e-7" RelTol="1e-7"/>
34 </Integrator>
35
36 </SIMULATION>
37</Contents>