|
FhSim
3.1.0
Marine systems simulation
|
A mean value model of a four-stroke compression ignition (diesel) engine with a turbocharger, an intercooler and a controller (the ECU): combustion chamber (CC), intake manifold (InM), exhaust manifold (ExM), crank shaft (CS), turbo charger (TC) and intercooler (IC). A PI controller on the engine speed sets the fuel per cycle, one on lambda limits it, and one on the intake pressure sets the waste gate. The engine speed is in revolutions per second (the shaft power is the speed times the torque times 2 pi). Other units are not stated in the code; the example deck and parameter file use SI-like values (pressure 1e5, temperature 293).
| Name | Width | Description |
|---|---|---|
| M_load | 1 | Torque load from the propeller shaft |
| N_eng_SP | 1 | Engine speed set-point (revolutions per second) |
| pInM_SP | 1 | Intake manifold pressure set-point |
| MinLambda_SP | 1 | Smallest allowed lambda (air to fuel ratio over the stoichiometric ratio) |
The names contain a space. All have size 1.
| Name | Width | Description |
|---|---|---|
| CC IMEP | 1 | Indicated mean effective pressure |
| CC IP | 1 | Indicated power |
| CC Lambda | 1 | Lambda |
| CC M_CC | 1 | Torque from the combustion chamber to the crank shaft |
| CC T_ExP | 1 | Temperature of the flow at the exhaust port |
| CC W_ExP | 1 | Mass flow at the exhaust port |
| CC W_fuel | 1 | Fuel mass flow |
| CC W_InM | 1 | Mass flow of the intake manifold |
| CC X | 1 | Amount of exhaust gas |
| InM p | 1 | Pressure of the intake manifold |
| ExM p | 1 | Pressure of the exhaust manifold |
| CS M_eng | 1 | Engine torque |
| CS N_eng | 1 | Engine speed (revolutions per second) |
| CS P_eng | 1 | Engine power |
| TC K_cmp | 1 | Factor k in the compressor map calculation |
| TC M_trb | 1 | Turbine torque |
| TC M_cmp | 1 | Compressor torque |
| TC PR_cmp | 1 | Pressure ratio of the compressor |
| TC PR_trb | 1 | Pressure ratio of the turbine |
| TC T_cmp | 1 | Temperature at the compressor outlet |
| TC W_cmp | 1 | Mass flow of the compressor |
| TC W_trb | 1 | Mass flow of the turbine |
| TC N_TC | 1 | Speed of the turbo charger |
| IC T_IC | 1 | Temperature at the intercooler outlet |
| ECU FuelPrCyc | 1 | Injected fuel per combustion cycle |
| ECU MaxFuelPrCyc | 1 | Largest allowed fuel per combustion cycle |
| ECU WGOpening | 1 | Waste gate opening set-point |
| Name | Width | Description |
|---|---|---|
| ModParFilename | 1 | Path of the model parameter file (see below). Required. A relative path is relative to the working directory of FhSim, normally playpen/bin, not to the input file |
The parameter file is XML with the root element root and the sections GP, CC, InM, ExM, CS, TC and IC. Each section holds one element (const) with par elements name="..." val="...". Every parameter below must be in its section, and an unknown name is an error:
cp_air, cv_air (specific heat of air), cp_ex, cv_ex (specific heat of exhaust), pAmb (ambient pressure), TAmb (ambient temperature)V_d (displaced volume of one cylinder), n_cyl, AFRStoich (stoichiometric air to fuel ratio), Q_LHV (lower heating value of the fuel), VolEff, CCEff, CR (compression ratio)Vol (volume); ExM: Vol (volume)I_eng (inertia of crank shaft and flywheel), M_fric_rps (friction torque per revolution per second)Inertia, TrbEff (turbine efficiency), CmpEff (compressor efficiency), WGRef (waste gate reference pressure)Eff (intercooler efficiency)Initial conditions that the input file may set. Default values in parentheses.
| Name | Width | Description |
|---|---|---|
| p_InM | 1 | Pressure of the intake manifold (1e5) |
| p_ExM | 1 | Pressure of the exhaust manifold (1e5) |
| N_eng | 1 | Engine speed (1) |
| N_TC | 1 | Speed of the turbo charger (100) |
| PI_N_eng | 1 | Integrator state of the engine speed controller (1e-3) |
| PI_Lambda | 1 | Integrator state of the lambda controller (2e-3) |
| PI_WG | 1 | Integrator state of the waste gate controller (1) |