Simple Harmonic Oscillator model¶
- class pints.toy.SimpleHarmonicOscillatorModel[source]¶
Simple harmonic oscillator model for a particle that experiences a force in proportion to its displacement from an equilibrium position, and, in addition, a friction force. The system’s behaviour is determined by a second order ordinary differential equation (from Newton’s second law):
\[\frac{d^2y}{dt^2} = -y(t) - \theta \frac{dy(t)}{dt}\]Here it has been assumed that the particle has unit mass and that the restoring force has constant of proportionality equal to 1.
The model has three parameters: the initial position of the particle,
y(0)
, its initial momentum,dy/dt(0)
and the magnitude of the friction force,theta
.Extends
pints.ForwardModel
,pints.toy.ToyModel
.References
- n_outputs()¶
Returns the number of outputs this model has. The default is 1.