Professional Documents
Culture Documents
Summary
November 4, 2014
Artur Lidtke
1 / 39
Concepts
Summary
Content
Concepts
Solution ideology
Understanding the process
Available methods
Practice - flat plate
Test case overview
Refining the mesh
Under-relaxation
High order schemes
Summary
Artur Lidtke
2 / 39
Concepts
Summary
Concepts
Artur Lidtke
3 / 39
Concepts
Summary
Solution ideology
The balance
Artur Lidtke
4 / 39
Concepts
Summary
Solution ideology
Then run a sensitivity study to see what works best for you
Artur Lidtke
5 / 39
Concepts
Summary
Solution ideology
Artur Lidtke
6 / 39
Concepts
Summary
residual = 9.69841 e
No Iterations 0
residual = 7.00898 e
No Iterations 3
Artur Lidtke
7 / 39
Concepts
Summary
Artur Lidtke
8 / 39
Concepts
Summary
Graphically speaking
Artur Lidtke
9 / 39
Concepts
Summary
Artur Lidtke
10 / 39
Concepts
Summary
Need to reduce the residuals at each time step and not just
in the long run as in SIMPLE
I
I
I
Artur Lidtke
11 / 39
Concepts
Summary
Graphically speaking
Artur Lidtke
12 / 39
Concepts
Summary
Courant number
I
Artur Lidtke
13 / 39
Concepts
Summary
Courant number
I
Co =
ut
x
Artur Lidtke
13 / 39
Concepts
Summary
Courant number
I
Generally, Co < 1.0 is a good rule of thumb, will need less for
LES with high order schemes
Artur Lidtke
13 / 39
Concepts
Summary
Courant number
I
Generally, Co < 1.0 is a good rule of thumb, will need less for
LES with high order schemes
The higher the Reynolds number (u), the smaller the cells
have to be to resolve the boundary layer
Artur Lidtke
13 / 39
Concepts
Summary
Courant number
I
Generally, Co < 1.0 is a good rule of thumb, will need less for
LES with high order schemes
The higher the Reynolds number (u), the smaller the cells
have to be to resolve the boundary layer
The smaller the cells and the higher the speed the smaller the
time step that allows a stable solution
Artur Lidtke
13 / 39
Concepts
Summary
Courant number
I
Generally, Co < 1.0 is a good rule of thumb, will need less for
LES with high order schemes
The higher the Reynolds number (u), the smaller the cells
have to be to resolve the boundary layer
The smaller the cells and the higher the speed the smaller the
time step that allows a stable solution
Artur Lidtke
13 / 39
Concepts
Summary
Available methods
Schemes - convective
I
If you are going to use upwind for LES then dont bother!
Typical choices for RANS/URANS
I
I
Artur Lidtke
14 / 39
Concepts
Summary
Available methods
Schemes - time
I
Euler - 1st order time scheme, stable but not accurate - not a
problems since URANS introduces even bigger inaccuracies!
backward/Crank-Nicholson - 2nd order time schemes - a must
for LES
The time scheme will influence the maximum time step greatly
Artur Lidtke
15 / 39
Concepts
Summary
Available methods
Other schemes
I
These include
I
I
I
I
Gradient
Laplacian
Surface normal gradient
Interpolation
Artur Lidtke
16 / 39
Concepts
Summary
Available methods
Other schemes
I
These include
I
I
I
I
Gradient
Laplacian
Surface normal gradient
Interpolation
Let us examine the flat plate test case with the default
settings I specified
Artur Lidtke
16 / 39
Concepts
Summary
Available methods
Other schemes
I
These include
I
I
I
I
Gradient
Laplacian
Surface normal gradient
Interpolation
Go to
cd $FOAM RUN/flatPlate/ZPG wallFunction coarse
Artur Lidtke
16 / 39
Concepts
Summary
Available methods
Other schemes
I
These include
I
I
I
I
Gradient
Laplacian
Surface normal gradient
Interpolation
Artur Lidtke
16 / 39
Concepts
Summary
Available methods
Solvers
I
Even less obvious choice than the schemes, here are some
commonly used ones:
I
I
I
More info on
http://www.openfoam.org/docs/user/fvSolution.php
Artur Lidtke
17 / 39
Concepts
Summary
Available methods
Solvers
I
Even less obvious choice than the schemes, here are some
commonly used ones:
I
I
I
More info on
http://www.openfoam.org/docs/user/fvSolution.php
Edit
gedit system/fvSolution
Artur Lidtke
17 / 39
Concepts
Summary
Artur Lidtke
18 / 39
Concepts
Summary
Test case
I
Artur Lidtke
19 / 39
Concepts
Summary
Test case
Artur Lidtke
19 / 39
Concepts
Summary
Test case
Artur Lidtke
19 / 39
Concepts
Summary
Baseline simulation
Let us examine the flat plate test case with the default
settings I specified
Artur Lidtke
20 / 39
Concepts
Summary
Baseline simulation
Let us examine the flat plate test case with the default
settings I specified
Go to
cd $FOAM RUN/flatPlate/ZPG wallFunction coarse
Artur Lidtke
20 / 39
Concepts
Summary
Baseline simulation
Let us examine the flat plate test case with the default
settings I specified
Artur Lidtke
20 / 39
Concepts
Summary
Baseline simulation
Let us examine the flat plate test case with the default
settings I specified
Artur Lidtke
20 / 39
Concepts
Summary
Baseline simulation
Let us examine the flat plate test case with the default
settings I specified
Artur Lidtke
20 / 39
Concepts
Summary
Baseline simulation
Let us examine the flat plate test case with the default
settings I specified
Artur Lidtke
20 / 39
Concepts
Summary
Baseline simulation
Let us examine the flat plate test case with the default
settings I specified
Artur Lidtke
20 / 39
Concepts
Summary
Baseline simulation
I
Let us examine the flat plate test case with the default
settings I specified
Artur Lidtke
cd ..
python plotResiduals.py
python plotForces.py
20 / 39
Concepts
Summary
Artur Lidtke
21 / 39
Concepts
Summary
Artur Lidtke
22 / 39
Concepts
Summary
Artur Lidtke
23 / 39
Concepts
Summary
Artur Lidtke
24 / 39
Concepts
Summary
Artur Lidtke
24 / 39
Concepts
Summary
Artur Lidtke
24 / 39
Concepts
Summary
Note
mapFields -sourceTime 2000 -consistent
../ZPG wallFunction coarse
Artur Lidtke
24 / 39
Concepts
Summary
Artur Lidtke
24 / 39
Concepts
Summary
Original - residuals
Artur Lidtke
25 / 39
Concepts
Summary
Artur Lidtke
25 / 39
Concepts
Summary
Artur Lidtke
26 / 39
Concepts
Summary
Artur Lidtke
26 / 39
Concepts
Summary
Artur Lidtke
27 / 39
Concepts
Summary
Under-relaxation
Under-relaxation
Artur Lidtke
28 / 39
Concepts
Summary
Under-relaxation
Under-relaxation
Artur Lidtke
28 / 39
Concepts
Summary
Under-relaxation
Under-relaxation
Artur Lidtke
28 / 39
Concepts
Summary
Under-relaxation
Under-relaxation
Artur Lidtke
28 / 39
Concepts
Summary
Under-relaxation
Under-relaxation
I
Amend
From this:
To This:
relaxationFactors
{
fields
{
p
0.3 ;
}
...
}
relaxationFactors
{
fields
{
p
0.55 ;
}
...
}
Artur Lidtke
28 / 39
Concepts
Summary
Under-relaxation
Under-relaxation
Artur Lidtke
28 / 39
Concepts
Summary
Under-relaxation
Artur Lidtke
29 / 39
Concepts
Summary
Under-relaxation
Artur Lidtke
29 / 39
Concepts
Summary
Under-relaxation
Artur Lidtke
30 / 39
Concepts
Summary
Under-relaxation
Artur Lidtke
30 / 39
Concepts
Summary
Under-relaxation
This means that we are wasting less time looping over already
converged Uy equation when p is still changing
Artur Lidtke
31 / 39
Concepts
Summary
Artur Lidtke
32 / 39
Concepts
Summary
Artur Lidtke
32 / 39
Concepts
Summary
Artur Lidtke
32 / 39
Concepts
Summary
Amend
I
From this:
To this:
Artur Lidtke
32 / 39
Concepts
Summary
Artur Lidtke
32 / 39
Concepts
Summary
Artur Lidtke
33 / 39
Concepts
Summary
Artur Lidtke
33 / 39
Concepts
Summary
Artur Lidtke
34 / 39
Concepts
Summary
Artur Lidtke
34 / 39
Concepts
Summary
After the maximum no. iterations the solution is still far from
convergence, would need to run for much longer - no
guarantee that it will work at all!
Artur Lidtke
35 / 39
Concepts
Summary
Summary
Artur Lidtke
36 / 39
Concepts
Summary
Conclusions
Artur Lidtke
37 / 39
Concepts
Summary
Further reading
I
Artur Lidtke
38 / 39
Concepts
Summary
The End
Artur Lidtke
39 / 39