FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Sphere of sorts
+ Collaboration diagram for Sphere of sorts:

Spheres that can be connected to other simObjects.

Example configuration excerpt

<Lib
LibName = "marine_elements"
SimObject = "Net/Sphere"
Name = "S"
Rho = "1025"
SphereD = "0.1"
SphereMass = "1000"
D = "0.01"
/>

Input Ports

Name Width Description
Force 3 Force acting on the sphere.

Output Ports

Name Width Description
Position 3 Position of the sphere.
Velocity 3 Velocity of the sphere.

Configuration parameters

Name Width Description
Rho 1 ...
SphereD 1 Diameter of the sphere.
SphereMass 1 Mass of the sphere.
D 1 Diameter of a cable attached to the sphere.
SphereMesh 1 The visualization mesh (geometry) of the Sphere, specified by its filename (Default: fhSphere.mesh).
SphereMaterial 1 The visualization material of the Sphere, specified by its name (Default: firebrick2).

Initial conditions

Name Width Description
Position 3 Position of the sphere.
Velocity 3 Velocity of the sphere.

Full example file

<Contents>
<OBJECTS>
<Lib
LibName ="marine_elements"
SimObject ="Net/Sphere"
Name ="S"
Rho = "1025"
SphereD = "1"
SphereMass = "536.7"
D = "0.01"
/>
<Lib
LibName="environment"
SimObject="Environment"
Name="Environment"
Waves.Model="Component"
Waves.NumWaves="0"
Bathymetry.Depth="500"
Current.Model = "Constant"
Current.Vector = "1,0,0"
/>
<Lib
LibName = "marine_elements"
SimObject = "RbCable/6DofCable"
Name = "C"
Length = "6"
numElements = "3"
Alpha = "0.5"
Beta = "0.5"
Epsilon = "1e-6"
Weight = "200"
Radius = "0.005"
Damping_Tangential = "0.01"
Damping_Normal = "1.2"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
S.Force= "0,0,0"
C.posA = "0,0,0"
C.posB = "S.Position"
C.velA = "0,0,0"
C.velB = "0,0,0"
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
S.Position = "0.1,0.1,5.9"
S.Velocity = "0,0,0"
/>
</INITIALIZATION>
<SIMULATION>
<Timing TStart="0" TEnd="30"/>
<Integrator Method="RK45_i" NumCores="1" LogStates="1" UseRSSNorm="0">
<StepControl StepMax="0.002" StepMin="0.00000001" AbsTol="1e-3" RelTol="1e-3"/>
</Integrator>
<!-- TODO migrate_v3: FileOutput="objects:all" -> configure via <OBSERVERS> section -->
</SIMULATION>
</Contents>

This SimObject is referred to as Net/Sphere