CalculateMassProperties

CalculateMassProperties[linkage, dens]
calculates the mass properties of all links of linkage using dens density value and assigns the {frame,mass,moment of inertia } values to the $LDMassProperties record. The function returns the updated LinkageData record.
CalculateMassProperties[linkage, names, dens]
calculates the mass properties of list of links ( names) of linkage using dens density value.
CalculateMassProperties[linkage, {name1→dens1, name2→dens2, ...}]
calculates the mass properties of the specifies links using the specified densities.
CalculateMassProperties[linkage]
calculates the mass properties of all geometries using unit density.
  • CalculateMassProperties calls VolumeIntegration function for the specified links of the mechanism.
  • The function assumes that the faces of the link geometries are polygons with vertices in clockwise order. If the vertices are anti-clockwise order the material is placed the other side of the polygon, which results incorrect volume calculation.
  • The mass property calculation is based on closed polyhedron models. If the mas property calculation fails on one geometry the mass property of that link will not be appended to $LDMassProperties record.
Load the LinkageDesigner package
In[1]:=
Click for copyable input
This load piston linkage
In[2]:=
Click for copyable input
Out[2]=
Calculate the mass properties of linkage
In[3]:=
Click for copyable input
Out[3]=
Display the LinkageData of the resulted linkage
In[4]:=
Click for copyable input
Out[4]=