modelLineForceWithTwoMasses

Example to demonstrate how to construct force elements with masses

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

With this example it is demonstrated how to use the MultiBody.Joints.Assemblies.JointUPS joint to build up a force element with masses and inertias (note, MultiBody.Forces.LineForceWithMass is a default line force element with a point mass to approximate the mass properties of the component):

model Examples.Elementary.ForceWithMasses

A JointUPS consists of a universal, prismatic and spherical joint aggregation that approximates a real force component, such as a hydraulic cylinder. At frame frame_ia at the universal joint and at frame frame_ib at the spherical joint, bodies can be attached describing the mass properties of the component. Between the 1-dimensional mechanical translational flanges "axis" and "bearing" a one-dimensional force law can be attached, e.g., from the Modelica.Mechanics.Translational or the HyLib package (= library of hydraulic components). In this example, just a linear damper is connected here.

Parameters

TypeNameDefaultDescription
SI.Massm1Mass of point masses

Components

TypeNameDefaultDescription
SI.Force[3]rod_f_diffrod1.frame_b.f - rod3.frame_b.fDifference of cut-forces in rod1 and rod3
SI.Force[3]body_f_diffbodyBox1.frame_b.f - bodyBox2.frame_b.fDifference of cut-forces in bodyBox1 and bodyBox2
MultiBody.Worldworld
MultiBody.Joints.Revoluterevolute1
MultiBody.Parts.BodyBoxbodyBox1
MultiBody.Parts.FixedTranslationrod1
MultiBody.Joints.Assemblies.JointUPSjointUPS
MultiBody.Parts.Bodybody1
MultiBody.Parts.Bodybody2
MultiBody.Parts.FixedTranslationrod2
Modelica.Mechanics.Translational.Components.Damperdamper1
MultiBody.Joints.Revoluterevolute2
MultiBody.Parts.BodyBoxbodyBox2
MultiBody.Parts.FixedTranslationrod3
MultiBody.Parts.FixedTranslationrod4
Modelica.Mechanics.Translational.Components.Damperdamper2
MultiBody.Forces.LineForceWithTwoMasseslineForceWithTwoMasses