Engee documentation

Piston

The piston mechanism of a piston internal combustion engine.

blockType: Engee1DMechanical.Engines.SinglePiston

Path in the library:

/Physical Modeling/1D Mechanical/Engines & Motors/Piston

Description

Block Piston It is a piston mechanism of a piston internal combustion engine. Block Piston It takes into account the instantaneous torque transmitted to the crankshaft of the engine, which allows you to simulate vibrations in the transmission that occur when the piston rotates. To simulate a multi-piston engine, use the block Piston Engine.

Port B is a translationally moving piston, and port F is a rotating crankshaft. The force acting on the piston is determined by the pressure in the cylinder and the cross-sectional area. The unit receives combustion pressure from an interpolation table parameterized depending on the angle of rotation of the crank and, if necessary, the angular velocity of the crank and the level of opening of the engine throttle.

The torque of the crank depends on the force acting on the piston, the angle of rotation of the crank, as well as the length of the crank and connecting rod. In terms of these parameters, the ratio of the torque of the crankshaft to the force acting on the piston is expressed as follows:

Where

  • — the instantaneous force acting on the piston associated with the drive port B;

  • — instantaneous torque of the crank connected to the slave port F;

  • — crank length;

  • — instantaneous crank rotation angle;

  • — connecting rod length.

_ Dimensions of the piston_

piston engine en

The input port T allows you to set the engine throttle level as a fraction of 0 before 1. This fraction corresponds to a percentage of the total power. The unit uses the input port T whenever the pressure interpolation table in the unit parameter window is parameterized only by the angle of rotation of the crank.

Ports

Input

# T — normalized engine throttle opening level, dimensionless
scalar

Details

The input port that determines the position of the engine throttle.

Data types

Float64

Complex numbers support

I don’t

Conserving

# B — the leading port associated with the force acting on the piston
translational mechanics

Details

A non-directional port connecting to the engine block.

Program usage name

base_flange

# F — the slave port associated with the torque of the crank
rotational mechanics

Details

A non-directional port connecting to the crankshaft of the engine.

Program usage name

follower_flange

Output

# FC — fuel consumption, kg/s
scalar

Details

The output port that returns fuel consumption data.

Dependencies

To use this port, set the parameter Fuel consumption model one of the following values:

  • Constant per revolution;

  • Fuel consumption by speed and torque;

  • Brake specific fuel consumption by speed and torque;

  • Brake specific fuel consumption by speed and brake mean effective pressure.

Data types

Float64

Complex numbers support

I don’t

Parameters

Main

# Cylinder bore — the inner diameter of the piston cylinder wall
m | um | mm | cm | km | in | ft | yd | mi | nmi

Details

The inner diameter of the piston cylinder wall. Block Piston uses this parameter to calculate the torque interpolation table. You must specify a value greater than zero.

Units

m | um | mm | cm | km | in | ft | yd | mi | nmi

Default value

0.1 m

Program usage name

cylinder_bore

Evaluatable

Yes

# Piston stroke — the length of the translational stroke of the piston
m | um | mm | cm | km | in | ft | yd | mi | nmi

Details

The distance from the fully retracted to the fully extended position of the piston. Block Piston uses this parameter to convert the pressure on the piston into torque values. You must specify a value greater than zero.

Units

m | um | mm | cm | km | in | ft | yd | mi | nmi

Default value

0.06 m

Program usage name

stroke_piston

Evaluatable

Yes

# Piston rod length — connecting rod length between piston and crankshaft
m | um | mm | cm | km | in | ft | yd | mi | nmi

Details

The distance from the center of the piston pin hole to the center of the crankshaft hole in the connecting rod of the piston. The unit uses this parameter to convert the pressure on the piston into torque. You must specify a value greater than zero.

Units

m | um | mm | cm | km | in | ft | yd | mi | nmi

Default value

0.1 m

Program usage name

rod_length

Evaluatable

Yes

# Number of strokes per cycle — the number of piston strokes required to complete one combustion cycle

Details

The number of piston strokes required for intake, compression, combustion, and exhaust of combustion products. Usually engines are two-stroke or four-stroke. You must use a multiple of two.

Default value

4

Program usage name

strokes_per_cycle_count

Evaluatable

Yes

# Pressure parameterization — determination of the pressure applied to the piston
By crank angle | By crank angle and throttle | By crank angle, throttle and crank velocity

Details

A group of parameters that the block should use to parameterize pressure data.

Values

By crank angle | By crank angle and throttle | By crank angle, throttle and crank velocity

Default value

By crank angle

Program usage name

parameterization

Evaluatable

No

