model.massProp().create(<tag>,"MassProperties");model.massProp(<tag>).selection();model.massProp().create(<tag>,“MassProperties”) creates a mass properties object that computes variables for mass properties such as total mass and the center of mass.model.massProp(<tag>).selection().set(...) defines a local selection that assigns the mass properties to geometric entities that act as sources. For a complete list of methods available under selection(), see model.selection().model.massProp(<tag>).set("densitySource", "fromSpecifiedPhysics")model.massProp(<tag>).feature("mc1").set("physics", "solid");You can also specify a user-defined density. For example, to specify the density to be 1107 kg/m3, usemodel.massProp(<tag>).set("densitySource", "userDefined");model.massProp(<tag>).set("expr","1107[kg/m^3]");model.massProp(<tag>).set("createCenterOfMass","on");model.massProp(<tag>).set("createMomentOfInertia","off");model.massProp(<tag>).create("mc1","MassContributions");model.massProp(<tag>).feature("mc1").set("expr", "3");The massProp feature accepts the following properties:
Table 2-61: massProp properties fromSpecifiedPhysics|userDefined
• mass1.mass and mass1.volume for the mass and volume, respectively.
• mass1.CMX, and so on, for the coordinates of the center of mass.
• mass1.IXY, and so on, for the components of the moment of inertia.
• mass1.Ip1, and so on, for the moment of inertia principal values.
• mass1.Ip1X, and so on, for the moment of inertia principal directions.