Cone
Cone rigid body
Description
Connections
Parameters
Equations
Examples
The Cone component models a homogeneous conical rigid body along a given axis with a predefined density. Based on the properties, i.e., axial unit vector, length, radius, and density, the center of mass, total mass, and moments of inertia are calculated for this rigid body.
Name
Modelica ID
frame__a
Coordinate on one end of the cone axis
frame_a
frame__b
Coordinate on the other end of the cone axis
frame_b
frame__cn
An array of additional frames on the cone axis
frame_c[n]
Default
Units
e__axis
1,0,0
Axial unit vector
e_axis
L
1
m
Cone length
R__a
0.4
Cone radius at frame_a
Ra
R__b
0.1
Cone radius at frame_b
Rb
R__ai
0
Cone inner radius at frame_a
Rai
R__bi
Cone inner radius at frame_b
Rbi
Select density
User defined
Select a predefined material density
selectDensity
ρ
1000
kgm3
Cylinder user-defined material density
customDensity
Use additional frames
false
True means additional frames can be added
addFrames
L__add
L2
Each value in this array defines a frame on the cylinder axis w.r.t. frame_a
L_add[:]
Use initial conditions
True means parameters for specifying initial conditions for frame_a are enabled. Refer to: Rigid Body
useICs
Show visualization
true
True means the cylinder geometry is visible in the 3-D playback
visualization
Transparent
True means the geometry is transparent in the 3-D playback
transparent
Color
Cylinder color in the 3-D playback
color
The two end frames of the cone have the same orientation. The translation vectors L e__axis and L__com e__axis w.r.t. frame_a define the frame_b and the center of mass frame, respectively.
Center of mass location is calculated as
L__com=L⁢R__a2+2⁢R__a⁢R__b−R__ai2−2⁢R__ai⁢R__bi+3⁢R__b2−3⁢R__bi24⁢R__a2+4⁢R__a⁢R__b−4⁢R__ai2−4⁢R__ai⁢R__bi+4⁢R__b2−4⁢R__bi2
Cone mass is calculated as
m=π⁢L ρ R__a2+R__a⁢R__b−R__ai2−R__ai⁢R__bi+R__b2−R__bi23
where the cone material density, ρ, can be defined using the "Select density" parameter. This parameter lets the user either enter a value or select among predefined material densities.
Figure 1: Different options for the "Select density" property
Assuming the default direction of 1,0,0 for the cylinder axis, the moments of inertia expressed from the center of mass frame are
I__xx=π⁢ρ L R__a4+R__a3⁢R__b+R__a2⁢R__b2+R__a⁢R__b3−R__ai4−R__ai3⁢R__bi−R__ai2⁢R__bi2−R__ai⁢R__bi3+R__b4−R__bi410
I__yy=I__zz=3⁢L⁢ρ⁢π⁢4⁢R__ai6+8⁢R__ai5⁢R__bi+L2−4⁢R__a2−4⁢R__a⁢R__b−4⁢R__b2+12⁢R__bi2⁢R__ai4+4⁢R__bi⁢L2−R__a2−R__a⁢R__b−R__b2+3⁢R__bi2⁢R__ai3+12⁢R__bi4+10⁢L2−4⁢R__a2−4⁢R__a⁢R__b−4⁢R__b2⁢R__bi2−4⁢R__a4−4⁢R__a3⁢R__b+−2⁢L2−4⁢R__b2⁢R__a2+−4⁢L2⁢R__b−4⁢R__b3⁢R__a−4⁢R__b4−26⁢L2⁢R__b23⁢R__ai2−4⁢R__bi⁢−2⁢R__bi4+−L2+R__a2+R__a⁢R__b+R__b2⁢R__bi2+R__a4+R__a3⁢R__b+L2+R__b2⁢R__a2+23⁢L2⁢R__b+R__b3⁢R__a+L2⁢R__b2+R__b4⁢R__ai+4⁢R__bi6+L2−4⁢R__a2−4⁢R__a⁢R__b−4⁢R__b2⁢R__bi4+−4⁢R__a4−4⁢R__a3⁢R__b+−4⁢R__b2−26⁢L23⁢R__a2+−4⁢L2⁢R__b−4⁢R__b3⁢R__a−2⁢L2⁢R__b2−4⁢R__b4⁢R__bi2+4⁢R__a6+8⁢R__a5⁢R__b+L2+12⁢R__b2⁢R__a4+4⁢L2⁢R__b+12⁢R__b3⁢R__a3+10⁢L2⁢R__b2+12⁢R__b4⁢R__a2+4⁢L2⁢R__b3+8⁢R__b5⁢R__a+L2⁢R__b4+4⁢R__b6240⁢R__a2+240⁢R__a⁢R__b−240⁢R__ai2−240⁢R__ai⁢R__bi+240⁢R__b2−240⁢R__bi2
The right-hand side of these equations will interchange if another axial unit vector is specified.
Swinging T-Shaped Object
Figure 2 shows the layout of a MapleSim model that uses two Cone components to simulate a freely swinging T-shaped object. Note how the frame_a of the vertical cylinder (axis = [0,1,0]) is connected to the frame_c of the horizontal cylinder (axis=[1,0,0]) to form the T-shaped object. For the horizontal cone, frame_c is located halfway L__add=L2 between frame_a and frame_b. A snapshot of the 3-D playback is shown in Figure 3.
Figure 2: Model layout
Figure 3: 3-D playback snapshot
See Also
Machine Elements
Multibody
Download Help Document