You are on page 1of 28

Tutorial: Modeling In-Cylinder EGR Combustion Using PDF

Model

Introduction
Exhaust gas recirculation (EGR) is, among other things, a NOx emissions reduction tech-
nique used in most gasoline and diesel engines. EGR works by recirculating a portion of
the exhaust gas of an engine back to the engine cylinders. Intermixing the incoming air
with recirculated exhaust gas dilutes the mix with inert gas. It lowers the adiabatic flame
temperature and (in diesel engines) reduces the amount of excess oxygen. The exhaust gas
also increases the specific heat capacity of the mix lowering the peak combustion temper-
ature. NOx formation progresses much faster at high temperatures. Hence EGR serves to
limit the generation of NOx. NOx is primarily formed when a mix of nitrogen and oxygen
is subjected to high temperatures.
The tutorial demonstrates the following:

• Setting up an CIC case involving only compression and power stroke with only a
sector of mesh.

• Setting up EGR combustion using non-premixed model in ANSYS FLUENT. A 12%


EGR-air mixture is used in the tutorial.

Prerequisites
This tutorial is written with the assumption that you have completed Tutorial 1 from the
ANSYS FLUENT 13.0 Tutorial Guide, and that you are familiar with the ANSYS FLUENT
navigation pane and menu structure. Some steps in the setup and solution procedure will
not be shown explicitly.

Problem Description
A 30 degree periodic slice of the piston-cylinder combination is considered in this problem.
This simulation starts at intake valve close (IVC) and ends at exhaust valve open (EVO).
So, there are no valves involved, and only the compression and power stroke is simulated.
A pure layering approach is used on a 3D sector mesh. The schematic shows the geometry
and the problem domain used. Methane is used as the fuel and that enters through the
inlet. The flow rate of methane is specified in the UDF.


c ANSYS, Inc. January 3, 2011 1
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Figure 1: Problem Schematic

Modeling Combustion with EGR


There are two ways of modeling EGR using ANSYS FLUENT if only the combustion process
is modeled, from IVC to EVO. The conventional way is to use non-premixed combustion
model of ANSYS FLUENT with the EGR species included in the oxidizer stream.
ANSYS FLUENT has an inert model, which can be used to model EGR or residual gas. The
inert model treats the EGR as if it does not participate in any combustion. Even though the
conventional way should be more accurate since the EGR is in the equilibrium calculation,
inert treatment offers some advantages for EGR modeling. If intake stroke is included as
part of the simulation, the conventional way will not be applicable since the EGR comes
in a separate stream and thus can not be included as part of the oxidizer stream. In such
cases, the two mixture fraction approach is needed to obtain full equilibrium of EGR. But
it is a very expensive process. However, if full equilibrium can be relaxed, the inert option
is a much less expensive option for modeling EGR.

2
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Setup and Solution

Preparation

1. Copy the files, egr tut.msh.gz, initialize.c, and injection ch4.c to your work-
ing folder.

2. Use FLUENT Launcher to start the 3D version of ANSYS FLUENT.


For more information about FLUENT Launcher see Section 1.1.2 Starting ANSYS FLU-
ENT Using FLUENT Launcher in the ANSYS FLUENT 13.0 User’s Guide.

3. Enable Double-Precision in the Options list.

4. Click the Environment tab and make sure that Setup Compilation Environment for UDF
is enabled.
The path to the .bat file which is required to compile the UDF will be displayed as
soon as you enable Setup Compilation Environment for UDF.
If the Environment tab does not appear in the FLUENT Launcher dialog box by default,
click the Show More Options button to view the additional settings.
Note: The Display Options are enabled by default. Therefore, after you read in the
mesh, it will be displayed in the embedded graphics window.

Step 1: Mesh

1. Read the mesh file (egr tut.msh.gz).


File −→ Read −→Mesh...
As ANSYS FLUENT reads the mesh file, messages will appear in the console reporting
the progress of the conversion.

Note: There is only 30 degrees of the mesh, which is corresponding to one fuel injector hole.
The piston is at the top dead center (TDC), the recommended location of meshing for
internal combustion (IC) simulations. This is because the squish volume is minimum
at this piston position. If mesh is built correctly in this position, it is easy to make
sure that the mesh motion will succeed for the whole engine cycle. Later, the mesh
will be moved to IVC position, the starting point of simulation. In convention of
ANSYS FLUENT, TDC after compression stroke is 0. Crank angle (CA) and TDC
after exhaust stroke is 360 CA.


