modelOscillator
Oscillator demonstrates the use of initial conditions
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
A spring - mass system is a mechanical oscillator. If no damping is included and the system is excited at resonance frequency infinite amplitudes will result. The resonant frequency is given by omega_res = sqrt(c / m) with:
c … spring stiffness and
m … mass.
To make sure that the system is initially at rest the initial conditions s(start=-0.5) and v(start=0) for the sliding masses are set. If damping is added the amplitudes are bounded.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Translational.Components.Mass | mass1 | ||
| Translational.Components.Spring | spring1 | ||
| Translational.Components.Fixed | fixed1 | ||
| Translational.Sources.Force | force1 | ||
| Modelica.Blocks.Sources.Sine | sine1 | ||
| Translational.Components.Mass | mass2 | ||
| Translational.Components.Spring | spring2 | ||
| Translational.Components.Fixed | fixed2 | ||
| Translational.Sources.Force | force2 | ||
| Modelica.Blocks.Sources.Sine | sine2 | ||
| Translational.Components.Damper | damper1 |