# Crank angle vector — different angles of rotation of the piston crank
rad | deg | rev | mrad | arcsec | arcmin | gon

Details

The angle of rotation of the piston crank, starting from the minimum angle or higher and ending with the maximum angle or lower. The minimum or maximum angle can be calculated by multiplying the number of cycles by −90 degrees or 90 degrees, respectively. At least two values must be specified.

Each element of the parameter Crank angle vector corresponds to the parameter element Pressure vector (gauge) or -th line of the parameter Pressure matrix (gauge) or each parameter matrix Pressure 3D matrix (gauge).

Units

rad | deg | rev | mrad | arcsec | arcmin | gon

Default value

[-360.0, -90.0, -30.0, 10.0, 30.0, 90.0, 160.0, 360.0] deg

Program usage name

phi_crank_vector

Evaluatable

Yes

# Pressure vector (gauge) — parameterized pressure values depending on the angle of rotation of the crank
Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Details

The vector of pressure values corresponding to the different positions of the crank rotation angle.

Dependencies

To use this parameter, set for the parameter Pressure parameterization meaning By crank angle.

Units

Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Default value

[0.0, 3.0, 20.0, 50.0, 20.0, 10.0, 8.0, 0.0] bar

Program usage name

p_vector

Evaluatable

Yes

# Bearing viscous friction coefficient — the ability of the main and connecting rod bearings to dissipate power
N*m/(rad/s) | ft*lbf/(rad/s)

Details

The combined coefficient of viscous friction of the main and connecting rod bearings. The unit uses this parameter to calculate power losses due to viscous friction between the drive and driven shafts.

Units

N*m/(rad/s) | ft*lbf/(rad/s)

Default value

0.001 N*m/(rad/s)

Program usage name

viscous_coefficient

Evaluatable

Yes

# Offset angle — the angular deviation between the middle of the engine cycle and the top dead center
rad | deg | rev | mrad | arcsec | arcmin | gon

Details

The point in the engine cycle when the piston reaches the top dead center. The engine’s operating cycle covers a range of angles from before degrees, where — parameter value Number of strokes per cycle.

Units

rad | deg | rev | mrad | arcsec | arcmin | gon

Default value

0.0 deg

Program usage name

phi_offset

Evaluatable

Yes

# Initial crank angle — the initial position of the crank
rad | deg | rev | mrad | arcsec | arcmin | gon

Details

The angle of rotation of the crank at time zero relative to the position of the upper dead center.

Units

rad | deg | rev | mrad | arcsec | arcmin | gon

Default value

90.0 deg

Program usage name

phi_start

Evaluatable

Yes

# Throttle vector — different throttle positions

Details

Different throttle positions corresponding to the pressure in the parameters Pressure matrix (gauge) or Pressure 3D matrix (gauge). The throttle position must remain in the range of [0, 1], where 0 means that the throttle valve is fully closed, and 1 — full throttle opening.

Each element of the parameter Throttle vector respond -the th column of the parameter Pressure matrix (gauge) or each parameter matrix Pressure 3D matrix (gauge).

Dependencies

To use this parameter, set for the parameter Pressure parameterization meaning By crank angle and throttle or By crank angle, throttle and crank velocity.

Default value

[0.0, 0.3, 0.8, 1.0]

Program usage name

throttle_position_vector

Evaluatable

Yes

# Pressure matrix (gauge) — parameterized pressure values depending on the angle of rotation of the crank and the position of the throttle valve
Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Details

A matrix of pressure values corresponding to different combinations of crank angle and throttle position.

Parameter Elements Crank angle vector correspond to parameter lines Pressure matrix (gauge). Parameter Elements Throttle vector correspond to parameter columns Pressure matrix (gauge).

Dependencies

To use this parameter, set for the parameter Pressure parameterization meaning By crank angle and throttle.

Units

Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Default value

[0.0 0.0 0.0 0.0; 0.0 0.9 2.4 3.0; 0.0 6.0 16.0 20.0; 0.0 15.0 40.0 50.0; 0.0 6.0 16.0 20.0; 0.0 3.0 8.0 10.0; 0.0 2.4 6.4 8.0; 0.0 0.0 0.0 0.0] bar

Program usage name

p_matrix

Evaluatable

Yes

# Crank velocity vector — different angular velocities
rad/s | deg/s | rad/min | deg/min | rpm | rps

Details

Different crank rotation speeds corresponding to the pressures in the parameter Pressure 3D matrix (gauge).

Each element of the parameter Crank velocity vector corresponds to one of the -parameter matrices Pressure 3D matrix (gauge).

Dependencies

