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

TypeNameDefaultDescription
Translational.Components.Massmass1
Translational.Components.Springspring1
Translational.Components.Fixedfixed1
Translational.Sources.Forceforce1
Modelica.Blocks.Sources.Sinesine1
Translational.Components.Massmass2
Translational.Components.Springspring2
Translational.Components.Fixedfixed2
Translational.Sources.Forceforce2
Modelica.Blocks.Sources.Sinesine2
Translational.Components.Damperdamper1