Marine systems simulation
HydroBallCable.xml
1<Contents>
2 <OBJECTS>
3 <Lib
4 LibName = "fhsim_base"
5 SimObject = "Example/HydroBall"
6 Name = "Ball"
7 Radius = "1.0"
8 Density = "1100"
9 />
10 <Lib
11 LibName = "fhsim_base"
12 SimObject = "Example/HydroCable"
13 Name = "Cable"
14 Diameter = "0.02"
15 Density = "2000"
16 Modulus = "20"
17 Length = "20"
18 InternalPoints = "7"
19 />
20 <Lib
21 LibName = "fhsim_base"
22 SimObject = "Src/Sine"
23 Name = "NorthCurrent"
24 PortWidth = "1"
25 PhaseRad = "0"
26 PeriodS = "200"
27 StartTime = "0"
28 StopTime = "-1"
29 Bias = "0.7"
30 Amplitude = "0.3"
31 />
32 <Lib
33 LibName = "fhsim_base"
34 SimObject = "Signal/Mux"
35 Name = "Current"
36 NumInput = "3"
37 PortWidth = "3"
38 InPortWidth1 = "1"
39 InPortWidth2 = "1"
40 InPortWidth3 = "1"
41 />
42 </OBJECTS>
43
44 <INTERCONNECTIONS>
45 <Connection
46 Ball.ExternForce = "Cable.ForceB"
47 Ball.Current = "Current.Out"
48 Current.In1 = "NorthCurrent.Out"
49 Current.In2 = "0.5"
50 Current.In3 = "0.1"
51 />
52
53 <Connection
54 Cable.PositionA = "0,0,0"
55 Cable.PositionB = "Ball.Position"
56 Cable.VelocityA = "0,0,0"
57 Cable.VelocityB = "Ball.Velocity"
58 Cable.Current = "Current.Out"
59 />
60 </INTERCONNECTIONS>
61
62 <INITIALIZATION>
63 <InitialCondition
64 Ball.Position = "0,6.15,18.9"
65 Ball.Velocity = "0,0,0"
66 />
67 </INITIALIZATION>
68
69 <INTEGRATION>
70 <Engine
71 IntegratorMethod="0"
72 NumCores="1"
73 TOutput="0, 0:1e-1:Inf, 1000"
74 stepsize ="2e-5"
75 FileOutput="objects:ports"
76 />
77
78 </INTEGRATION>
79</Contents>