modelReference
Reference solution in pure Modelica
Extends from Modelica.Icons.Example (Icon for runnable examples).
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 |
| Modelica.SIunits.TranslationalSpringConstant | c | 1 | Stiffness of serial spring |
| Modelica.SIunits.TranslationalDampingConstant | d | 0.1 | Damping facgtor of serial spring |
| Modelica.SIunits.Position | y0 | 1.5 | Initial length of serial spring |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Position | x | Position at connection point of spring-damper system | |
| Modelica.SIunits.Velocity | v | Velocity at connection point of spring-damper system | |
| Modelica.SIunits.Force | F | Cut-Force at connection point of spring-damper system | |
| Modelica.SIunits.Position | y | Length of serial spring | |
| Modelica.Mechanics.Translational.Components.Fixed | fixed | ||
| Modelica.Mechanics.Translational.Components.Spring | spring | ||
| Modelica.Mechanics.Translational.Components.Damper | damper | ||
| Modelica.Mechanics.Translational.Components.Mass | mass | ||
| Modelica.Mechanics.Translational.Sources.Force | force | ||
| Modelica.Blocks.Sources.RealExpression | gravity |