Está en la página 1de 35

Tutorial: 2D Adiabatic Compression (Layering)

Introduction
This tutorial illustrates the setup and solution of a basic deforming mesh in FLUENT using
the layering approach.
The dynamic mesh model in FLUENT can be used to model flows where the shape of the
domain is changing with time due to motion on the domain boundaries. The motion can be
either a prescribed motion (e.g., you can specify the linear and angular velocities about the
center of gravity of a solid body with time) or an unprescribed motion where the subsequent
motion is determined through a user-defined function (UDF). The update of the volume
mesh is handled automatically by FLUENT at each time step based on the new positions
of the boundaries. To use the dynamic mesh model, you need to provide a starting volume
mesh and the description of the motion of any moving zones in the model.
In this tutorial, you will use the layering mesh motion method to update the volume mesh in
the deforming region. You will setup and solve the case for both types of layering; Bottom
Layering and Top Layering. Layering 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 first part will involve Bottom Layering, and the second part the Top Layering. The
dynamic mesh model in FLUENT 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.
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.

• Examine the temperature and density fields using graphics.


c Fluent Inc. June 20, 2005 1
2D Adiabatic Compression (Layering)

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 10.6 of the FLUENT 6.2 User’s
Guide.

Problem Description
The problem to be considered is shown schematically in Figure 1. A simplified 2D geometry
is used, consisting of a box, the bottom wall of which represents the piston. The piston moves
up from bottom dead center position (BDC), slowly compressing the fluid adiabatically.
After reaching top dead center (TDC), the piston moves back downward to the initial
position, to complete a cycle.

Figure 1: Schematic of the Problem

Preparation

1. Copy the file box2d layer.msh to your working directory.

2. Start the 2D version of FLUENT.

2
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

Setup and Solution (1): Bottom Layering


Step 1: Grid

1. Read the grid file box2d layer.msh.gz.


File −→ Read −→Case...
As the mesh file is read in, messages will appear in the console window reporting the
progress of the reading.

2. Check the grid.


Grid −→Check
The grid check lists the minimum and maximum x and y values from the grid, in the
default SI units of meters, and reports on a number of other grid features that are
checked. Any errors in the grid would be reported at this time. In particular, you
should always make sure that the minimum volume is not negative, since FLUENT
cannot begin a calculation if this is the case.

3. Display the grid (Figure 2).


Display −→Grid...

(a) Under Surfaces, select all the surface zones.


(b) Click Display and close the panel.
You can use the right mouse button to check which zone number corresponds to
each boundary. If you click the right mouse button on one of the boundaries
in the graphics window, its zone number, name, and type will be printed in the
FLUENT console window. This feature is especially useful when you have several
zones of the same type and you want to distinguish between them quickly.


c Fluent Inc. June 20, 2005 3
2D Adiabatic Compression (Layering)

Grid Jun 07, 2005


FLUENT 6.2 (2d, segregated, lam)

Figure 2: Grid for the 2D Box Geometry

4
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

Step 2: Models

1. Enable a time-dependent calculation.


Define −→ Models −→Solver...

(a) Select Unsteady under Time.


(b) Keep the default Unsteady Formulation of 1st-Order Implicit.
Dynamic mesh simulations currently work only with first-order time advance-
ment.


c Fluent Inc. June 20, 2005 5
2D Adiabatic Compression (Layering)

Step 3: Materials
The only material property you need to modify is density; the default values for all other
properties are acceptable.

1. Specify that the flow is compressible.


Define −→Materials...

(a) Select ideal-gas in the drop-down list for Density.


(b) Click Change/Create and close the panel.
Note: FLUENT will automatically activate the energy equation when the ideal-
gas law is selected, so you will not need to visit the Energy panel.

6
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

Step 4: Boundary Conditions

In this tutorial, you will not need to visit the Boundary Conditions panel to set any condi-
tions. You will use the default adiabatic wall thermal conditions for all walls, and no inlets
or outlets are present. Dynamic mesh motion and all related parameters are specified using
the items in the Define/Dynamic Mesh submenu, not through the Boundary Conditions panel.
You will set these conditions in the next step.

Step 5: Mesh Motion Setup

1. Activate dynamic mesh motion and specify the associated parameters.


Define −→ Dynamic Mesh −→Parameters...

(a) Under Models, select Dynamic Mesh.


