Main Content

Mass (PB)

R2026b

Point mass with gravitational effects

Since R2024b

  • Mass (PB) block

Libraries:
Simscape / Foundation Library / Translational / Elements

Description

The Mass (PB) block represents a point mass with gravitational effects that moves along an inclined rail. Gravity can induce motion along the rail. The force flow equations are:

facc=m⋅v˙

facc=f+fgp

fgp=−m⋅g⋅sin(β)

where:

  • facc is force proportional to mass acceleration. Positive force accelerates the mass in the positive direction.

  • f is port force, force of the other mechanical components in the network acting on the mass.

  • fgp is force proportional to the parallel component of gravitational acceleration, that is, to the gravitational acceleration acting along the rail.

  • m is the mass.

  • v is the mass velocity.

  • g is the gravitational acceleration.

  • β is the rail incline angle.

The Mechanical Translational Properties (PB) block specifies the gravitational acceleration and rail incline angle in the network. For more information, see Interpreting Logged Forces in Mass Blocks.

Variables

To set the priority and initial target values for the block variables prior to simulation, use the Initial Targets section in the block dialog box or Property Inspector. For more information, see Set Priority and Initial Target for Block Variables.

Nominal values provide a way to specify the expected magnitude of a variable in a model. Using system scaling based on nominal values increases the simulation robustness. Nominal values can come from different sources, one of which is the Nominal Values section in the block dialog box or Property Inspector. For more information, see Modify Nominal Values for a Block Variable.

Examples

Ports

Conserving

expand all

Position-based translational conserving port that connects the mass to the physical network.

Programmatic Use

Port: R

Parameters

expand all

Mass value. The mass is constant during simulation.

Programmatic Use

Parameter: mass

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"fl_lib/Translational/Elements/Mass (PB)"

Example: add_block("fl_lib/Translational/Elements/Mass (PB)","myModel/myBlock",MakeNameUnique="on")

For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2024b

expand all