c ANSYS, Inc. January 3, 2011 3
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Figure 2: Mesh Display

Step 2: General Settings

1. Select the transient solver.


General −→ Transient

2. Check the mesh.


General −→ Check
ANSYS FLUENT will perform various checks on the mesh and report the progress in
the console. Make sure that the minimum volume reported is a positive number.
Warnings will be displayed regarding unassigned interface zones, resulting in the failure
of the mesh check. You do not need to take any action at this point, as this issue will
be rectified when you define the mesh interfaces in a later step.

4
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

3. Scale the mesh.


General −→ Scale...

(a) Retain the default settings as the grid is already scaled.


Make sure the scale parameters in the Scale Mesh dialog box are same as that
shown.
(b) Close the Scale Mesh dialog box.
4. Compile and load the user-defined functions (UDF).
Define −→ User-Defined −→ Functions −→Compiled...
(a) Click Add.. in the Source Files group box.
The Select File dialog box will open.
i. Select the files, initialize.c and injection ch4.c and click OK.
(b) Click Build in the Compiled UDFs dialog box.
Here you will create a library with the default name of function::libudf in
your working folder. If you would like to use a different name, you can enter it
in the Library Name field. In this case you need to make sure that you will open
the correct library in the next step.
A dialog box will appear warning you to make sure that the UDF source files are
in the folder that contains your case and data files. Click OK in the warning
dialog box.
(c) Click Load to load the UDF library you just compiled.
When the UDF is built and loaded, it is available to hook to your model. Its
name will appear as function::libudf and can be selected from drop-down lists
of various dialog boxes.
The user-defined functions will be used to initialize the solution and to provide
the fuel injection correctly. Refer the Appendix for more details about the UDFs.


c ANSYS, Inc. January 3, 2011 5
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

5. Hook your model to the UDF library.


Define −→ User-Defined −→Functions Hooks...
(a) Click Edit... next to Initialization.
(b) Select my init function::libudf in Available Initialization Functions and click
Add.
(c) Click OK to close the Initialization Functions dialog box.
(d) Click OK to close the User-Defined Function Hooks dialog box.

6. Create periodic boundary out of face zone period inner1 and period inner2. Use
the text command as shown.

/mesh/modify-zones>make-periodic
Periodic zone[()] period_inner1
Shawdow zone[()] period_inner2
Rotational periodic? (if no, translational)[yes] yes
Create periodic zones? [yes] yes

all 700 faces matched for zones 12 and 11.

zone 11 deleted
created periodic zones.

7. Similarly create another periodic boundary using the face zones period outer1 and
period outer2.

Step 3: Models

1. Enable the energy model.


Models −→ Energy −→ Edit...
(a) Enable the Energy Equation.
(b) Click OK to close the Energy dialog box.

2. Enable the standard k- turbulence model.


Models −→ Viscous −→ Edit...
(a) Select k-epsilon (2 eqn) from the Model list.
The original Viscous Model dialog box will expand when you do so.
(b) Click OK to accept the default Standard model and close the Viscous Model dialog
box.

6
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

3. Enable the non-premixed combustion species model.


Models −→ Species −→ Edit...

(a) Select Non-Premixed Combustion in the Model list.


(b) In PDF options group box turn on Inlet Diffusion and Compressibility Effects.
(c) Click on the Chemistry tab.
i. Retain the State Relation as Equilibrium and Energy Treatment as Non-Adiabatic.
ii. In Model Settings group box, set the Operating Pressure as 3000000 pascal.
iii. Retain Fuel Stream Rich Flammability Limit as 0.1.
iv. Keep the default Thermodynamic Database File Name.
(d) Click on the Boundary tab.
By default ch4, h2, jet-a<g>, n2, o2 species will be present.
i. Type h2o in the Boundary Species group box and click Add.
ii. Similarly add co and co2 species.
iii. Set the mass fraction of each species as shown in the Table 1.
Please refer to the Appendix for details about oxidizer mass fraction calcu-
lation.


