Académique Documents
Professionnel Documents
Culture Documents
Introduction
This tutorial introduces basic dynamic mesh calculations in FLUENT. In addition to com-
bining the basic mesh motion schemes, this tutorial introduces rigid body motion of a cell
zone. This is useful for realistic in-cylinder cases with moving valves. In geometries where
the valves and piston occupy the same space (at different times), the cell zone containing
the layered cells above the piston must be moved out of the way to avoid interfering with
the moving valves.
In this tutorial you will learn how to:
• Set up a problem for a dynamic mesh.
• Specify dynamic mesh modeling parameters.
• Specify the motion of dynamic zones.
• Preview the dynamic mesh before starting the calculation.
• Perform basic dynamic mesh calculations with residual plotting.
• Perform postprocessing.
Prerequisites This tutorial assumes that you are familiar with the FLUENT interface
and that you have a good understanding of the basic setup and solution procedures. In this
tutorial, you will use the dynamic mesh model, so you should have some experience with it.
If you have not used this model before, please refer to Section 11.7 of the FLUENT 6.3 User’s
Guide.
c Fluent Inc. July 10, 2006 1
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
In this tutorial, you will use the following methods to update the volume mesh in the
deforming region:
• Layering: It can be used to add or remove layers of cells adjacent to a moving boundary
based on the height of the layer adjacent to the moving surface. The dynamic mesh
model allows an ideal layer height to be specified on each moving boundary. The layer
of cells adjacent to the moving boundary is subdivided or merged with the layer of
cells next to it based on the height of the cells in the moving boundary.
• Remeshing: It can be used to remesh agglomerated poor-quality cells (cells that are
too large, too small, or excessively stretched). When the boundary displacement is
large compared to the local cell sizes, the cell quality deteriorates or the cells become
degenerate. This will lead to convergence problems when the solution is updated to
the next time step. To circumvent this problem, FLUENT agglomerates poor-quality
cells and locally remeshes the agglomeration.
Problem Description
The problem is shown schematically in Figure 1. A simplified 3D in-cylinder geometry is
used, consisting of a circular cylinder, the bottom wall of which represents the piston. The
piston moves up from bottom dead center position (BDC), corresponding to a crank shaft
angle of 180◦ , slowly compressing the fluid adiabatically. After reaching top dead center
(TDC), corresponding to a crank shaft angle of 360◦ , the piston moves back downward to
the initial position, to complete a cycle, at a crank shaft angle of 540◦ .
2
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
= crank angle
Preparation
c Fluent Inc. July 10, 2006 3
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
(a) Select cm in the Grid Was Created In drop-down list and click Scale.
(b) Click Change Length Units to set the length unit to centimeter.
(c) Close the panel.
(a) Ensure that in the Surfaces list, cyl-quad, cyl-tri, head, and piston are selected.
(b) Click Display and close the panel.
4
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
Z
Y
X
Grid
Crank Angle=180.00(deg) FLUENT 6.3 (3d, pbns, lam)
Step 2: Models
Define −→ Models −→Solver...
c Fluent Inc. July 10, 2006 5
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
Step 3: Materials
The only material property you need to modify is density. The default values for all other
properties are acceptable.
Define −→Materials...
In this tutorial, you will not visit the Boundary Conditions panel. There are no inlets or
outlets and you will use the default adiabatic wall thermal conditions for all walls. Dynamic
mesh motion and all related parameters are specified using the items in the Define/Dynamic
Mesh submenu.
6
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
4. Retain the default settings for the layering and smoothing parameters.
c Fluent Inc. July 10, 2006 7
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
(b) Under Options, retain the default settings for Size Function and Must Improve
Skewness.
By default, the Size Function option is turned off and the Must Improve Skewness
option is turned on.
(c) Specify Minimum Length Scale and Maximum Length Scale as 0.28 cm and 1.22
cm repectively.
Local remeshing will occur if the cell size gets larger than the Maximum Cell
Volume or smaller than the Minimum Cell Volume. Therefore, you have to specify
problem-specific values for remeshing parameters.
(d) Retain Maximum Cell Skewness at 0.9.
8
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
c Fluent Inc. July 10, 2006 9
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
7. Using the text command interface, plot the piston motion profile by specifying the
following commands:
The **piston-full** profile describes motion in terms of the Piston Stroke and Connecting
Rod Length parameters defined previously. The **piston-limit** profile is limited to the
Piston Stroke Cutoff parameter. See Figure 3.
**piston-full**
**piston-limit**
0.0800
0.0700
0.0600
0.0500
0.0400
0.0300
0.0200
0.0100
0.0000
Y 0 100 200 300 400 500 600 700 800
10
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
c Fluent Inc. July 10, 2006 11
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
Note: Use this Zone Scale Info panel to esitmate the average length scale.
For the minimum length scale, use a value about 0.4 times the average
length scale. For the maximum length scale, use a value about 1.4 times
the average length scale.
iii. Under Zone Parameters, specify the values shown in the table:
Zone Parameters Values
Minimum Length Scale (cm) 0.19
Maximum Length Scale (cm) 0.67
Maximum Skewness 0.32
(e) Click Create.
12
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
c Fluent Inc. July 10, 2006 13
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
5c: Preview
14
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
(a) Retain the default settings under Motion History Integration and click Integrate.
Integrate allows FLUENT to create a table of surface positions with respect to
time.
(b) Retain the default settings under Preview Controls and click Preview.
(c) Close the Zone Motion panel.
c Fluent Inc. July 10, 2006 15
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
3. Enable lighting.
Display −→Options...
(a) Under Lighting Attributes, enable Lights On.
(b) Click Apply and close the panel.
Steps 2 and 3 are for better visibility of the mesh surface.
The displayed time step size (8.333333e-05) in the read-only text field for Time Step
Size, corresponds to 12 degree crank angle. It depends on the crankshaft speed and
crank angle increment parameters defined earlier.
(a) Enter 720 as Number of Time Steps.
This corresponds to one full revolution of the crankshaft.
(b) Click Preview to preview the mesh motion.
As the mesh is updated by FLUENT, messages will appear in the console window
reporting the progress of the update.
5. Exit FLUENT.
16
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
(b) Enable Plot, Print, and Write for the first monitor.
When the Write option is selected in the Volume Monitors panel, the volume-
averaged temperature history will be written to a file. If you do not select the
Write option, the history information will be lost when you exit FLUENT.
(c) In the Every drop-down list, select Time Step for the monitor frequency.
(d) Click Define... to define the monitor.
The Define Volume Monitor panel opens.
c Fluent Inc. July 10, 2006 17
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
18
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
(a) Retain the default values for all variables, including the initial Temperature value
of 300.
(b) Click Apply.
This does not initialize the flow field data. It only saves the initialization param-
eters for later use. Use the Init button to initialize the solution.
(c) Click Init to initialize the solution.
(d) Click Close.
c Fluent Inc. July 10, 2006 19
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02
3.00e+02 Z
3.00e+02 Y
X
3.00e+02
Display the mesh such that it is visible even after the piston reaches BDC.
(c) Save the current view.
Display −→Views...
20
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
i. Click Save to save the current view as view-0 and close the panel.
(d) Open the command monitor window.
Solve −→Execute Commands...
c Fluent Inc. July 10, 2006 21
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
(a) Set Autosave Case File Frequency and Autosave Data File Frequency to 90.
The mesh changes during the simulation, so save both the case and data files.
(b) In the Filename field, enter cyl3d new.gz and click OK.
When FLUENT saves a file, it appends the time step value to the file name prefix
(cyl3d new). It also appends standard extensions (.cas and .dat).
22
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
(a) For the Under-Relaxation Factors, set Pressure to 0.6 and Momentum to 0.9.
(b) Under Discretization, select PRESTO! for Pressure.
(c) Under Pressure-Velocity Coupling, select PISO.
(d) Set Skewness Correction to 0.
(e) Click OK.
Step 8: Solution
c Fluent Inc. July 10, 2006 23
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
vol-mon-1
1000.0000
900.0000
800.0000
700.0000
Volume
Weighted 600.0000
Average
(k)
500.0000
400.0000
300.0000
Y 0.0000 0.0100 0.0200 0.0300 0.0400 0.0500 0.0600 0.0700
Z X Flow Time
24
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
Step 9: Postprocessing
Note: The temperature and density at the end of one full cycle closely replicate
those at the beginning of the simulation (the 300 K uniform initial tempera-
ture).
c Fluent Inc. July 10, 2006 25
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
9.00e+02
8.70e+02
8.40e+02
8.10e+02
7.80e+02
7.50e+02
7.20e+02
6.90e+02
6.60e+02
6.30e+02
6.00e+02
5.70e+02
5.40e+02
5.10e+02
4.80e+02
4.50e+02
4.20e+02
3.90e+02
3.60e+02 Z
3.30e+02 Y X
3.00e+02
2.00e+01
1.91e+01
1.81e+01
1.72e+01
1.62e+01
1.53e+01
1.44e+01
1.34e+01
1.25e+01
1.15e+01
1.06e+01
9.65e+00
8.71e+00
7.77e+00
6.83e+00
5.88e+00
4.94e+00
4.00e+00
3.06e+00 Z
2.12e+00 Y X
1.18e+00
26
c Fluent Inc. July 10, 2006
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
9.00e+02
8.70e+02
8.40e+02
8.10e+02
7.80e+02
7.50e+02
7.20e+02
6.90e+02
6.60e+02
6.30e+02
6.00e+02
5.70e+02
5.40e+02
5.10e+02
4.80e+02
4.50e+02
4.20e+02
3.90e+02
3.60e+02 Z
3.30e+02 Y X
3.00e+02
The temperature very closely obeys the analytical result for a reversible adiabatic
compression:
γ−1
T2 ρ2
=
T1 ρ1
where γ = 1.4, and the compression ratio is 17:1 (ρ2 /ρ1 = 17), yielding a theo-
retical temperature at top dead center of 932 K.
(c) Display contours of density (Figure 9).
i. Enter 1.18 for Min and 20 for Max
ii. Click Display.
c Fluent Inc. July 10, 2006 27
3D Adiabatic Compression (Layering, Remeshing, and Spring Smoothing)
2.00e+01
1.91e+01
1.81e+01
1.72e+01
1.62e+01
1.53e+01
1.44e+01
1.34e+01
1.25e+01
1.15e+01
1.06e+01
9.65e+00
8.71e+00
7.77e+00
6.83e+00
5.88e+00
4.94e+00
4.00e+00
3.06e+00 Z
2.12e+00 Y X
1.18e+00
Summary
In this tutorial you learned how to use the dynamic mesh feature of FLUENT. If you are
going to set up and solve real-life in-cylinder simulations that involve valve movement
and piston movement, you will have to perform some additional steps that could not be
illustrated with the geometry in this problem. Please see the application-specific tutorial
for in-cylinder modeling (available from your technical support engineer) for details.
28
c Fluent Inc. July 10, 2006