Chapter 20. Modeling Engine Ignition

This chapter discusses how to use the engine ignition models available in ANSYS FLUENT in the following sections. For information about the theory behind these ignition models, see Chapter 12: Engine Ignition in the separate Theory Guide.

• Section 20.1: Spark Model

• Section 20.2: Autoignition Models

• Section 20.3: Crevice Model

20.1 Spark Model The spark model in ANSYS FLUENT will be described in the context of the premixed turbulent combustion model. For information regarding the theory of this model, see Section 12.1: Spark Model in the separate Theory Guide. Information regarding the use of this model is detailed in the following section:

• Section 20.1.1: Using the Spark Model

20.1.1 Using the Spark Model To activate the spark model, perform the following steps:

1. Select Transient from the Time list in the General task page.

2. Select an appropriate reaction model in the Species Model dialog box. Models −→ Species −→ Edit...

3. Select Species Transport under Model in the Species Model dialog box and enable Volumetric under Reactions.

4. The Spark Ignition model will now appear in the Models task page. Select the Spark Ignition model and click Edit.... This will open the Spark Ignition Model dialog box. Models −→ Spark Ignition −→ Edit...

5. Define the spark model as either Fixed Spark Size or Time-Varying Spark Radius.

Release 12.0 c ANSYS, Inc. January 30, 2009 20-1 Modeling Engine Ignition

Figure 20.1.1: The Spark Ignition Model Dialog Box

When the Fixed Spark Size is enabled, the dialog box expands to include the main spark model inputs (Figure 20.1.2). The shape of the spark can be spherical, cylindrical or hexahedral in three dimensional simulations, or circular or quadrilateral in two dimen- sional simulations. Depending on the shape selected, appropriate inputs are highlighted or grayed out.

Figure 20.1.2: The Expanded Spark Ignition Model Dialog Box

20-2 Release 12.0 c ANSYS, Inc. January 30, 2009 20.2 Autoignition Models

• To define a spherical spark, the shape parameters can be selected by clicking the Select Points with Mouse button at the bottom of the dialog box, and highlighting the center and radius of the spark kernel.

• Enter Energy, Start Time, Duration, and Diffusion Time in the Spark Ignition Model dialog box. i When the in- model is turned on, the Start Time is entered in angle degrees instead of seconds (as shown in Figure 20.1.2), while the spark Duration is still in seconds. • While the Energy input is in Joules by default, you can redefine the units as needed. The rate of energy input into the domain is constant so that the total energy will be evenly distributed over the duration that you set. The Energy input in the spark model should result in an appropriate temperature rise in the cell that is high enough to initiate combustion. The Energy input is only a model parameter and does not reflect energy input in actual automotive ignition systems, which typically range between 50 and 150 millijoules.

If you select the Time-Varying Spark Radius option, you will need to specify the Energy, Start Time, Duration, Diffusion Time, and Time Exponent. The spark is assumed spherical and will grow from an Initial Radius, r0, to a Final Radius, rf , over the spark Duration, with a cube root dependence on time so that the radius will grow faster at the beginning and more slowly near the end. This time-dependent behavior is consistent with experimental findings [31]. The Time-Varying Spark Radius option is recommended as it has been found to be less sensitive to model parameters.

20.2 Autoignition Models Autoignition phenomena in engines are due to the effects of chemical kinetics of the reacting flow inside the cylinder. There are two types of autoignition models considered in ANSYS FLUENT:

• knock model in spark-ignited (SI) engines

• ignition delay model in diesel engines

For information regarding the theory behind autoignition models, see Section 12.2: Au- toignition Models in the separate Theory Guide. Section 20.2.1: Using the Autoignition Models descibes how to use the autoignition models in ANSYS FLUENT.

Release 12.0 c ANSYS, Inc. January 30, 2009 20-3 Modeling Engine Ignition

20.2.1 Using the Autoignition Models To activate the autoignition model, perform the following steps:

1. Select Transient from the Time list in the General task page.

2. Select an appropriate reaction model in the Species Model dialog box. Models −→ Species −→ Edit...

3. The models in the Species Model dialog box that are compatible with the autoigni- tion model are Species Transport, Premixed Combustion, and Partially Premixed Com- bustion. i If you select Species Transport, you must also enable the Volumetric option in the Reactions group box.

i The Premixed Combustion and Partially Premixed Combustion models are only available for turbulent flows using the pressure-based solver. 4. The Autoignition model will now appear in the Models task page. Models −→ Autoignition −→ Edit... • If Species Transport is selected in the Species Model dialog box, you can only select the Ignition Delay Model.