c ANSYS, Inc. January 3, 2011 7
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Species Fuel Oxid


ch4 1 0.000158
h2 0 0.000321
jet-a<g> 0 0
n2 0 0.762459
o2 0 0.213019
h20 0 0.010082
co 0 0.003242
co2 0 0.01072

Table 1: Boundary Species Setup

(e) Click on the Table tab.


i. Retain the default settings in Table Parameters group box.
ii. Click Calculate PDF Table.
ANSYS FLUENT will take some time to generate the PDF table. You can
preview the PDF table by clicking the Display PDF Table... button.
iii. Click Apply.
iv. Click OK to close the Species Model dialog box.

4. Write the PDF file. (natural gas EGR pdf-0000.pdf.gz).


File −→ Write −→PDF...

Step 4: Materials

Materials
You can find that a pdf-mixture species is defined under Materials.
Retain the default material properties.
Step 5: Cell Zone Conditions

Cell Zone Conditions


You can find three cell zones, fluid-inj, fluid-inner, and fluid-outer.
Retain the default Cell Zone Conditions.

8
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Step 6: Boundary Conditions

Boundary Conditions

1. Set the conditions for mass flow inlet(inlet).


Boundary Conditions −→ inlet −→ Edit...

(a) Select Mass Flux from the Mass Flow Specification Method drop-down list in the
Momentum tab.
(b) Select udf fuel flux::libudf from the Mass Flux drop-down list.
(c) Select Normal to Boundary from the the Direction Specification Method.
(d) Select Intensity and Length Scale from the Specification Method drop-down list in
the Turbulence group box.
(e) Retain 10% for Turbulence Intensity
(f) Enter 2 mm for Turbulent Length Scale.
(g) Click Thermal tab and make sure Total Temperature is set to 300 K.
(h) In the Species tab, specify a Mean Mixture Fraction of 1 and retain the Mixture
Fraction Variance of 0.
(i) Click OK to close the Mass-Flow Inlet dialog box.


c ANSYS, Inc. January 3, 2011 9
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

2. Make sure that the period inner1 and the period outer1 zone type is rotational.
(a) Make sure that period inner1 zone type is set to rotational.
Boundary Conditions −→ period inner1 −→ Edit...
(b) Similarly check that period outer1 is set to rotational.
Boundary Conditions −→ period outer1 −→ Edit...

Step 7: Mesh Interface Setup

Mesh Interfaces −→ Create/Edit...

1. Enter interface for the Mesh Interface name.

2. Select intf-inner as Interface Zone 1 and intf-outer as Interface Zone 2.

3. Click Create and close the Create/Edit Mesh Interfaces dialog box.

Note: After creating the mesh interface, perform a mesh check.

General −→ Check
In the mesh check report, the angle of periodic boundaries is reported as 30 degrees.

10
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Step 8: Dynamic Mesh Setup

Dynamic Mesh

1. Enable Dynamic Mesh in the Dynamic Mesh task page.

2. Disable Smoothing and enable Layering option in the Mesh Methods group box.
ANSYS FLUENT will automatically flag the existing mesh zones for use of the different
dynamic mesh methods where applicable

3. Click Settings... to open the Mesh Method Settings dialog box.


c ANSYS, Inc. January 3, 2011 11
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

(a) Click the Layering tab.


(b) Select Ratio Based in the Options group box.
(c) Retain 0.4 for Split Factor.
(d) Enter 0.1 for Collapse Factor.
(e) Click OK to close the Mesh Method Settings dialog box.

12
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

4. Enable In-Cylinder and click Settings... in the Options group box.

(a) Enter 700 degrees for Starting Crank Angle.


(b) Enter 0.25 degrees for Crank Angle Step Size.
(c) Enter 120 mm for Piston Stroke and 220 mm for Connecting Rod Length.
(d) Click OK to save the parameters and close the In-Cylinder Settings dialog box.

5. Define dynamic mesh zones to simulate the moving mesh.


Dynamic Mesh −→ Create/Edit...


c ANSYS, Inc. January 3, 2011 13
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

