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

TypeNameDefaultDescription
SI.Forcef1-10*cylinder1.f10 x Force on piston 1
SI.Positions10.1*cylinder1.s0.1 x Position of piston 1
SI.Positions2cylinder2.sPosition of piston 2
SI.Forcef2-cylinder2.fForce on piston 2
SI.ForcefspringDamper.fForce of springDamper
Modelica.Blocks.Sources.CombiTimeTablecombiTimeTable
Modelica.Mechanics.Translational.Sources.Forceforce
FluidHeatFlow.Components.Cylindercylinder1
FluidHeatFlow.Components.Cylindercylinder2
Modelica.Mechanics.Translational.Components.Massmass
Modelica.Mechanics.Translational.Components.SpringDamperspringDamper
Modelica.Mechanics.Translational.Components.Fixedfixed