The panel will expand to show additional inputs.
(b) Under Model, select In-Cylinder.
Selection of the In-Cylinder option allows input for IC-specific needs, including
valve and piston motion.
(c) Under Mesh Methods, enable Layering and disable Smoothing.
Make sure that Remeshing is disabled.
(d) Under Layering tab, retain the default settings for the Split Factor and Collapse
Factor.
(e) Set the In-Cylinder parameters.


c Fluent Inc. June 20, 2005 7
2D Adiabatic Compression (Layering)

i. Click the In-Cylinder tab.


The In-Cylinder parameters will be displayed.
ii. Set the Crank Shaft Speed to 10 rpm.
This simulation is run at low speed to approximate the ideal process.
iii. Set the Starting Crank Angle to 180 degrees.
The piston is currently at the bottom dead center (BDC) position. The BDC
position is defined as 180 degrees crank angle, while the top dead center
(TDC) position is defined as 0 degrees crank angle.
iv. Keep the default Crank Period of 720 degrees.
A value of 720 degrees is used for four-stroke engines, while a value of 360
degrees is used for two-stroke engines. This governs the periodicity associated
with valve events and valve lift profiles. Since there are no moving valves,
this parameter is not used in the current calculation.
v. Set the Crank Angle Step Size to 0.5 degrees.
This value is used along with the crankshaft speed to determine the time step.
vi. Set the Piston Stroke to 8 m.
vii. Set the Connecting Rod Length to 14 m.
viii. Set both the Piston Stroke Cutoff and Minimum Valve Lift to 0 m.
These two parameters are not utilized in the current simulation.
ix. Click OK.

8
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

(f) Using the text command interface, plot the piston motion profile.
i. In the text command interface, type the commands as shown below:

/define/models/dynamic-mesh-controls/in-cylinder-parameter> ppl
#f
Lift Profile:(1) [()] **piston-full**
Lift Profile:(2) [()] <Enter>
Start: [180] 0
End: [720]
Increment: [10] 5
Plot lift? [yes] y

The **piston-full** profile (Figure 3) describes motion in terms of the


Piston Stroke and Connecting Rod Length parameters defined previously.

8.00e+00

7.00e+00

6.00e+00

5.00e+00

4.00e+00

3.00e+00

2.00e+00

1.00e+00

0.00e+00
0 100 200 300 400 500 600 700 800

Crank Angle (deg)

Valve Lifts (Time=0.0000e+00) Jun 07, 2005


FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 3: The **piston-full** Profile


c Fluent Inc. June 20, 2005 9
2D Adiabatic Compression (Layering)

2. Specify the motion of the piston.


Define −→ Dynamic Mesh −→Zones...

(a) In the Zone Names drop-down list, select moving wall.


(b) Under Type, keep the default setting of Rigid Body.
(c) In the Motion UDF/Profile drop-down list, select **piston-full**.
(d) Set the Valve/Piston Axis to (0, 1).
(e) Click the Meshing Options tab.

10
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

(f) Set the Cell Height to 0.8 m.


(g) Click Create.
(h) Close the Dynamic Zones panel.

3. Preview the zone motion.


The zone motion preview utility is useful for quickly checking rigid body motion set-
tings. The mesh coordinates are not actually modified during this procedure; instead
dynamic zones with rigid body motion settings are simply translated in the display
window to emulate the actual grid motion. User errors, such as an improperly scaled
mesh or valve lift profile, incorrect valve/piston axis definition, etc., can be quickly
identified using this procedure. Only the motion of zones with rigid body motion is
represented, remeshing on deforming zones is not depicted.
(a) Display the grid outline.
Display −→Grid...
i. Deselect all surfaces.
ii. Click the Outline button to select all of the boundary surfaces and click
Display to display the grid.
iii. Close the Grid Display panel.


c Fluent Inc. June 20, 2005 11
2D Adiabatic Compression (Layering)

(b) Initiate the mesh motion.


Display −→Zone Motion...

i. Click Integrate.
ii. Keep the default settings under Preview Controls and click Preview.
If the case is setup properly, you should see the piston move through two
complete cycles.
iii. Close the Zone Motion panel.

Step 6: Mesh Preview

1. Save the case file, box2d layer.cas.gz.


The mesh changes during the preview, so be sure to save the case before mesh preview.

2. Display the grid.


Display −→Grid...

(a) Select all surfaces.


(b) Click Display.
(c) Close the Grid Display panel.

12
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