(a) Make sure that bowl is selected from the Zone Names.
(b) Make sure that the Type selected is Rigid Body.
(c) In Motion Attributes tab, make sure that **piston-full** is selected as the Motion
UDF/Profile.
(d) Enter 0 for X axis and 1 for Z axis in the Valve/Piston Axis group box.
(e) In the Meshing Options tab make sure that Cell Height is set to 0.
(f) Click Create.
(g) Similarly for bowl:17 zone retain the other options and enter 1 mm for Cell Height
in Meshing Options tab.
(h) Click Create.
(i) Select fluid-outer in Zone Names and click Create.
(j) For wall top outer, select Type as Stationary and in Meshing Options tab, enter
1.2 mm for Cell Height and click Create.
(k) Close the Dynamic Mesh Zones dialog box.
Note: The whole fluid zone and piston will move up and down using a profile (**piston-
full**), generated automatically by ANSYS FLUENT using crank radius and con-
necting rod length. The cylinder head (wall top outer) is stationary. Relative
motion is detected at the cylinder head and hence layers are added and deleted
at this zone. Similarly, layers are added and deleted at the zone, bowl:017.
Preview the zone motion to check the correctness of the motions specified by clicking
the Display Zone Motion... button.
Preview the mesh motion to check the correctness of dynamic mesh set up by clicking
the Display Mesh Motion... button. Save the case file before previewing the mesh
motion.

14
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Step 9: Solution

1. Set solution parameters.


Solution Methods

(a) Select PISO from the Scheme drop-down list in the Pressure-Velocity Coupling
group box.
(b) Set 0 for Skewness Correction.
(c) Retain 1 for Neighbor Correction.
(d) Make sure that Skewness-Neighbor Coupling is enabled.
(e) Select Second Order Upwind from Momentum drop-down list in Spatial Discretiza-
tion group box.


c ANSYS, Inc. January 3, 2011 15
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

2. Set the relaxation factors.


Solution Controls
(a) Enter 0.5 for Pressure in the Under-Relaxation Factors group box.
(b) Enter 0.99 for Energy.

3. Enable the plotting of residuals during the calculation.


Monitors −→ Residuals −→ Edit...
(a) Make sure that Plot is enabled.
(b) Disable Check Convergence for continuity in the Equations group box.
(c) Click OK to close the Residual Monitors dialog box.

4. Enable the plotting of mass flow rate at inlet.


Monitors (Surface Monitors)−→ Create...

(a) Enable Plot and set Window to 2.


(b) Enable Write and enter ./mass flow rate inlet.out for File Name.
(c) Select Flow Time from X-Axis drop-down list.
(d) Select Time-Step from Get Data Every drop-down list.
(e) Select Mass Flow Rate from Report Type drop-down list.
(f) Select inlet from the list of Surfaces.
(g) Click OK to close the Surface Monitor dialog box.

16
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

5. Enable the plotting of mass-weighted-average of static temperature.


Monitors (Volume Monitors)−→ Create...

(a) Enable Plot and set Window to 3.


(b) Enable Write and enter ./vol temp.out for File Name.
(c) Select Flow Time from X-Axis drop-down list.
(d) Select Time-Step from Get Data Every drop-down list.
(e) Select Mass-Average from Report Type drop-down list.
(f) Select Temperature... and Static Temperature from Field Variable drop-down lists.
(g) Select fluid-outer and fluid-inner from Cell Zones lists.
(h) Click OK to close the Volume Monitor dialog box.
6. Enable the plotting of volume-weighted-average of static pressure.
Monitors (Volume Monitors)−→ Create...
(a) Enable Plot and set Window to 4.
(b) Enable Write and enter ./vol pressure.out for File Name.
(c) Select Flow Time from X-Axis drop-down list.
(d) Select Time-Step from Get Data Every drop-down list.
(e) Select Volume-Average from Report Type drop-down list.
(f) Make sure that Pressure... and Static Pressure are selected from Field Variable
drop-down lists.
(g) From Cell Zones select fluid-outer and fluid-inner.
(h) Click OK to close the Volume Monitor dialog box.


c ANSYS, Inc. January 3, 2011 17
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

7. Initialize the solution.


Solution Initialization
(a) Enter 1898675 pascal for Gauge Pressure.
(b) Enter 690 K for Temperature.
(c) Click Initialize.
Note: The initial values are calculated based on the isentropic relationship as-
suming ideal gas. Initial conditions of fluid are assumed to be at STP.

