modelMassWithGravity
Extends from Modelica.Blocks.Interfaces.BlockIcon.
Parameters
| Type | Name | Default | Description |
| Modelica.SIunits.Mass | m | 0.005 | Mass of body connected to spring |
| Modelica.SIunits.Position | x0 | 2 | Initial position of mass over ground |
Components
| Type | Name | Default | Description |
| Modelica.Mechanics.Translational.Components.Mass | mass | | |
| Modelica.Mechanics.Translational.Sources.Force | force | | |
| Modelica.Blocks.Sources.RealExpression | gravity | | |
| Utilities.TransFlangeToS | flangeToS | | |
| Modelica.Blocks.Interfaces.RealOutput | x | | Flange moves with position s due to force f |
| Modelica.Blocks.Interfaces.RealOutput | v | | Flange moves with speed v due to force f |
| Modelica.Blocks.Interfaces.RealInput | f | | Force to drive the flange |