5.8 Mechanical System with Two Springs and a Block
195
Fig. 5.63 Schedule of change in time of elongation of two springs (e 1 —for the first spring, e 2 —for
the second)
The full code for this model is given below.
Addition: full model code of a mechanical system with two springs and a block
with zero initial equations (zero values of the derivatives of the displacements of the
springs and the block)
model SpringPulleyLoad2
import SI = Modelica.SIunits;
constant SI.Acceleration g=9.81; //Connect the library
of Constants Models
// Spring Parameters:
parameter SI.TranslationalSpringConstant k1=5;
parameter SI.TranslationalSpringConstant k2=10;
// Block Parameters
parameter SI.Mass Mp=0.5;
parameter SI.Radius Rp=0.3;
parameter SI.MomentOfInertia J=0.5*Mp*Rpˆ2;
// Load Parameters
parameter SI.Mass ML0=10;
//Set Time-Dependent Variables:
SI.Mass ML;
SI.Length e1;
Précédent

- 206/274

Suivant