To use this parameter, set for the parameter Pressure parameterization meaning By crank angle, throttle and crank velocity.

Units

rad/s | deg/s | rad/min | deg/min | rpm | rps

Default value

[0.0, 1000.0, 6000.0] rpm

Program usage name

w_vector

Evaluatable

Yes

# Pressure 3D matrix (gauge) — parameterized pressure values depending on the angle of rotation of the crank, throttle position and crank rotation speed
Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Details

A combined matrix of pressure values corresponding to different combinations of crank angle, throttle position, and crank rotation speed.

Parameter Elements Crank angle vector correspond to lines. Parameter Elements Throttle vector correspond to columns. Parameter Elements Crank velocity vector correspond to the matrices that you combine along the dimension .

By default , and .

Dependencies

To use this parameter, set for the parameter Pressure parameterization meaning By crank angle, throttle and crank velocity.

Units

Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Default value

[0.0 0.0 0.0 0.0; 0.0 0.9 2.4 3.0; 0.0 6.0 16.0 20.0; 0.0 15.0 40.0 50.0; 0.0 6.0 16.0 20.0; 0.0 3.0 8.0 10.0; 0.0 2.4 6.4 8.0; 0.0 0.0 0.0 0.0;;; 0.0 0.0 0.0 0.0; 0.0 0.9 2.4 3.0; 0.0 6.0 16.0 20.0; 0.0 15.0 40.0 50.0; 0.0 6.0 16.0 20.0; 0.0 3.0 8.0 10.0; 0.0 2.4 6.4 8.0; 0.0 0.0 0.0 0.0;;; 0.0 0.0 0.0 0.0; 0.0 0.9 2.4 3.0; 0.0 6.0 16.0 20.0; 0.0 15.0 40.0 50.0; 0.0 6.0 16.0 20.0; 0.0 3.0 8.0 10.0; 0.0 2.4 6.4 8.0; 0.0 0.0 0.0 0.0] bar

Program usage name

p_array

Evaluatable

Yes

Fuel Consumption

# Fuel consumption model — parameterization of fuel consumption
No fuel consumption | Constant per revolution | Fuel consumption by speed and torque | Brake specific fuel consumption by speed and torque | Brake specific fuel consumption by speed and brake mean effective pressure

Details

The fuel consumption calculation model. The parameterization of the model is compatible with typical industrial data.

If for the parameter Fuel consumption model any value is selected except No fuel consumption, then the FC port and its associated parameters are activated. If the value is set to No fuel consumption, the unit will not calculate fuel consumption. Selecting this value increases the simulation speed.

Values

No fuel consumption | Constant per revolution | Fuel consumption by speed and torque | Brake specific fuel consumption by speed and torque | Brake specific fuel consumption by speed and brake mean effective pressure

Default value

No fuel consumption

Program usage name

fuel_consumption_model

Evaluatable

No

# Fuel consumption per revolution — fuel consumption per crank revolution
mg/rev | kg/rad

Details

The amount of fuel consumed per revolution of the crankshaft.

Dependencies

To use this parameter, set for the parameter Fuel consumption model meaning Constant per revolution.

Units

mg/rev | kg/rad

Default value

25.0 mg/rev

Program usage name

fuel_consumption_per_revolution

Evaluatable

Yes

# Speed vector — angular velocity of the crankshaft
rad/s | deg/s | rad/min | deg/min | rpm | rps

Details

The vector of engine speeds used in the parameterization of the interpolation table. The length of the vector must match the length of the parameter. Torque vector.

Dependencies

To use this parameter, set for the parameter Fuel consumption model one of the following values:

  • Fuel consumption by speed and torque;

  • Brake specific fuel consumption by speed and torque;

  • Brake specific fuel consumption by speed and brake mean effective pressure.

Units

rad/s | deg/s | rad/min | deg/min | rpm | rps

Default value

[1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0] rpm

Program usage name

w_fuel_consumption_vector

Evaluatable

Yes

# Torque vector — the torque applied to the set speed
N*m | uN*m | mN*m | kN*m | MN*m | GN*m | kgf*m | lbf*in | lbf*ft

Details

The vector of motor torques used in parameterization of the interpolation table. The length of the vector must match the length of the parameter. Speed vector.

Dependencies

To use this parameter, set for the parameter Fuel consumption model meaning Fuel consumption by speed and torque or Brake specific fuel consumption by speed and torque.

Units

N*m | uN*m | mN*m | kN*m | MN*m | GN*m | kgf*m | lbf*in | lbf*ft

Default value

[0.0, 80.0, 160.0, 200.0, 240.0, 320.0, 360.0, 400.0] N*m