P1 = 101325Pa
T1 = 300K
gamma = 1.365
Compression ratio(CR) = 11.42
(V2/V1) at CA 700 = 8.689 (using geometry analysis)
P1V1gamma = P2V2gamma
P2 = 1898675Pa
T1V1(gamma−1) = T2V2(gamma−1)
T2 = 690K

8. Start the calculation.


Calculation Activities

(a) Enter 50 for Autosave Every (Time Steps).


(b) Click Edit....
(c) Enter natural gas EGR pdf-CA700.gz for the File Name.
(d) Click OK to close the Autosave dialog box.

18
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

9. Create an iso-surface.
Before specifying the commands to save the solution images at regular intervals, we
need to define a postprocessing surface and a postprocessing view.
Surface −→Iso-Surface...

(a) Select Mesh... and Angular Coordinate from Surface of Constant drop-down lists.
(b) Enter 75 degrees for Iso-Values.
(c) Enter theta=75 for New Surface Name.
(d) Click Compute and then Create.
(e) Close the Iso-Surface dialog box.

10. Display the new surface.


Graphics and Animations (Graphics)−→ Mesh −→ Set Up...

(a) Deselect all the Surfaces.


(b) Select theta=75 and click Display.
(c) Orient the display as shown in Figure 3.
(d) Close the Mesh Display dialog box.


c ANSYS, Inc. January 3, 2011 19
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Figure 3: Iso-Surface Mesh Display

11. Create a postprocessing view.


Graphics and Animations −→ Views

(a) Enter plot-view for Save Name.


(b) Click Save and close the Views dialog box.

20
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

12. Specify the commands to save the solution images at regular intervals.
Calculation Activities (Execute Commands)−→ Create/Edit...

(a) Set the Defined Commands to 4.


(b) Enable Active for all 4 commands.
(c) Set Every for all commands to 10.
(d) Select Time Step from the When drop-down lists for all commands.
(e) Enter the commands as shown in the table.

Name Command
command-1 /dis/sw 5 /dis/view/rv plot-view /dis/set/cont/sur
(theta=75) /dis/cont ch4 0 1
command-2 dis/save-p ch4-%t.tif y
command-3 /dis/sw 4 /dis/view/rv plot-view /dis/set/cont/sur
(theta=75) /dis/cont temp 600 2500
command-4 /dis/save-p temp-%t.tif y

(f) Click OK to close the Execute Commands dialog box.

13. Save the case and data file. (natural gas EGR pdf-CA700.cas.gz).
File −→ Write −→Case & Data...

14. Set the time step parameters for calculation.


Run Calculation
(a) Enter 400 for Number of Time Steps.
(b) Click Calculate.


c ANSYS, Inc. January 3, 2011 21
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Step 10: Postprocessing

1. Plot the pressure curves.


Plots −→ File −→ Set Up...
(a) Click Add... in the File XY Plot dialog box.
(b) Select vol pressure.out.
(c) Click OK to close the Select File dialog box.
(d) Click Plot.

Figure 4: Pressure Variation Inside the Cylinder

2. Plot the temperature curves.


Plots −→ File −→ Set Up...
(a) Click Delete to remove the previous plot.
(b) Click Add... in the File XY Plot dialog box.
(c) Select vol temp.out.
(d) Click OK to close the Select File dialog box.
(e) Click Plot.

22
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Figure 5: Temperature Variation Inside the Cylinder

3. Display the contours.


File −→ Read −→Case & Data...
(a) Select case file natural gas EGR inert-CA700-00-1-00100.cas.gz.
(b) Orient the display.
Graphics and Animations −→ Views...
i. Select plot-view from the Views list.
ii. Click Apply and then close the Views dialog box.
(c) Display the temperature contours.
Graphics and Animations −→ Contours −→ Set Up...
i. Select Tempertaure... and Static Temperature from the Contours of drop-down
lists.
ii. Select theta=75 from the Surfaces list.
iii. Click Display.


c ANSYS, Inc. January 3, 2011 23
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Figure 6: CA = 725(deg) Figure 7: CA = 737.5 (deg)

Figure 8: CA = 750(deg) Figure 9: CA = 782.5 (deg)

