FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
engine/CIParameters.xml

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).

Input ports

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)

Output ports

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

Configuration parameters

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:

States

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)
1<?xml version="1.0"?>
2<root>
3
4 <GP>
5 <const>
6 <par name="cp_air" val="1005"> </par>
7 <par name="cv_air" val="718"> </par>
8 <par name="cp_ex" val="1169"> </par>
9 <par name="cv_ex" val="980"> </par>
10 <par name="pAmb" val="1e5"> </par>
11 <par name="TAmb" val="293"> </par>
12 </const>
13 </GP>
14
15 <CC>
16 <const>
17 <par name="V_d" val="0.017"> </par>
18 <par name="n_cyl" val="6"> </par>
19 <par name="AFRStoich" val="14.5"> </par>
20 <par name="Q_LHV" val="44e6"> </par>
21 <par name="VolEff" val="0.9"> </par>
22 <par name="CCEff" val="0.65"> </par>
23 <par name="CR" val="17"> </par>
24 </const>
25 </CC>
26
27 <InM>
28 <const>
29 <par name="Vol" val="0.2"> </par>
30 </const>
31 </InM>
32
33 <ExM>
34 <const>
35 <par name="Vol" val="0.2"> </par>
36 </const>
37 </ExM>
38
39 <CS>
40 <const>
41 <par name="I_eng" val="150"> </par>
42 <par name="M_fric_rps" val="60"> </par>
43 </const>
44 </CS>
45
46 <TC>
47 <const>
48 <par name="Inertia" val="0.01"> </par>
49 <par name="TrbEff" val="0.7"> </par>
50 <par name="CmpEff" val="0.7"> </par>
51 <par name="WGRef" val="2.5e5"> </par>
52 </const>
53 </TC>
54
55 <IC>
56 <const>
57 <par name="Eff" val="0.6"> </par>
58 </const>
59 </IC>
60</root>