Program usage name

T_fuel_consumption_vector

Evaluatable

Yes

# Fuel consumption table — a matrix of fuel consumption indicators for specified combinations of speed and torque
kg/s | kg/hr | kg/min | g/hr | g/min | g/s | t/hr | lbm/hr | lbm/min | lbm/s

Details

A matrix of fuel consumption values corresponding to the engine speed and torque vectors. Number of rows must be equal to the number of elements in the parameter Speed vector. Number of columns must be equal to the number of elements in the parameter Torque vector.

Dependencies

To use this parameter, set for the parameter Fuel consumption model meaning Fuel consumption by speed and torque or Brake specific fuel consumption by speed and torque.

Units

kg/s | kg/hr | kg/min | g/hr | g/min | g/s | t/hr | lbm/hr | lbm/min | lbm/s

Default value

[0.5 0.9 1.4 1.6 1.9 2.7 3.4 4.4; 1.0 1.7 2.7 3.1 3.6 5.0 6.0 7.4; 1.4 2.7 4.0 4.8 5.6 7.5 8.5 10.5; 2.0 3.6 5.8 6.7 8.0 10.4 11.7 13.3; 2.5 4.8 7.9 9.4 10.8 14.0 16.2 18.6; 3.1 6.0 10.3 11.9 13.8 18.4 22.0 26.5] g/s

Program usage name

fuel_consumption_matrix

Evaluatable

Yes

# Interpolation method — the dependence of the rotation speed and torque on the values in a given range
Linear | Smooth

Details

An interpolation method for calculating fuel consumption at intermediate values of rotational speed and torque. Fuel consumption remains constant outside the range indicated in the interpolation table.

Dependencies

To use this parameter, set for the parameter Fuel consumption model one of the following values:

  • Fuel consumption by speed and torque;

  • Brake specific fuel consumption by speed and torque;

  • Brake specific fuel consumption by speed and brake mean effective pressure.

Values

Linear | Smooth

Default value

Linear

Program usage name

fuel_consumption_interpolation_type

Evaluatable

No

# Brake specific fuel consumption table — data on specific fuel consumption during braking
s^2/ft^2 | s^2/m^2 | g/(hr*kW)

Details

The matrix of indicators of specific fuel consumption during braking. Specific fuel consumption is the ratio of fuel consumption to power output. Number of rows must be equal to the number of elements in the parameter Speed vector. Number of columns must be equal to the number of elements in the parameter Torque vector.

When selecting a value Brake specific fuel consumption by speed and torque for the parameter Fuel consumption model This parameter is a matrix of indicators of specific fuel consumption during braking, which corresponds to the vectors of engine speed and torque.

When selecting a value Brake specific fuel consumption by speed and brake mean effective pressure for the parameter Fuel consumption model This parameter is a matrix of indicators of specific fuel consumption during braking, which corresponds to the vectors of engine speed and average effective pressure during braking. The number of rows must be equal to the number of elements in the parameter. Speed vector. The number of columns must be equal to the number of items in the parameter. Brake mean effective pressure vector.

Dependencies

To use this parameter, set for the parameter Fuel consumption model meaning Brake specific fuel consumption by speed and torque or Brake specific fuel consumption by speed and brake mean effective pressure.

Units

s^2/ft^2 | s^2/m^2 | g/(hr*kW)

Default value

[410.0 380.0 300.0 280.0 270.0 290.0 320.0 380.0; 410.0 370.0 290.0 270.0 260.0 270.0 285.0 320.0; 415.0 380.0 290.0 275.0 265.0 270.0 270.0 300.0; 420.0 390.0 310.0 290.0 285.0 280.0 280.0 285.0; 430.0 410.0 340.0 320.0 310.0 300.0 310.0 320.0; 450.0 430.0 370.0 340.0 330.0 330.0 350.0 380.0] g/(hr*kW)

Program usage name

BSFC_matrix

Evaluatable

Yes

# Brake mean effective pressure vector — the average pressure in the cylinder required to create a given torque
Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Details

The vector of values of the average effective braking pressure. The values of the average effective braking pressure satisfy the expression

where

  • — output torque;

  • — number of cycles per revolution;

  • — the working volume of the cylinder.

Dependencies

To use this parameter, set for the parameter Fuel consumption model meaning Fuel consumption by speed and torque or Brake specific fuel consumption by speed and brake mean effective pressure.

Units

Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Default value

[0.0, 250.0, 500.0, 625.0, 750.0, 1000.0, 1150.0, 1250.0] kPa

Program usage name

BMEP_vector

Evaluatable

Yes