(d) Similarly read files


i. natural gas EGR inert-CA700-00-1-00150.cas.gz
ii. natural gas EGR inert-CA700-00-1-00200.cas.gz
iii. natural gas EGR inert-CA700-00-1-00300.cas.gz
and display their contours.

24
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Appendix A
This section provides some explanation on some values used in the calculation. The user
needs to know the composition of EGR species and the mass percentage of EGR. The EGR
composition, if not known, can be estimated from a pilot simulation without EGR. The
composition in this tutorial is estimated using such a process.
The total amount of fuel injected.

1. Calculate the stoichiometric air/fuel ratio for the fuel.

2. Get the equivalence ratio used for combustion.

3. Calculate the actual air/fuel ratio as :


(air/fuel)actual = (air/fuel)stoichiometric / equivalence ratio

4. Get the initial mass of fluid in the cylinder. This can be calculated from ANSYS
FLUENT through
Reports −→ Volume Integrals
as Volume Integral of density over all volumes. Do this calculation after initializing
the case.

5. Calculate the initial mass of air in the cylinder as


initial mass of air = initial mass of fluid * (1-EGR%)

6. Now the total fuel injected can be calculated as


total fuel injected = (initial mass of air) / (air/fuel)actual

7. This value should be used in the UDF, injection ch4.c

PDF Mixture calculations:


If ANSYS FLUENT non-premixed combustion model is used with the EGR species included
in the oxidizer stream. The following procedure is used to calculate the composition of the
oxidizer stream.

1. Calculate the mass fractions of each species in the EGR from the composition of EGR.

2. Calculate the mass fractions of each species in air.

3. Mass fraction of a species when EGR and air is mixed is calculated as:
(mf species A)EGR−air−mixture = (mf species A)EGR * EGR% + (mf species A)air
* (1- EGR%)

Find the mass fraction of each species and enter these values as the boundary species
composition in ANSYS FLUENT.


c ANSYS, Inc. January 3, 2011 25
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Appendix B
UDF: injection ch4.c
Variables used:
fuel injected - total fuel injected calculated as explained in Appendix A.

• CAD - Crank angle duration for injection.

• CAP - Crank angle duration for which the injection mass flow rate increases from zero
to maximum value (or decreases from maximum to zero).

• injection CA - The crank angle at which injection starts.

• inlet area - The inlet area for injection. This can be calculated from ANSYS FLUENT
through
Report −→ Area
as area of inlet surface.

The mass flux curve of fuel injections will be as shown in Figure 10.

Figure 10: Mass Flux Graph with Crank Angle

UDF: initialize.c
The UDF is used to initialize the flow field with the specified swirl ratio. You have to
provide the zone IDs of cell zones corresponding to the cylinder. In the tutorial example
you can find that the zone ids are defined as
Zone ID[] = 3, 4, -1;
Here the values 3 and 4 are obtained from the Cell Zone Conditions pane, corresponding to
fluid-outer and fluid-inner. -1 is kept as a flag to end of Zone ID array.

26
c ANSYS, Inc. January 3, 2011
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Appendix C
Comparison of inert approach and pdf approach for EGR modeling in ANSYS
FLUENT
Two sets of test cases were carried out using inert approach and pdf approach.

• Test 1 uses a 12% residual gas fraction.

• Test 2 uses a 25% residual gas fraction.

Test 1 : Comparison

Figure 11: Average In-Cylinder Static Pressure Curve

Figure 12: Average In-Cylinder Static Temperature Curve


c ANSYS, Inc. January 3, 2011 27
Tutorial: Modeling In-Cylinder EGR Combustion Using PDF Model

Test 2 : Comparison

Figure 13: Average In-Cylinder Static Pressure Curve

Figure 14: Average In-Cylinder Static Temperature Curve

Summary
• The inert assumption showed very little impact on the solution with residual gas mass
fraction at 12%
• With residual gas mass fraction of 25%, the inert assumption starts to show impact
on the solution.
• The tests were done with slightly lean (equivalence ratio of 0.9) condition. The inert
assumption is expected to be less accurate for richer conditions and more accurate for
leaner conditions.

28
c ANSYS, Inc. January 3, 2011

You might also like