Professional Documents
Culture Documents
FLUENT IC Tut 01 - Hybrid Approach PDF
FLUENT IC Tut 01 - Hybrid Approach PDF
Hybrid Approach
Introduction
Two approaches are employed in ANSYS FLUENT to solve in-cylinder (IC) problems,
namely, hybrid approach and layering approach. The layering approach is used for en-
gines with vertical valves like most diesel engines, while the hybrid approach is typically
used for engines with canted valves like most spark ignited (SI) engines.
For either approach mentioned above, IC problems solved in ANSYS FLUENT consist of
three stages.
1. Decompose the geometry into different zones and mesh them properly. By breaking up
the model into different zones, it is possible to apply different mesh motion strategies
to different regions in a single simulation.
2. Set up the engine case in ANSYS FLUENT with the help of a setup journal.
In this tutorial setup and simulation process is explained for the hybrid approach. A similar
tutorial, IC Simulation for Vertical Valve Engine Using Layering Approach, exists for the
layering approach.
This tutorial demonstrates:
1. Procedure to setup IC flow problem using journal file: The journal file automatically
sets up the necessary motions for valves and piston, along with solution parameter
which suit the IC simulation best. Journal file allows you to set up an IC simulation
with all the best practices built-in, without learning the dynamic mesh capability.
This is made possible through the correct decomposition and zone name matching.
Appendix A contains a sketch of the decomposition and the corresponding zone names.
2. Procedure to solve the cold flow simulation: This tutorial makes use of a In-Cylinder
Output Controls to calculate swirl and tumble ratio.
c ANSYS, Inc. April 22, 2011 1
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
3. Boundary conditions for all interior and interface zones related to valves or piston
motion but NOT inlets, outlets, symmetry, or combustion models etc.
4. All solver settings in first order. You may need to change it to second order for greater
accuracy.
Note: Due to different file format between Windows and UNIX, if you use UNIX you may
need to use dos2unix or dos2ux command to change the format for all *.scm and
*.par files that come with the tutorial. You could also try to use a text editor to open
the files and then save it. Otherwise, you may not be able to load the scheme file and
the *.par file may not read correctly.
Prerequisites
This tutorial is written with the assumption that you have completed Tutorial 1, 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
This tutorial considers a 3D symmetric geometry of a IC engine cylinder configuration.
Case setup is performed using a scheme file that automatically sets up necessary motions
for valves and pistons along with solution parameters found to be best suit for the in-cylinder
simulation.
2
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Preparation
4. Click the Environment tab and ensure 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.
c ANSYS, Inc. April 22, 2011 3
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Step 1: Mesh
2. Rotate and zoom the display to obtain the view as shown in Figure 2
Note: The case has a symmetric plane. Use of symmetry helps reduce cell count by a factor
of two and thus greatly reduce the run time.
Layering is used for lower combustion chamber and the valve seat, to reduce cell count
and to properly resolve the flow. Tetrahedral mesh is used in the upper combustion
chamber and ports to facilitate the setup.
The mesh must have the correct decomposition and names before using the journal
to automatically set up the case. Figure 1 shows the geometry decomposition. In
Appendix A, a sketch of the decomposition and the corresponding names are provided
for quick reference.
4
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
5. IC setup.
Define User-Defined In-Cylinder Mesh Motion Setup...
c ANSYS, Inc. April 22, 2011 5
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Note: The IC Setup dialog box contains some default values. You will not use these
parameters as they are problem dependent. Instead, you have to read a parameter
file.
(a) Click Read at the bottom of the dialog box and read the input parameter file
IC-motion-parameters.par.
The file contains all the engine parameters and parameters required for valves
motion and piston motion setup. You could also enter the parameters directly in
the dialog box.
Note: You can use the Write button to write out the parameter files for later
use. The IC-motion-parameters.par provided was written out by this after
manually entering those numbers. The parameter file is text file that can be
edited easily using any text editor. The parameters are put in the file in an
order that is similar to the dialog box.
(b) Click OK.
The journal will automatically set up mesh motion for the intake valve, exhaust
valve, and piston. This automation is achieved through correct decomposition
and zone name matching. If the names of the zones are incorrect, the case will
not be setup and you will be notified about the zones for which the names are not
matched. The scheme file will automatically select Standard k-e as the turbulence
model.
Note: The explanation of the parameters is in Appendix B. For this tutorial,
piston type1 is used. More details on different type of pistons are explained
in Appendix C.
6
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Note: In convention with ANSYS FLUENT, the 0 crank angle (CA) is at top
dead center (TDC) after compression. So, at 0 CA both intake and exhaust
valves are closed as shown in Figure 3. If in your convention, 0 CA is at
TDC after power stroke, you will need to shift your profile.
c ANSYS, Inc. April 22, 2011 7
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Step 3: Models
Journal will automatically select Standard k-epsilon turbulence model and use default
values as shown in the dialog box.
8
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
c ANSYS, Inc. April 22, 2011 9
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
10
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
You can also enable Display Mesh and Save Picture, to save the pictures of
the mesh at specified Display Frequency for creating a mesh motion animation
later.
(c) Click Apply.
(d) Click Preview.
Note: Mesh motion for this tutorial case takes about one hour on serial Windows
XP 3.19GHz machine.
(e) Close the Mesh Motion dialog box.
Boundary Conditions
3. Make sure the boundaries with name symm-(except symmetry-bowl) have symmetry
boundary condition.
There is no need to specify boundary conditions for other face zones. Those will be
automatically setup by the scheme.
c ANSYS, Inc. April 22, 2011 11
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Dynamic Mesh
(a) In the In-Cylinder Output Controls dialog box, set In-Cylinder Data Write Frequency
to 1.
(b) Ensure center of gravity is selected from Swirl Center Method.
(c) From the Cell Zones list select fluid-ch and fluid-piston-layer.
(d) Set X, Y, Z from Swirl Axis to 0, 0, 1 respectively.
(e) Set X, Y, Z from Tumble X-Axis to 1, 0, 0 respectively.
(f) Set X, Y, Z from Tumble Y-Axis to 0, 1, 0 respectively.
(g) Enter ic-hybrid.txt for File Name.
(h) Click OK.
12
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Step 8: Solution
c ANSYS, Inc. April 22, 2011 13
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
In this case, it is 55. This ID will be needed later for contour plot.
(c) Display iso surface.
Graphics and Animations Mesh Set Up...
i. Deselect all from the list of Surfaces.
ii. Select y=.02 and click Display.
iii. Close the Mesh Display dialog box.
14
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
c ANSYS, Inc. April 22, 2011 15
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Solution Methods
Step 9: Postprocessing
At the end of the simulation you will have the following files:
16
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
c ANSYS, Inc. April 22, 2011 17
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Summary
In this tutorial you have learned how to setup an IC engine cold flow case in ANSYS
FLUENT. Scheme file provided with this tutorial can be used for setting up case on any
other IC engine geometry, provided mesh and name of boundary and cell zones are created
as per specification in the Appendix A.
Appendix A
18
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
c ANSYS, Inc. April 22, 2011 19
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Appendix B
Parameters in the IC Setup dialog box.
20
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Layering Approach: This approach is used for the vertical valve engine. There are
two mesh types (conformal and non-conformal mesh type) used for layering
approach. For further details please refer IC tutorial I-B.
Piston Type: There are three piston types. For pistons with enough room to put
one layer to start with, select 1. For flat pistons with tight squish combustion
chamber and thus insert-boundary-layer is used, select 2. For complex piston shape
like GDI engines and thus insert-interior-layer is used, select 3. The decomposition
for different piston types is different. Appendix C explains difference between
these piston types.
Piston Stroke Cutoff: Parameter used to control the height of upper remeshing com-
bustion chamber. The rule of thumb is to use max valve lift plus 4 or 5mm.
Cylinder Radius: Cylinder radius.
Cylinder Axis Direction: Cylinder Axis Origin and Cylinder Axis Direction together define
a cylinder for the engine cylinder. ANSYS FLUENT needs this to project nodes
on the engine cylinder back to a perfect cylinder.
Cylinder Axis Origin: Cylinder Axis Origin and Cylinder Axis Direction together define a
cylinder for the engine cylinder. ANSYS FLUENT needs this to project nodes on
the engine cylinder back to a perfect cylinder.
3. Input parameters under Valve Motion Setup tab:
Number of Valves: The total number of vales in the engine.
Valve Number: Valve number for which parameters are setup.
For example, if there are total 4 valves, valve number parameter will vary from
1 to 4. The parameters like Valve Name, Valve Profile Name, etc., are required to
setup for each valve number and these parameters are stored against the valve
number.
Valve Name: The auto set up is done through name matching system. This is the
valve root name.
Valve Profile Name: Valve profile is used to define valve motion. This name is shown
up on ANSYS FLUENT screen during the step of Read the Valve Profile.
Open Valve: CA to open the valve. At the specified CA, the valve will open by forming
the non-conformal interface.
Close Valve: CA to close the valve. At the specified CA, the valve will close by deleting
the non-conformal interface.
Refer Appendix D for the recommended practice to select the opening and closing
crank angles.
Valve Margin Radius: Valve radius.
Valve Axis Direction: Valve Axis Origin and Valve Axis Direction together define a cylin-
der for the valve. ANSYS FLUENT needs this to project nodes back to a perfect
cylinder.
Valve Axis Origin: Valve Axis Origin and Valve Axis Direction together define a cylinder
for the valve. ANSYS FLUENT needs this to project nodes back to a perfect
cylinder.
c ANSYS, Inc. April 22, 2011 21
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Variable URFs: With this option enabled, the URFs are not a constant. When valves
are opening or closing, the URFs for k, e, Momentum, and Pressure will be
automatically reduced and later on switched back.
Variable Crank Angle Step Size: With this option enabled, the time step size is not a
constant. When valves are opening or closing, the time step size will be auto-
matically reduced and later on switched back.
Duration: The duration for reduced URFs or/and time step size.
Appendix C
Different types of piston and treatment
Piston shape can vary from flat piston seen in some spark ignited (SI) engines to very
complex piston bowl shape seen in some diesel or GDI engines. This physical difference
makes it necessary to treat different pistons in different ways. In ANSYS FLUENT all
different pistons can be categorized into three different types.
1. Piston type 1 is designated for engines with enough squish volume to put one layer
of wedge elements when the piston is at the TDC, be it a flat piston or piston with a
bowl, as shown in Figure 9. The figure also shows the names required. Note that for
the geometry with a bowl, piston should also include the bowl.
22
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
The mesh requirement is shown in Figure 10. A layer of wedge elements is needed
for layering for piston type 1. In most cases, you can not put a layer of hex mesh
because the squish volume in typical engines would not allow for extra pyramids on
top of int-piston needed to make the transition from hex mesh to tet mesh. If your
engine has large squish volume to allow for pyramids and thus using hex vs. wedges,
contact your support engineer.
c ANSYS, Inc. April 22, 2011 23
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
2. Piston type 2 is designated for engines without enough squish volume to put one
layer of wedge elements when the piston is at TDC, be it a flat piston or piston with
a bowl, as shown in Figure 11. The figure also shows the names required.
24
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
c ANSYS, Inc. April 22, 2011 25
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Piston type 1 and 2 do not allow the valves to penetrate into the bowl because the
valves will interfere with either int-piston for piston type 1 or piston for piston type 2.
3. Piston type 3 is designated for engines with such valve penetration. Figure 13 shows
the names required.
For piston type 3, a layer of wedge elements is not needed. Instead, ANSYS FLUENT
will automatically create a layer at user specified CA in the IC Setup dialog box. There
is only one insert CA for piston type 3. The same angle is used for both power stroke
and intake stroke. Insert location uses Cylinder Axis Origin.
26
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Piston type 1 and 2 are commonly used for diesel and gasoline engines. Piston type 3
could be used for some GDI engines with deep valve penetration. Piston type 3 is the most
general and requires less decomposition. However, it has less number of layered elements
and utilizes more tet cells and thus typically has more cells and takes more computational
time. If possible, you should always try to use piston type 1 or 2.
The mesh files for all the above piston types are provided with this tutorial. You will need
to do the following to see the results.
3. Read the parameter file in through the IC Setup dialog box. This will set up the
piston. Make the required changes in the Piston Motion Setup.
c ANSYS, Inc. April 22, 2011 27
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
Appendix D
Determining the valve opening and closing angles
In Valve Motion Setup in IC Setup dialog box, you need to specify the opening and closing
CA of each valve. It should be specified in such a way that the flow to the chamber should
neither be under predicted nor over predicted. If we specify the actual valve opening CA
in the setup this will allow too much of flow into the chamber as there is a minimum lift
for the valve due to the V-layer modeled in the geometry decomposition. To overcome this,
one can adopt the following approach in setting up the valve parameters.
Typical valve profile will be as shown below. As per profile valve opens at 350 deg CA and
at about 358 deg CA the valve lift reaches 0.1 mm
((in-valve point 140 1)
(angle
3.500000e+02 3.515000e+02 3.530000e+02 3.545000e+02 3.560000e+02
3.5750000e+02 ..............)
(lift
1.000000e-07 1.130000e-06 3.848000e-05 5.565000e-05 1.010000e-04
1.090000e-04 ................)
)
While modeling, IC case in ANSYS FLUENT we usually keep the V-layer thickness to 0.1mm.
28
c ANSYS, Inc. April 22, 2011
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
If valve opens at 350 deg CA, as per profile and in practice flow will vary according
to the lift profile in Figure 16.
If the valve opening CA is set as 350 degrees in ANSYS FLUENT the simulated valve
lift profile will be as shown in Figure 17 and the flow will be over predicted.
c ANSYS, Inc. April 22, 2011 29
Tutorial: IC Simulation for Canted Valve Engine Using Hybrid Approach
If the valve opening CA is set as 356 in ANSYS FLUENT the simulated valve lift
profile will be as shown in Figure 18 and the flow will be under predicted.
So the recommended practice is to keep the valve opening CA at the average of both
the above which is CA 353. The simulated valve lift profile is as shown in Figure 19
and this will provide the flow rate approximately equal to the actual flow rate.
30
c ANSYS, Inc. April 22, 2011