WOLFRAM SYSTEM MODELER

Submarine

Simplified model of a submarine with buoyancy dynamics and translational damping

Diagram

Wolfram Language

In[1]:=
SystemModel["DocumentationExamples.Control.Submarine"]
Out[1]:=

Information

Wolfram Language Documentation Examples

This library contains models used in the documentation of system modeling functionality in Wolfram Language. These examples and this library can be explored in the Wolfram Language documentation.

Parameters (9)

R

Value: 12 * uniformSizeScale

Type: Radius (m)

Description: Effective radius for a plane section of the submarine at its midsection

L

Value: 170 * uniformSizeScale

Type: Length (m)

Description: Total length of submarine

semiMajorAxisFront

Value: 35 * uniformSizeScale

Type: Length (m)

Description: Effective semi-major axis of ellipsoid to approximately model frontside of submarine

semiMajorAxisBack

Value: 60 * uniformSizeScale

Type: Length (m)

Description: Effective semi-major axis of ellipsoid to approximately model backside of submarine

rho0

Value: 510

Type: Density (kg/m³)

Description: Average density of submarine

rho

Value: 2 * rho0

Type: Density (kg/m³)

Description: Density of fluid

VSub

Value: 64710.819 * uniformSizeScale ^ 3

Type: Volume (m³)

Description: Volume of submarine, computed from the shape used in subShape

b

Value: 5000000

Type: TranslationalDampingConstant (N⋅s/m)

Description: Linear translational damping constant

uniformSizeScale

Value: 1

Type: Length (m)

Description: Factor by which dimensions of submarine are rescaled

Connectors (3)

f

Type: RealInput

Description: Vertical external force applied at the center of mass of the submarine

deltarho

Type: RealInput

Description: Deviation from submarines's average density

y

Type: RealOutput

Description: Position of center of mass with respect to a frame placed at the surface of the fluid

Components (7)

world

Type: World

Description: World coordinate system + gravity field + default animation definition

fluidSurface

Type: Rectangle

Description: Visualizing a planar rectangular surface

buoyancyDynamics

Type: BuoyancyDynamics

Description: Approximately models buoyancy dynamics, representing the shape of the submarine as a cylinder attached to two halves of ellipsoids

position

Type: Position

Description: Forced movement of a flange according to a reference position

prismatic

Type: Prismatic

Description: Prismatic joint (1 translational degree-of-freedom, 2 potential states, optional axis flange)

subBody

Type: Body

Description: Rigid body with mass, inertia tensor and one frame connector (12 potential states)

subShape

Type: FixedShape

Description: Visualizing an elementary shape with dynamically varying shape attributes (has one frame connector)