Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Solid cylinder with variable mass and size

**Library:**Body Elements / Variable Mass

The Variable Cylindrical Solid block adds to the attached frame a solid cylinder with variable mass and side. The mass, radius, and length of the cylinder can each be constant or vary with time. A variable quantity can be specified directly as a physical signal or it can be calculated as a function of the remaining quantities. Either the mass or the cylinder dimensions can be calculated during simulation, but not both simultaneously.

A reference frame encodes the position and orientation of the solid in a model. The
frame is defined relative to the solid geometry so that its origin is located at the
intersection of the longitudinal axis of the cylinder (as observed with a ```
Z
up
```

view convention). This relationship is preserved during simulation.
Length increases asymmetrically relative to the bottom surface, along the positive
direction of the *z*-axis.

**Variable Cylinder with Length Calculated from Mass**

Visualization is dynamic. Solid dimensions update continuously as they occur, in the
visualization pane of **Mechanics Explorer**. The initial dimensions of
the solid depend on the parameters and physical signals that you specify. It is possible
for a variable dimension to begin with a zero value—for example, if it derives from a
physical signal whose initial value is zero also.

Density can itself be constant or variable. This quantity is specified as a constant if at least one solid parameter is calculated during simulation. It is calculated as a variable if all solid parameters are explicitly specified, either as (constant) block parameters or as physical signals. As in the case of the Solid block, you can specify a negative density, for example, to model voids in compound bodies.

Rigid Transform | Solid | Variable Brick Solid | Variable Spherical Solid

Was this topic helpful?