Assembly: VM.API.Pre.Links.dll This class implements APIs for hydro dynamic.
Inheritance
object ← HydroDynamicAPIExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Methods
CreateHydroForce(SubSystemDocument, Obj, Obj, IEnumerable<Obj>, string)
Parameters
document SubSystemDocument
baseWater Obj
hullBody Obj
actionEntities IEnumerable<Obj>
name string
Returns
ObjCreateMasslessTrackLink(SubSystemDocument, Obj, Obj, IEnumerable<PathData>, ExpressionValueVariable?, ExpressionValueVariable?, string)
Create MTL.Parameters
document SubSystemDocument
The document to create the massless track link.
baseEntity Obj
The base entity.
hullMarker Obj
The hull marker.
paths IEnumerable<PathData>
The path information.
thickness ExpressionValueVariable?
The thickness.
width ExpressionValueVariable?
The width.
name string
The name of the MTL. If empty, default name starts with ‘MTL_’ will be generated and used.
Returns
Obj The new MTL object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘baseEntity’, ‘hullMarker’ are null. ArgumentNullException Will be thrown if ‘paths’ is null. ArgumentException Will be thrown if type of ‘baseEntity’ is not IContactableRigid3D. ArgumentException Will be thrown if type of ‘hullMarker’ is not IMarker. ArgumentOutOfRangeException Will be thrown if ‘thickness’, ‘width’ value equal to or less than 0. ArgumentException Will be thrown if type of ‘Marker’ of paths is not IMarker. ArgumentOutOfRangeException Will be thrown if type of ‘WindingRadius’ of paths value equal to or less than 0.CreateMultiMasslessTrackLink(SubSystemDocument, IEnumerable<Obj>, Obj, IEnumerable<PathData>, ExpressionValueVariable?, ExpressionValueVariable?, string)
Create MTL.Parameters
document SubSystemDocument
The document to create the massless track link.
baseEntities IEnumerable<Obj>
The base entities.
hullMarker Obj
The hull marker.
paths IEnumerable<PathData>
The path information.
thickness ExpressionValueVariable?
The thickness.
width ExpressionValueVariable?
The width.
name string
The name of the MTL. If empty, default name starts with ‘MTL_’ will be generated and used.
Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘baseEntities’, ‘hullMarker’ are null. ArgumentNullException Will be thrown if ‘paths’ is null. ArgumentException Will be thrown if type of Obj of ‘baseEntities’ is not IContactableRigid3D. ArgumentException Will be thrown if type of ‘hullMarker’ is not IMarker. ArgumentOutOfRangeException Will be thrown if ‘thickness’, ‘width’ value equal to or less than 0. ArgumentException Will be thrown if type of ‘Marker’ of paths is not IMarker. ArgumentOutOfRangeException Will be thrown if type of ‘WindingRadius’ of paths value equal to or less than 0.CreateSoilInteraction(SubSystemDocument, Obj, IEnumerable<Obj>, string)
Create SoilInteraction.Parameters
document SubSystemDocument
The document to create the soil interaction.
baseEntity Obj
The base entity.
actionEntities IEnumerable<Obj>
The action entities.
name string
The name of the SoilInteraction. If empty, default name starts with ‘SoilInteraction_’ will be generated and used.
Returns
Obj The new SoilInteraction object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘baseEntity’ are null. ArgumentException Will be thrown if type of ‘baseEntity’ is not IContactableRigid3D. ArgumentException Will be thrown if item type of ‘actionEntities’ is not IMarker.CreateThrustForce(SubSystemDocument, Obj, Obj, Vector, Vector, string)
Parameters
document SubSystemDocument
baseWater Obj
body Obj
position Vector
thrustingAxis Vector
name string
Returns
ObjCreateWater(SubSystemDocument, Obj, Vector, Vector, Vector, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, string)
Create Water.Parameters
document SubSystemDocument
The document to create the water.
body Obj
The body.
position Vector
The position.
axisZ Vector
The z axis.
axisX Vector
The x axis.
lengthInXAxis ExpressionValueVariable?
The length in x axis.
widthInYAxis ExpressionValueVariable?
The width in y axis.
depthOfDeepWater ExpressionValueVariable?
The depth of deep water.
name string
The name of the Water. If empty, default name starts with ‘Water_’ will be generated and used.