Oscillator

Oscillator demonstrates the use of initial conditions

Diagram

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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
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 (11)

mass1

Type: Mass

spring1

Type: Spring

fixed1

Type: Fixed

force1

Type: Force

sine1

Type: Sine

mass2

Type: Mass

spring2

Type: Spring

fixed2

Type: Fixed

force2

Type: Force

sine2

Type: Sine

damper1

Type: Damper