Figure 20.2.1: The Ignition Delay Model in the Autoignition Model Dialog Box

• If Premixed Combustion is selected in the Species Model dialog box, you can only select the Knock Model. • If Partially Premixed Combustion is selected in the Species Model dialog box, you can select either the Knock Model or the Ignition Delay Model.

5. When the Ignition Delay Model is enabled, the dialog box expands to include the modeling parameters for this model (Figure 20.2.3). The two correlation options that exist with this model are Hardenburg and Generalized. Depending on which

20-4 Release 12.0 c ANSYS, Inc. January 30, 2009 20.2 Autoignition Models

Figure 20.2.2: The Knock Model in the Autoignition Model Dialog Box

correlation option is selected, the appropriate modeling parameters will appear in the dialog box.

Figure 20.2.3: The Ignition Delay Model for the Partially Premixed Combustion Model

• The Hardenburg option is typically used for heavy duty diesel engines. A Fuel Species is selected from the drop-down list and the Pre-Exponential, Pressure Exponent, Activation Energy, and Cetane Number are entered using the GUI. Default values of these parameters can be found in Table 12.2.1 in the separate Theory Guide. • The Generalized option is described by Equation 12.2-3 in the separate Theory

Release 12.0 c ANSYS, Inc. January 30, 2009 20-5 Modeling Engine Ignition

Guide. Similarly to the Hardenburg option, a Fuel Species is selected from the drop-down list and the Pre-Exponential, Temperature Exponent, Activation Energy, RPM Exponent, Pressure Exponent, Equivalence Ratio Exponent, Octane Number, and Octane Number Exponent are entered using the GUI.

6. When the Knock Model is enabled, the dialog box expands to include modeling parameters for this model (Figure 20.2.4). The two correlation options that exist with this model are Douaud and Generalized. Depending on which correlation option is selected, the appropriate modeling parameters will appear in the dialog box.

Figure 20.2.4: The Knock Model with the Partially Premixed Combustion Model Enabled

• The Douaud option is used for knock in SI engines. The modeling parameters that are specified in the GUI for this option are the Pre-Exponential, Pres- sure Exponent, Activation Temperature, Octane Number, and Octane Exponent (Equation 12.2-2 in the separate Theory Guide). • The Generalized option (Equation 12.2-3 in the separate Theory Guide) in the knock model requires the same parameters as in the ignition delay model.

20-6 Release 12.0 c ANSYS, Inc. January 30, 2009 20.3 Crevice Model

20.3 Crevice Model For information regarding the theory behind the crevice model, see Section 12.3: Crevice Model in the separate Theory Guide. Using the crevice models in ANSYS FLUENT are described in the following sections:

• Section 20.3.1: Using the Crevice Model

• Section 20.3.2: Crevice Model Solution Details

• Section 20.3.3: Postprocessing for the Crevice Model

20.3.1 Using the Crevice Model An optical experimental engine [18] is used below to show a working example of how to use the crevice model as it is implemented in ANSYS FLUENT. The mesh at ten crank angle degrees before top center is shown in Figure 20.3.1.

Z Y X

Grid (Time=2.2222e-02) Crank Angle=-5.00(deg)

Figure 20.3.1: Experimental Engine Mesh

Release 12.0 c ANSYS, Inc. January 30, 2009 20-7 Modeling Engine Ignition

The following example shows the necessary steps to enable the crevice model for a typical in-cylinder flow.

1. From the > prompt, enter the define/models menu by using the following text command: define −→models

2. Enable the crevice model, as follows:

/define/models> crevice-model? Enable crevice model? [no] yes

/define/models> acoustics/ frozen-flux? sox? addon-module multiphase/ species/ axisymmetric? noniterative-time-advance? steady? crevice-model-controls/ nox? unsteady-1st-order? crevice-model? radiation/ unsteady-2nd-order? dpm/ solidification-melting? viscous/ dynamic-mesh? solver/ energy? soot?

20-8 Release 12.0 c ANSYS, Inc. January 30, 2009 20.3 Crevice Model

3. Enter the ring pack geometry:

/define/models> crevice-model-controls Cylinder (m) [0.1] 0.1397 to bore clearance (m) [3.0e-5] 5.08e-05 Piston crevice temperature (K) [400] 433 Piston sector angle (deg) [360] 45 Ring discharge coefficient [0.8] 0.7 Pressure in crankcase (exit pressure) (Pa) [101325] Write out crevice data to a file? [no] yes output file name ["crev.out"]

