This information is part of the Modelica Standard Library maintained by the Modelica Association.

BodyCylinder

Rigid body with cylinder shape. Mass and animation properties are computed from cylinder data and density (12 potential states)

Information
CONNECTORS
CLOSE ALL
NameTypeDescription
frame_aFrame_aCoordinate system fixed to the component with one cut-force and cut-torque
frame_bFrame_bCoordinate system fixed to the component with one cut-force and cut-torque
PARAMETERS
NameTypeDefault ValueDescription
animationBooleantrue= true, if animation shall be enabled (show cylinder between frame_a and frame_b)
rPosition[3]Vector from frame_a to frame_b, resolved in frame_a
r_shapePosition[3]{0,0,0}Vector from frame_a to cylinder origin, resolved in frame_a
lengthDirectionAxisr - r_shapeVector in length direction of cylinder, resolved in frame_a
lengthLengthModelica.Math.Vectors.length(r - r_shape)Length of cylinder
diameterDistancelength/world.defaultWidthFractionDiameter of cylinder
innerDiameterDistance0Inner diameter of cylinder (0 <= innerDiameter <= Diameter)
densityDensity7700Density of cylinder (e.g., steel: 7700 .. 7900, wood : 400 .. 800)
angles_fixedBooleanfalse= true, if angles_start are used as initial values, else as guess values
angles_startAngle[3]{0,0,0}Initial values of angles to rotate frame_a around 'sequence_start' axes into frame_b
sequence_startRotationSequence{1,2,3}Sequence of rotations to rotate frame_a into frame_b at initial time
w_0_fixedBooleanfalse= true, if w_0_start are used as initial values, else as guess values
w_0_startAngularVelocity[3]{0,0,0}Initial or guess values of angular velocity of frame_a resolved in world frame
z_0_fixedBooleanfalse= true, if z_0_start are used as initial values, else as guess values
z_0_startAngularAcceleration[3]{0,0,0}Initial values of angular acceleration z_0 = der(w_0)
enforceStatesBooleanfalse = true, if absolute variables of body object shall be used as states (StateSelect.always)
useQuaternionsBooleantrue = true, if quaternions shall be used as potential states otherwise use 3 angles as potential states
sequence_angleStatesRotationSequence{1,2,3} Sequence of rotations to rotate world frame into frame_a around the 3 angles used as potential states
radiusDistancediameter/2Radius of cylinder
innerRadiusDistanceinnerDiameter/2Inner-Radius of cylinder
moMassdensity*pi*length*radius*radiusMass of cylinder without hole
miMassdensity*pi*length*innerRadius*innerRadiusMass of hole of cylinder
I22Inertia(mo*(length*length + 3*radius*radius) - mi*(length*length + 3*innerRadius*innerRadius))/12Inertia with respect to axis through center of mass, perpendicular to cylinder axis
mMassmo - miMass of cylinder
ROrientationFrames.from_nxy(r, {0,1,0})Orientation object from frame_a to frame spanned by cylinder axis and axis perpendicular to cylinder axis
r_CMPosition[3]Modelica.Math.Vectors.normalize(r)*length/2Position vector from frame_a to center of mass, resolved in frame_a
IInertia[3,3]Frames.resolveDyade1(R, diagonal({(mo*radius*radius - mi*innerRadius*innerRadius)/2,I22,I22}))Inertia tensor of cylinder with respect to center of mass, resolved in frame parallel to frame_a
USED IN EXAMPLES
Modelica.Mechanics.MultiBody.Examples.Loops.Utilities.Engine1bBase
Model of one cylinder engine with gas force
Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic
One kinematic loop with four bars (with JointSSP joint; analytic solution of non-linear algebraic loop)
Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2
One kinematic loop with four bars (with UniversalSpherical joint; 1 non-linear equation)
Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1
One kinematic loop with four bars (with only revolute joints; 5 non-linear equations)
Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic
Model of one cylinder engine with gas force and analytic loop handling
Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b
Model of one cylinder engine with gas force and preparation for assembly joint JointRRP
Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a
Model of one cylinder engine
Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque
Demonstrate usage of ForceAndTorque element
Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects
Demonstrates that a cylindrical body can be replaced by Rotor1D model
Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint
USED IN COMPONENTS
Modelica.Mechanics.MultiBody.Examples.Loops.Utilities.Cylinder
Cylinder with rod and crank of a combustion engine