Main Content

Mass With Length & Friction (PB)

Mass with length, friction, and gravitational effects

Since R2024b

  • Mass With Length & Friction (PB) block

Libraries:
Simscape / Foundation Library / Translational / Elements

Description

The Mass With Length & Friction (PB) block represents a mass with length, gravitational effects, and friction that moves along an inclined rail. Gravity can induce motion along the rail. Gravity and an optional additional normal force induce friction with the stationary rail.

The Mass With Length & Friction (PB) block is essentially a structural component that consists of a Mass (PB) block connected to a Spacer (PB) block. The Mass (PB) block is also connected to port F of a Translational Friction (PB) block. Port B of the Translational Friction (PB) block is connected to an implicit reference.

Mass with length and friction schematic

The friction force is a function of relative velocity and is assumed to be the sum of Stribeck, Coulomb, and viscous components, as shown in the figure.

Friction force diagram

The force flow equations are:

facc=mv˙

facc=f+fgp+ffriction

fgp=mgsin(θ)

ffriction=2e(FbrkFC)exp((vvSt)2)vvStFCtanh(vvCoul)fvv

FN=FN,ext+fgn

fgn=mg|cos(θ)|

Fbrk=FNKbrk

FC=FNKC

vSt=vbrk2

vCoul=vbrk/10

length=xFxB

xLog=xB+fractionLoglength

power_dissipated=ffrictionv

where:

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

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

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

  • fgn is force proportional to the normal component of gravitational acceleration, that is, to gravitational acceleration acting in the direction normal to the rail.

  • ffriction is the friction force.

  • m is the mass.

  • v is the mass velocity. Ports B and F have the same velocity, vB = vF.

  • g is the gravitational acceleration.

  • θ is the rail incline angle.

  • FN is the normal force, which acts on the mass in the direction normal to the rail, that is, normal to the direction of the motion. This force is the sum of the external normal force and the force proportional to the normal component of gravitational acceleration.

  • FN,ext is the external normal force, which acts on the mass in the direction normal to the rail. This is an optional force due to an external load. You can specify it as an input signal or as a block parameter.

  • FC is the Coulomb friction.

  • KC is the Coulomb friction coefficient.

  • Fbrk is the breakaway friction.

  • Kbrk is the breakaway friction coefficient.

  • fv is the viscous friction coefficient.

  • vbrk is the breakaway friction velocity.

  • vSt is the Stribeck velocity threshold.

  • vCoul is the Coulomb velocity threshold.

  • length is the mass length.

  • xB and xF are the absolute positions of ports B and F, respectively.

  • xLog is the absolute position of an intermediate point, if you enable the Log the position of an intermediate point option.

  • fractionLog is the intermediate point fractional length from port B.

  • power_dissipated is the power dissipated through the friction.

For example, to log the position of the center of mass, select the Log the position of an intermediate point check box and set the Intermediate point fractional length from B parameter to 0.5.

You can disable frictional effects by setting the Breakaway friction coefficient, Coulomb friction coefficient, and Viscous friction coefficient parameters to 0.

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

Input

expand all

Physical signal input port for the control signal that specifies the external normal force. The block calculates the total normal force as the sum of the external normal force and the force proportional to the normal component of gravitational acceleration.

If the signal becomes negative, the block saturates the input value to 0.

Dependencies

To enable this port, set the External normal force specification parameter to Variable.

Conserving

expand all

Position-based mechanical translational conserving port that represents the base connection.

Position-based mechanical translational conserving port that represents the follower connection. For nonzero length, port F has a more positive position than port B.

Parameters

expand all

Mass value. The mass is constant during simulation.

Length of mass, that is, distance between ports B and F. This distance is constant during simulation.

Select this check box to log the position of an intermediate point between ports B and F, for example, of the center of the mass. For more information, see Data Logging.

Fractional distance between port B and the intermediate point being logged.

Dependencies

To enable this parameter, select the Log the position of an intermediate point check box.

Select whether the external normal force applied to the block is constant or variable:

  • Constant — Specify normal force by using the Constant external normal force parameter value.

  • Variable — Specify normal force by using the physical signal at port N.

Force applied to the block in the direction normal to the motion. The block calculates the total normal force as the sum of this value and the force proportional to the normal component of gravitational acceleration. The block then calculates the breakaway friction force and the Coulomb friction force based on the total normal force and the proportionality coefficients, Breakaway friction coefficient and Coulomb friction coefficient.

Dependencies

To enable this parameter, set External normal force specification to Constant.

Coefficient for calculating the breakaway friction force, which is the sum of the Coulomb and the static frictions, based on the normal force. The parameter value must be greater than or equal to the Coulomb friction coefficient value.

The velocity at which the Stribeck friction is at its peak. At this point, the sum of the Stribeck and Coulomb friction is the breakaway friction force. This parameter specifies the velocity threshold, which affects the tradeoff between the simulation accuracy and speed.

Coefficient for calculating the Coulomb friction force, which is the friction that opposes motion, based on the normal force.

Proportionality coefficient between the friction force and the relative velocity. Viscous losses do not depend on the normal force.

Extended Capabilities

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

Version History

Introduced in R2024b