Available wall threads are: (wall.1 wall wall-8) Leaking wall [] wall.1 Shared boundary [] wall-8 Selected boundary threads : (wall.1 wall-8) Use these zones? [yes] yes Solve crevice model ? [no] yes Number of rings [3] Width of ring number 0 is: [0.00375] Thickness of ring number 0 is: [0.0015] Spacing of ring number 0 is: [0.008] Land Length for ring number 0 is: [0.00391] Top Gap of ring number 0 is: [6e-05] Middle Gap of ring number 0 is: [4e-05] Bottom Gap of ring number 0 is: [6e-05]

Width of ring number 1 is: [0.00375] Thickness of ring number 1 is: [0.0015] Spacing of ring number 1 is: [0.008] Land Length for ring number 1 is: [0.00391] Top Gap of ring number 1 is: [6e-05] Middle Gap of ring number 1 is: [4e-05] Bottom Gap of ring number 1 is: [6e-05]

Width of ring number 2 is: [0.00375] Thickness of ring number 2 is: [0.0015] Spacing of ring number 2 is: [0.00391] Land Length for ring number 2 is: [0.00391] Top Gap of ring number 2 is: [6e-05] Middle Gap of ring number 2 is: [4e-05] Bottom Gap of ring number 2 is: [6e-05]

Initial conditions in ring pack Pressure 1 is: [4600623.5] Pressure 2 is: [4173522.5] Pressure 3 is: [3689110.5] Pressure 4 is: [3130620] Pressure 5 is: [2214841.8]

A fast way to set up multiple rings in the ring pack is to specify only one ring and enter the geometry. Once the ring geometry is entered, invoke the crevice-model- controls menu a second time and specify the number of rings desired. When the number of rings changes, the geometry from the first ring is copied to all subsequent rings. Default values can be taken for the rest of the way through the menu structure.

Release 12.0 c ANSYS, Inc. January 30, 2009 20-9 Modeling Engine Ignition

A summary of the crevice model is printed out by entering the (crevice-summary) command at the command prompt:

>(crevice-summary)

crevice/n-rings : 3 crevice/ring-width : (0.00375 0.00375 0.00375) crevice/ring-thickness : (0.0015 0.0015 0.0015) crevice/ring-mass : (0.00375 0.00375 0.00375) crevice/ring-spacing : (0.008 0.008 0.00391) crevice/land-length : (0.00391 0.00391 0.00391) crevice/top-ring-gap : (6e-05 6e-05 6e-05) crevice/mid-ring-gap : (4e-05 4e-05 4e-05) crevice/bot-ring-gap : (6e-05 6e-05 6e-05) crevice/piston-temperature : 433 crevice/sector-angle : 45 crevice/mid-gap-cd : 0.7 crevice/exit-pressure : 101325 crevice/threads : (5 6) names of crevice/threads : (wall.1 wall-8) crevice/unit-roundoff : 5.9604645e-08 crevice/piston-bore-clearance : 5.08e-05 crevice/write? : #t crevice/output-file : crev.out crevice/solve? : #t crevice/enabled? : #t crevice/pressures : (4600623.5 4173522.5 3689110.5 3130620 2214841)

20.3.2 Crevice Model Solution Details The under-relaxation factor for the crevice model source terms can be found in the Solution Controls task page. The default value for Crevice Model Sources is 0.8, which has been found to work well for motored engine simulations. Once the crevice model is enabled, the solution proceeds normally. Solution Controls Solution Initialization Run Calculation

20.3.3 Postprocessing for the Crevice Model A plot of cylinder mass with and without the crevice model during the motored engine simulation is shown in Figure 20.3.2. The rate of mass loss from the crevice is proportional to the pressure difference between the cylinder and the crankcase pressure defined in the text interface. A plot of cylinder pressure with and without the crevice model for the same engine simulation is shown in Figure 20.3.3. The effect of the mass loss from the crevice is to lower the peak pressure in proportion to the total mass loss from the cylinder.

20-10 Release 12.0 c ANSYS, Inc. January 30, 2009 20.3 Crevice Model

Cylinder Mass (kg) With Crevice Without Crevice 4.60e-03

4.40e-03

4.20e-03

4.00e-03

3.80e-03

3.60e-03

3.40e-03

3.20e-03 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055

Cylinder Mass vs. Time (Time=0.0000e+00)

Figure 20.3.2: Cylinder Mass vs. Crank Angle

Cylinder Pressure With Crevice Without Crevice 5.50e+06

5.00e+06

4.50e+06

4.00e+06

3.50e+06