3. Set up the mesh preview.


Solve −→Mesh Motion...

The time step size, displayed as 0.008333333 in the read-only text field for Time Step
Size, corresponds to 12 degree crank angle and is based on the crankshaft speed and
crank angle increment parameters defined earlier.
(a) Enter 720 for the number of time-steps.
This corresponds to one full revolution of the crankshaft.
(b) Click Preview the preview the mesh motion.
As the mesh is updated by FLUENT, messages will appear in the console window
reporting the progress of the update.

4. Exit FLUENT.

Step 7: Solution

1. Start FLUENT 2D and read the previously saved case file, box2d layer.cas.gz.
File −→ Read −→Case...

2. Enable the plotting of volume-averaged temperature in the domain during the calcu-
lation by defining a volume monitor.
Solve −→ Monitors −→Volume...


c Fluent Inc. June 20, 2005 13
2D Adiabatic Compression (Layering)

(a) Increase the number of Volume Monitors to 1.


(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 will open automatically.

i. In the Report Type drop-down list, select Volume-Average.


ii. In the X-Axis drop-down list, select Flow Time.
iii. In the Field Variable drop-down lists, select Temperature... and Static Tem-
perature.

14
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

iv. In the Cell Zones list, select fluid.


v. In the File Name field, enter vol-monitor-1.out.
vi. Click OK in the Define Volume Monitor panel, and then in the Volume Mon-
itors panel.

3. Enable the plotting of residuals during the calculation.


Solve −→ Monitors −→Residuals...

(a) Select Plot under Options.


(b) Under Plotting, set the Iterations to 100.
To avoid a cluttered residual plot in transient simulations, it is useful to display
only the most recent iterations.
(c) Click OK to close the Residual Monitors panel.


c Fluent Inc. June 20, 2005 15
2D Adiabatic Compression (Layering)

4. Initialize the solution.


Solve −→ Initialize −→Initialize...

(a) Keep the default values for all variables, including an initial Temperature value
of 300 K.
(b) Click Apply.
The Apply button does not initialize the flow field data. Apply simply allows you
to save your initialization parameters for later use. You need to use the Init
button to initialize the solution.
(c) Click Init to initialize the solution.
(d) Click Close.

16
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

5. Set up an animation for temperature.


(a) Display filled contours of temperature.
Display −→Contours ...

i. Select Temperature... and Static Temperature in the Contours of drop-down


lists.
ii. Deselect everything under Options except Filled and Node Values.
iii. Enter 300 for Min and 572 for Max.
iv. Click Display.
v. Close the Contours panel.


c Fluent Inc. June 20, 2005 17
2D Adiabatic Compression (Layering)

5.72e+02
5.58e+02
5.45e+02
5.31e+02
5.18e+02
5.04e+02
4.90e+02
4.77e+02
4.63e+02
4.50e+02
4.36e+02
4.22e+02
4.09e+02
3.95e+02
3.82e+02
3.68e+02
3.54e+02
3.41e+02
3.27e+02
3.14e+02
3.00e+02

Contours of Static Pressure (pascal) (Time=0.0000e+00) Jun 07, 2005


FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 4: Contours of Static Temperature

(b) Save the current view.


Display −→Views...

i. Click Save to save the current view as view-0.


ii. Close the Views panel.

18
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

(c) Open the command monitor window.


Solve −→Execute Commands...

i. Set the Defined Commands to 1.


ii. Select the checkbox under the On column.
iii. Select 10 under the Every column.
iv. In the When drop-down list, select Time Step.
v. For the text-entry field under Command, enter the following commands se-
quentially (on the single line):
/di/sw 2
/di/view/restore-view view-0
/di/cont temp 300 570
/di/hc temperature%t.tiff
Note: It is possible to specify multiple text commands in a single entry. Be
sure to maintain at least a single space between commands. The above
command will first activate ‘window 2’, restore the saved view ‘view-0’,
display contours of static temperature and then make a hardcopy of the
resulting image. The ‘%t’ appended to the file name instructs FLUENT
to append the timestep index to the filename.
vi. Click OK.


c Fluent Inc. June 20, 2005 19
2D Adiabatic Compression (Layering)

(d) Set hardcopy settings.


File −→Hardcopy...

i. Select TIFF under Format.


ii. Select Color under Coloring.
iii. Click Apply and close the panel.

6. Request saving of case and data files every 90 time steps.


File −→ Write −→Autosave...

(a) Set the Autosave Case File Frequency and Autosave Data File Frequency to 90.
The mesh changes during the simulation, so you must save both the case and
data files.

20
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

(b) In the Filename field, enter box2d layer.gz and click OK.
When FLUENT saves a file, it will append the time step value to the file name
prefix (box2d layer). The standard extensions (.cas and .dat) will also be
appended. When the .gz extension is specified, FLUENT will save the file in
compressed format.

7. Set the solution parameters.


Solve −→ Controls −→Solution...

(a) For the Under-Relaxation Factors, set the Pressure to 0.6 and the Momentum to
0.9.
(b) Under Discretization, select PRESTO! for Pressure.
(c) Select PISO for Pressure-Velocity Coupling and set the Skewness Correction to 0.
(d) Click OK.

8. Save the case and data files, box2d layer-init.gz.


c Fluent Inc. June 20, 2005 21
2D Adiabatic Compression (Layering)

9. Start the calculation.


Solve −→Iterate...

(a) Set the Number of Time Steps to 720.


(b) Set the Max Iterations per Time Step to 10.
(c) Click Iterate.
The plot of volume-averaged temperature is shown in Figure 5. Note that since the
values may be different for different computers, the plot that appears on your screen
may not be exactly the same as the one shown here.

22
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

Monitors
vol-mon-1
600.0000

550.0000

500.0000

Volume 450.0000
Weighted
Average
(k) 400.0000

350.0000

300.0000
0.0000 1.0000 2.0000 3.0000 4.0000 5.0000 6.0000

Flow Time

Convergence history of Static Temperature on fluid (Time=6.0000e+00) Jun 07, 2005


Crank Angle=540.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 5: Convergence History of Static Temperature

Step 8: Postprocessing

1. Inspect the solution at the final time step (BDC).


(a) Display filled contours of static temperature (Figure 6).
Display −→Contours...
i. In the Contours Of drop-down lists, select Temperature... and Static Temper-
ature.
ii. Deselect everything under Options except Filled and Node Values.
iii. Enter 301 for Min and 572 for Max.
iv. Click Display.
(b) Display filled contours of density (Figure 7).
i. In the Contours Of drop-down lists, select Density... and Density.
ii. Deselect everything under Options except Filled and Node Values.
iii. Enter 1 for Min and 6 for Max.
iv. Click Display.
The temperature and density at the end of one full cycle closely replicate those
at the beginning of the simulation.


c Fluent Inc. June 20, 2005 23
2D Adiabatic Compression (Layering)

5.72e+02
5.58e+02
5.45e+02
5.31e+02
5.18e+02
5.04e+02
4.91e+02
4.77e+02
4.64e+02
4.50e+02
4.36e+02
4.23e+02
4.09e+02
3.96e+02
3.82e+02
3.69e+02
3.55e+02
3.42e+02
3.28e+02
3.15e+02
3.01e+02

Contours of Static Temperature (k) (Time=6.0000e+00) Jun 07, 2005


Crank Angle=540.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 6: Contours of Static Temperature After Returning to the BDC Position

6.00e+00
5.75e+00
5.50e+00
5.25e+00
5.00e+00
4.75e+00
4.50e+00
4.25e+00
4.00e+00
3.75e+00
3.50e+00
3.25e+00
3.00e+00
2.75e+00
2.50e+00
2.25e+00
2.00e+00
1.75e+00
1.50e+00
1.25e+00
1.00e+00

Contours of Density (kg/m3) (Time=6.0000e+00) Jun 07, 2005


Crank Angle=540.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 7: Contours of Density After Returning to the BDC Position

24
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

2. Inspect the solution at top dead center.


(a) Read in the corresponding case and data files (box2d layer0360.cas.gz and
box2d layer0360.dat.gz).
File −→ Read −→Case & Data...
(b) Display filled contours of static temperature (Figure 8).
Display −→Contours...
i. Deselect everything under Options except Filled and Node Values.
ii. Enter 301 for Min and 572 for Max.
iii. Click Display.

5.72e+02
5.58e+02
5.45e+02
5.31e+02
5.18e+02
5.04e+02
4.91e+02
4.77e+02
4.64e+02
4.50e+02
4.36e+02
4.23e+02
4.09e+02
3.96e+02
3.82e+02
3.69e+02
3.55e+02
3.42e+02
3.28e+02
3.15e+02
3.01e+02

Contours of Static Temperature (k) (Time=3.0000e+00) Jun 08, 2005


Crank Angle=360.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 8: Contours of Static Temperature at Top Dead Center

The temperature very closely obeys the analytical result for a reversible, adiabatic
compression:
 γ−1
T2 ρ2
=
T1 ρ1
With γ = 1.4 and a compression ratio of 5:1, the theoretical temperature at top
dead center is 571 K.


c Fluent Inc. June 20, 2005 25
2D Adiabatic Compression (Layering)

(c) Display filled contours of density (Figure 9).


Display −→Contours...
i. Deselect everything under Options except Filled and Node Values.
ii. Enter 1 for Min and 6 for Max.
iii. Click Display.

6.00e+00
5.75e+00
5.50e+00
5.25e+00
5.00e+00
4.75e+00
4.50e+00
4.25e+00
4.00e+00
3.75e+00
3.50e+00
3.25e+00
3.00e+00
2.75e+00
2.50e+00
2.25e+00
2.00e+00
1.75e+00
1.50e+00
1.25e+00
1.00e+00

Contours of Density (kg/m3) (Time=3.0000e+00) Jun 08, 2005


Crank Angle=360.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 9: Contours of Density at Top Dead Center

26
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

Setup and Solution (2): Top Layering


In bottom layering, cells are added and deleted near the moving wall zone, whereas, in top
layering, the same occurs at the top wall zone. The advantage is that in top layering, the
y + values will remain constant for a cell near the moving wall. Moreover, the motion in
certain geometries would require the use of top layering.

Note: In this step, you will modify the case (box2d layer-init.cas.gz) created for the
bottom layering setup. After you read the case file, delete the previously defined dy-
namic zones. Start this part of solution in a separate folder so that the case/data files
and animation files saved during the bottom layering setup do not get overwritten.

Step 1: Mesh Motion Setup

1. Read the case file, box2d layer-init.cas.gz.

2. Delete the previously defined dynamic zones and define new dynamic zones.
Define −→ Dynamic Mesh −→Zones...

(a) Under Dynamic Zones, select moving wall and click Delete.
(b) In the Zone Names drop-down list, select fluid.
(c) Under Type, keep the default setting of Rigid Body.
(d) In the Motion UDF/Profile drop-down list, select **piston-full**.


c Fluent Inc. June 20, 2005 27
2D Adiabatic Compression (Layering)

(e) Keep the default setting of (0, 1) for Valve/Piston Axis.


(f) Click Create.

(g) In the Zone Names drop-down list, select top wall.


(h) Under Type, select Stationary.
(i) Click on the Meshing Options tab.
(j) Set the Cell Height to 0.8 m.
(k) Click Create.

28
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

(l) In the Zone Names drop-down list, select moving wall.


(m) Under Type, select Rigid Body.
(n) Click on the Motion Attributes tab.
(o) In the Motion UDF/Profile drop-down list, select **piston-full**.
(p) Set the Valve/Piston Axis to (0, 1).


c Fluent Inc. June 20, 2005 29
2D Adiabatic Compression (Layering)

(q) Click on the Meshing Options tab.


(r) Set the Cell Height to 0.8 m.
(s) Click Create.
(t) Close the Dynamic Zones panel.
Specifying motion for the fluid zone allows all the nodes to move. Here, the
motion for the moving wall zone is also specified. The nodes on this face are
visited twice but priority is given to the face zone motion specification. FLUENT
follows the following order:
i. Stationary
ii. Face zone
iii. Cell zone
The top wall is assigned a stationary zone and so the nodes are frozen.

30
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

Not specifying the motion for the moving wall zone in the Dynamic Zones panel will
still allow the mesh to deform. However, this will not ensure the proper boundary
condition for the moving wall zone. In addition to the motion for the fluid zone, the
moving wall also needs to be assigned the mesh motion in the Dynamic Zones panel.
The figures A and B below show velocity contours by specifying motion only for fluid
zone, and by specifying motion for both the fluid as well as moving wall zones, respec-
tively. Here, figure A shows the wrong velocity distribution near the wall, whereas,
figure B shows the correct velocity distribution.

3. Save the case file, box2d layer.cas.gz.

4. Initialize the solution.


Solve −→ Initialize −→Initialize...
(a) Click Init.
(b) Close the Solution Initialization panel.

5. Start the calculation.


Solve −→Iterate...
(a) Set the Number of Time Steps to 720.
(b) Set the Max Iterations per Time Step to 10.
(c) Click Iterate.
The plot of volume-averaged temperature is shown in Figure 10.


c Fluent Inc. June 20, 2005 31
2D Adiabatic Compression (Layering)

Monitors
vol-mon-1
600.0000

550.0000

500.0000

Volume 450.0000
Weighted
Average
(k) 400.0000

350.0000

300.0000
0.0000 1.0000 2.0000 3.0000 4.0000 5.0000 6.0000

Flow Time

Convergence history of Static Temperature on fluid (Time=6.0000e+00) Jun 08, 2005


Crank Angle=540.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 10: Convergence History of Static Temperature

Step 2: Postprocessing

1. Inspect the solution at the final time step (BDC).


(a) Display filled contours of static temperature (Figure 11).
Display −→Contours...
i. In the Contours Of drop-down lists, select Temperature... and Static Temper-
ature.
ii. Enter 301 for Min and 572 for Max.
iii. Click Display.
(b) Display filled contours of density (Figure 12).
i. In the Contours Of drop-down lists, select Density... and Density.
ii. Deselect everything under Options except Filled and Node Values.
iii. Enter 1 for Min and 6 for Max.
iv. Click Display.

32
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

5.72e+02
5.58e+02
5.45e+02
5.31e+02
5.18e+02
5.04e+02
4.91e+02
4.77e+02
4.64e+02
4.50e+02
4.36e+02
4.23e+02
4.09e+02
3.96e+02
3.82e+02
3.69e+02
3.55e+02
3.42e+02
3.28e+02
3.15e+02
3.01e+02

Contours of Static Temperature (k) (Time=6.0000e+00) Jun 08, 2005


Crank Angle=540.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 11: Contours of Static Temperature After Returning to the BDC position

0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00
0.00e+00

Contours of Density (kg/m3) (Time=6.0000e+00) Jun 08, 2005


Crank Angle=540.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 12: Contours of Density After Returning to the BDC Position


c Fluent Inc. June 20, 2005 33
2D Adiabatic Compression (Layering)

2. Inspect the solution at top dead center.


(a) Read in the corresponding case and data files (box2d layer0360.cas and
box2d layer0360.dat).
File −→ Read −→Case & Data...
(b) Display filled contours of static temperature (Figure 13).
Display −→Contours...
i. Deselect everything under Options except Filled and Node Values.
ii. Enter 301 for Min and 572 for Max.
iii. Click Display.

5.72e+02
5.58e+02
5.45e+02
5.31e+02
5.18e+02
5.04e+02
4.91e+02
4.77e+02
4.64e+02
4.50e+02
4.36e+02
4.23e+02
4.09e+02
3.96e+02
3.82e+02
3.69e+02
3.55e+02
3.42e+02
3.28e+02
3.15e+02
3.01e+02

Contours of Static Temperature (k) (Time=3.0000e+00) Jun 08, 2005


Crank Angle=360.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 13: Contours of Static Temperature at Top Dead Center

The temperature very closely obeys the analytical result for a reversable, adiabatic
compression:
 γ−1
T2 ρ2
=
T1 ρ1
With γ = 1.4 and a compression ratio of 5:1, the theoretical temperature at top
dead center is 571 K.
(c) Display filled contours of density (Figure 14).
Display −→Contours...
i. Deselect everything under Options except Filled and Node Values.
ii. Enter 1 for Min and 6 for Max.
iii. Click Display.

34
c Fluent Inc. June 20, 2005
2D Adiabatic Compression (Layering)

6.00e+00
5.75e+00
5.50e+00
5.25e+00
5.00e+00
4.75e+00
4.50e+00
4.25e+00
4.00e+00
3.75e+00
3.50e+00
3.25e+00
3.00e+00
2.75e+00
2.50e+00
2.25e+00
2.00e+00
1.75e+00
1.50e+00
1.25e+00
1.00e+00

Contours of Density (kg/m3) (Time=3.0000e+00) Jun 08, 2005


Crank Angle=360.00(deg) FLUENT 6.2 (2d, segregated, dynamesh, lam, unsteady)

Figure 14: Contours of Density at Top Dead Center

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 simulations that involve valve movement as well as 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 (available
from your technical support engineer) for details.


c Fluent Inc. June 20, 2005 35

También podría gustarte