modelTestCylinder
Two cylinder system
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Test of a system with 2 cylinders (with same volume):
- cylinder1: A = 0.1 m2, L=10. m, initial position of piston at s=L/2
- cylinder2: A = 1.0 m2, L=1.0 m, initial position of piston at s=L/2
A force is applied that presses from 0.25 s to 0.50 s with 1 Nm on piston1. Due to the ratio of areas 10:1
- the force at piston2 is ten times the force at piston1
- movement of piston1 is ten times the movement of piston2
At piston2 a mass is mounted which is moved and presses the springDamper. When the force at piston1 is removed, the springDamper pushes back the mass and a damped oscillation occurs.
Note: Take care of the initial conditions. The unstretched spring length is cylinder2.L/2, i.e. when piston2 is the middle of its cylinder the spring applies no force to the mass (and piston2).
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Force | f1 | -10*cylinder1.f | 10 x Force on piston 1 |
| SI.Position | s1 | 0.1*cylinder1.s | 0.1 x Position of piston 1 |
| SI.Position | s2 | cylinder2.s | Position of piston 2 |
| SI.Force | f2 | -cylinder2.f | Force on piston 2 |
| SI.Force | f | springDamper.f | Force of springDamper |
| Modelica.Blocks.Sources.CombiTimeTable | combiTimeTable | ||
| Modelica.Mechanics.Translational.Sources.Force | force | ||
| FluidHeatFlow.Components.Cylinder | cylinder1 | ||
| FluidHeatFlow.Components.Cylinder | cylinder2 | ||
| Modelica.Mechanics.Translational.Components.Mass | mass | ||
| Modelica.Mechanics.Translational.Components.SpringDamper | springDamper | ||
| Modelica.Mechanics.Translational.Components.Fixed | fixed |