3.00e+06

2.50e+06

2.00e+06

1.50e+06

1.00e+06

5.00e+05

0.00e+00 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055

Cylinder Pressure vs Time (Time=0.0000e+00)

Figure 20.3.3: Cylinder Pressure vs. Crank Angle

Release 12.0 c ANSYS, Inc. January 30, 2009 20-11 Modeling Engine Ignition

Using the Crevice Output File The pressure in the top ring land is defined as the cylinder pressure (i.e., the pressure in the cells defining the ring landing). Intermediate pressures are available at any point during the ANSYS FLUENT session through the (crevice-summary) command as previ- ously shown. If the optional data file output is chosen in the crevice-model-controls, the intermediate pressures in the defined crevices are printed to the file crev.out at the start of each new time step. The format of the file is as follows:

# crank (deg) data->press[0...1...2...3...4...5...6] total_mdot 1.95500e+02 2.16650e+05 1.01325e+05 1.01325e+05 1.01325e+05 1.01325e+05 1.01325e+05 1.01325e+05 0.0 1.96000e+02 2.09945e+05 1.06794e+05 1.81553e+05 1.04111e+05 1.48582e+05 1.02202e+05 1.01325e+05 -1.6 1.96500e+02 2.17787e+05 1.13070e+05 1.88242e+05 1.07960e+05 1.53544e+05 1.03526e+05 1.01325e+05 -1.6 1.97000e+02 2.17434e+05 1.19065e+05 1.88060e+05 1.11705e+05 1.53475e+05 1.04830e+05 1.01325e+05 -1.6 1.97500e+02 2.17652e+05 1.24777e+05 1.88299e+05 1.15286e+05 1.53668e+05 1.06081e+05 1.01325e+05 -1.6 1.98000e+02 2.17937e+05 1.30215e+05 1.88594e+05 1.18711e+05 1.53900e+05 1.07283e+05 1.01325e+05 -1.6

where the first column is the current flow time (or crank angle), and the next ncv + 2 columns are the ring pressures (where ncv is the number of crevice volumes, or 2nr − 1), including the face pressure on the crevice cell, and the defined pressure at the crevice exit. The final column is the mass flow past the top ring. This file is currently format- ted so that it can be read into the free Gnuplot plotting package, which is available at www.gnuplot.info . To read the crevice output file into ANSYS FLUENT as a data file, you will need to put each column of the crevice output file in its own individual file. The first three lines of each column of the data file should be of the following form:

"Title" "X-Label" "Y-Label" 0 0 0 0

where the title, x-label, and y-label strings are enclosed by double quotes and the third line of the file contains four zeros. The lines following the first three lines of the file are the columns you wish to plot. For example, to plot column 1 versus column 3 of the crevice model output file in ANSYS FLUENT, you would enter the following commands in a UNIX terminal:

cat > crev_col_1_3.dat "Column 1 vs Column 3" "Crank Angle (deg)" "Pressure behind ring 1 (Pa)" 0 0 0 0 ctrl-d

20-12 Release 12.0 c ANSYS, Inc. January 30, 2009 20.3 Crevice Model where ctrl-d is the end-of-file character made holding down the key and pressing d. To append columns 1 and 3 to this file, enter the following: tail +2 crev.out | awk ’{print $1, $3}’ >> crev_col_1_3.dat

The file crev col 1 3.dat can now be read into ANSYS FLUENT using the File XY Plot dialog box. See Section 29.9.3: XY Plots of File Data for details about creating x-y plots. For Windows users, the file crev.out can be imported into Excel for plotting purposes without any modification. A Gnuplot plot of the pressure in the ring pack crevices for the above engine simulation is shown in Figure 20.3.4. After an initial transient period where the flows in the network settle down, Figure 20.3.4 shows that the pressure in the ring crevices follows the cylinder pressure in form, though with pressure magnitudes that are controlled by the ring pack geometry.

Pressures in Ring Pack vs Crank Angle 5.5e+06 Cylinder Ring 1 5e+06 1-2 Gap Ring 2 2-3 Gap 4.5e+06 Ring 3 Exit Pressure 4e+06

3.5e+06

3e+06

2.5e+06 Pressure (Pa) 2e+06

1.5e+06

1e+06

500000

0 150 200 250 300 350 400 450 500 550 600 Crank Angle (deg ATDC)

Figure 20.3.4: Crevice Pressures

Release 12.0 c ANSYS, Inc. January 30, 2009 20-13 Modeling Engine Ignition

20-14 Release 12.0 c ANSYS, Inc. January 30, 2009