modelGasForce2

Rough approximation of gas force in a combustion engine's cylinder

Extends from Modelica.Mechanics.Translational.Interfaces.PartialCompliant (Compliant connection of two translational 1D flanges).

Information

The gas force in a cylinder of a combustion engine is computed as function of the relative distance of the two flanges. It is required that s_rel = flange_b.s - flange_a.s is in the range

0 ≤ s_rel ≤ L,

where the parameter L is the length of the cylinder. If this assumption is not fulfilled, an error occurs. The resulting approximation of the gas pressure is shown in the following figure and depends on both s_rel and the relative velocity v_rel = der(s_rel).

model Modelica.Mechanics.MultiBody.Examples.Loops.Utilities.GasForce2

Parameters

TypeNameDefaultDescription
SI.LengthLLength of cylinder
SI.LengthdDiameter of cylinder
SI.Volumek00.01Volume V = k0 + k1*(1-x), with x = 1 - s_rel/L
SI.Volumek11Volume V = k0 + k1*(1-x), with x = 1 - s_rel/L
SI.HeatCapacityk1Gas constant (p*V = k*T)

Connectors

TypeNameDefaultDescription
Flange_aflange_a (from PartialTwoFlanges)(left) driving flange (flange axis directed into cut plane, e. g. from left to right)
Flange_bflange_b (from PartialTwoFlanges)(right) driven flange (flange axis directed out of cut plane)

Components

TypeNameDefaultDescription
SI.Positions_rel (from PartialCompliant)Relative distance (= flange_b.s - flange_a.s)
SI.Forcef (from PartialCompliant)Force between flanges (positive in direction of flange axis R)
RealxNormalized position of cylinder (= 1 - s_rel/L)
SI.AbsolutePressurepressCylinder pressure
SI.VolumeV
SI.TemperatureT
SI.Velocityv_relRelative piston velocity (<0: compression; >0: expansion)