Grid Generation and Post-Processing For Computational Fluid Dynamics (CFD)
Grid Generation and Post-Processing For Computational Fluid Dynamics (CFD)
A =
1
2 2 2
i i i
x x x
= + A
2 1
i i
G
x r x A = A
1
i
x A
2
i
x
2
i
x
2 1
2 1
N N
x x =
20
Post-Processing
Uncertainty analysis: estimate order of accuracy, correction
factor, and uncertainties (for details, CFD Lecture 1, introduction
to CFD).
MPI functions required to combine data from different blocks if
parallel computation used
Calculation of derived variables (vorticity, shear stress)
Calculation of integral variables (forces, lift/drag coefficients)
Calculation of turbulent quantities: Reynolds stresses, energy
spectra
Visualization
1. XY plots (time/iterative history of residuals and forces, wave
elevation)
2. 2D contour plots (pressure, velocity, vorticity, eddy viscosity)
3. 2D velocity vectors
4. 3D Iso-surface plots (pressure, vorticity magnitude, Q criterion)
5. Streamlines, Pathlines, streaklines
6. Animations
Other techniques: Fast Fourier Transform (FFT), Phase averaging
21
Post-Processing (visualization, XY plots)
Lift and drag coefficients of
NACA12 with 60
o
angle of attack
(CFDSHIP-IOWA, DES)
Wave profile of surface-piercing
NACA24, Re=1.52e6, Fr=0.37
(CFDSHIP-IOWA, DES)
22
Post-Processing (visualization, Tecplot)
Different colors illustrate different blocks (6)
Re=10^5, DES, NACA12 with angle of attack 60 degrees
23
Post-Processing (NACA12, 2D contour plots, vorticity)
Define and compute new variable: DataAlterSpecify
equationsvorticity in x,y plane: v10computeOK.
24
Post-Processing (NACA12, 2D contour plot)
Extract 2D slice from 3D geometry: DataExtractSlice
from planez=0.5extract
25
Post-Processing (NACA12, 2D contour plots)
2D contour plots on z=0.5 plane (vorticity and eddy
viscosity)
Vorticity e
z
Eddy viscosity
26
Post-Processing (NACA12, 2D contour plots)
2D contour plots on z=0.5 plane (pressure and
streamwise velocity)
Pressure
Streamwise velocity
27
Post-Processing (2D velocity vectors)
2D velocity vectors on z=0.5 plane: turn off contour
and activate vector, specify the vector variables.
Zoom in
28
Post-Processing (3D Iso-surface plots, contd)
3D Iso-surface plots: pressure, p=constant
3D Iso-surface plots: vorticity magnitude
3D Iso-surface plots:
2
criterion
Second eigenvalue of
3D Iso-surface plots: Q criterion
( )
ij ij ij ij
S S Q O O =
2
1
( ) 2
, , i j j i ij
u u = O
( ) 2
, , i j j i ij
u u S + =
2 2 2
x y z
e e e O= + +
2
1
2
p
V
29
Post-Processing (3D Iso-surface plots)
3D Iso-surface plots: used to define the coherent vortical structures,
including pressure, voriticity magnitude, Q criterion,
2,
etc.
Iso-surface of vorticity magnitude
30
Post-Processing (streamlines)
Streamlines (2D):
Streamlines with contour of pressure
Streaklines and pathlines (not shown here)
31
Post-Processing (Animations)
Animations (3D): animations can be created by saving CFD
solutions with or without skipping certain number of time steps
and playing the saved frames in a continuous sequence.
Animations are important tools to study time-dependent
developments of vortical/turbulent structures and their interactions
Q=0.4
32
Other Post-Processing techniques
Fast Fourier Transform
1. A signal can be viewed from two different standpoints:
the time domain and the frequency domain
2. The time domain is the trace on an signal (forces,
velocity, pressure, etc.) where the vertical deflection is the
signals amplitude, and the horizontal deflection is the time
variable
3. The frequency domain is like the trace on a spectrum
analyzer, where the deflection is the frequency variable and
the vertical deflection is the signals amplitude at that
frequency.
4. We can go between the above two domains using (Fast)
Fourier Transform
Phase averaging (next two slides)
33
Other Post-Processing techniques (contd)
Phase averaging
Assumption: the signal should have a coherent dominant
frequency.
Steps:
1. a filter is first used to smooth the data and remove the high
frequency noise that can cause errors in determining the peaks.
2. once the number of peaks determined, zero phase value
is assigned at each maximum value.
3. Phase averaging is implemented using the triple decomposition.
( ) ( ) ( ) ( ) ( ) ( )
' '
z t z t z t z t z t z t = + + = +
( ) ( )
0
lim 1
T
z t z t dt
T T
=
}
( ) ( )
1
0
lim
N
n
z t z t n
N
t
=
= +