Professional Documents
Culture Documents
2022 07 Baig MirzaFaizanAli 02
2022 07 Baig MirzaFaizanAli 02
The simulation tool Gasdyn which was developed - Friction between the fluid and walls of the
in Polimi, also relies on the one-dimensional duct are considered
approach for the engine simulation. Gasdyn
utilizes multiple computational codes for the
solution of different junction types. These
computational codes are referred to as subroutines
in this thesis work. Several junction types and their
associated models and subroutines are discussed
and analyzed. Figure 1: Control Volume for a Mono-dimensional
As the main objective of this thesis work, a new Scheme for 1-D analysis
general subroutine is developed which is more
accurate, robust and can be applied in general to all Based on these hypotheses, the conservation
the constant pressure-based junction types. The equations for mass, momentum, and energy along
results obtained from this new subroutine are with the ideal gas equation of state are written for
validated by substituting the old subroutines a duct with variable cross-sectional area as below.
individually in the main program code for the
𝜕𝜌 𝜕(𝜌𝑢)
𝜌𝑢 𝑑𝐹
engine simulation and compared with those + . + =0
obtained by the old subroutines for different 𝜕𝑡 𝜕𝑡 𝐹 𝑑𝑥
engine configurations. After individual 𝜕𝑢 𝜕𝑢 1 𝜕𝑝
+𝑢 + ∙ +𝐺=0
substitution validation, the simultaneous 𝜕𝑡 𝜕𝑥 𝜌 𝜕𝑥
substitution is performed for all old subroutines
𝜕(𝜌𝑒𝑜 𝐹) 𝜕(𝜌𝑢ℎ𝑜 )
based on the constant pressure junction models.
+ − 𝜌𝑞𝐹̇ = 0
The results obtained after the development of the 𝜕𝑡 𝜕𝑥
new subroutine demonstrated that the new routine { 𝑃 = 𝜌𝑅𝑇
performs accurately and has replaced the The necessity to include the ideal gas assumption
previously utilized subroutines for junction of n- hypothesis derives from the fact that the system of
pipes, catalysts, intercooler and perforates in the equation has four unknowns being the fluid
main Gasdyn program code. velocity, pressure, density, and internal energy.
2
Executive summary Mirza Faizan Ali Baig
4. Dimensionless Variables
𝑘−1
𝜆=𝐴± 𝑈
If the pipe mesh stencil in time and space domain 2
is represented by the Figure 2 which is adopted as For the non-homentropic flow the dimensionless
the basis for the numerical methods. parameters are redefined in starred variables
𝐴 𝑈
𝐴∗ = ; 𝑈∗ = ;
𝐴𝐴 𝐴𝐴
𝑘−1 ∗
𝜆 ∗ = 𝐴∗ ± 𝑈
2
5. Junction models
The one-dimensional hypothesis for three
dimensional flows in the parts of the ducts
Figure 2: Mesh stencil in space and time domain specially the junctions is a simplification procedure
that is adopted, but at certain points this
To find the pipe conditions at time interval n+1, for hypothesis is an oversimplification that could
any point node i, the information of the pipe result in inaccuracies. Boundary conditions are
conditions at the adjacent nodes i+1, i-1 is required adopted to compensate the directionality of flow
at the previous time interval n. induced by the junction. The boundary models
3
Executive summary Mirza Faizan Ali Baig
adopted for this purpose can be distinguished into subscript Nn represents the respective initial
two types: values.
- Constant pressure junction model The final Riemann variable is then calculated:
∗
- Pressure loss models λoutN = 𝐴𝐴𝑁𝑐 (2 A∗N − λinNc )
4
Executive summary Mirza Faizan Ali Baig
Pressure [bar]
1.1
by the Bingham & Blair’s model with the
Winterbone’s model is represented in the Figure 4, 1
where the loss coefficient is plotted against the 0.9
angle between the branches.
0.8
0 200 400 600
Crank Angle [deg]
5
Executive summary Mirza Faizan Ali Baig
6
Executive summary Mirza Faizan Ali Baig
1.05
1
0.95
0.9
Old subroutines
Figure 10: Structural flow chart of the new 0.85
subroutine bccpmben bccpmben
0.8
0 200 400 600
Crank Angle [deg]
After the development of new subroutine, the
results obtained were validated by comparing Figure 12: Instantaneous pressure results before
those obtained using the old subroutines, first by and after simultaneous substitution
individually substituting the old subroutines and
comparing, and finally by simultaneously
substituting all the subroutines used for the
solution of constant pressure model-based
junctions by the new subroutine bccpmben. The
substitution was performed, and comparison was
7
Executive summary Mirza Faizan Ali Baig
Duct 433 (Before Silencer) similar results across the entire engine cycle. The
2000 RPM & 100% Load validation was performed on several other
100 configurations which was found be accurate.
Old subroutines
80
Velocity [m/s]
bccpmben
60
In addition to other features of the old subroutines,
the new subroutine also takes into account the
40
mass conservation across the junction and ensures
20 that the total mass flow rate towards the junction is
0 equal to the total mass flow rate that goes away
0 200 400 600 from the junction. This is depicted in Figure 16 for
Crank Angle [deg] the same engine configuration across each crank
Figure 13: Instantaneous velocity results before angle
and after simultaneous substitution
Junction # 13147 2200 RPM; 100% Load
0.10
Duct 433 (Before Silencer) mass in
0.08 massout
780 bccpmben
0.04
760
740 0.02
720 0.00
700 0 200 400 600
Crank Angle [deg]
0 200 400 600
Crank Angle [deg] Figure 16: Conservation of mass flow rate for
junction using new subroutine bccpmben
Figure 14: Instantaneous Temperature results
before and after simultaneous substitution
The old subroutines showed some instabilities for
some particular critical configurations, one of them
Duct 433 (Before Silencer)
is represented by Figure 17. The engine
2000 RPM & 100% Load
0.1 configuration has one n-pipe type junction in the
Old subroutines
intake and two silencer junctions in the exhaust
0.08 bccpmben
manifold, hence the simulation involved the use of
mass [kg/s]
0.02
0
0 200 400 600
Crank Angle [deg]
Figure 15: Instantaneous mass flow rate results
before and after simultaneous substitution
8
Executive summary Mirza Faizan Ali Baig
represented by the engine simulation results subroutines. This can be seen in the instantaneous
shown by the implementation of old subroutines. pressure plotted for the operating points of 2000
Mass conservation using old rpm & 4000 rpm at full load in Figure 20 & 21 where
subroutines; 4000 rpm; 100 % Load we see pressure instabilities with the use of old
0.4 subroutine and smooth pressure curves after
mass flow rate [kg/s]
mass in
mass out implementation of the new subroutine, this
validates that the new subroutine is able to resolve
0.2
the instabilities generating by the old subroutines
and is more accurate and robust.
0
Pressure [bar]
Crank Angle [deg] 1
Figure 18: Mass conservation for junction-35 using
old subroutines 0.5
bccpmben+nploss
old subroutines+nploss
Mass conservation using bccpmben 0
4000 rpm; 100 % Load 0 200 400 600
0.3 Crank Angle [deg]
Massin
mass flow rate [kg/s]
0.1
Duct - 1514 RPM 2000; Load 100 %
0 1.5
-0.1
1
Pressure [bar]
9
Executive summary Mirza Faizan Ali Baig
8. References
10