Professional Documents
Culture Documents
of CFD Simulations
F. Stern1, R. Wilson1, H. Coleman2, and E. Paterson1
1. Iowa Institute of Hydraulic Research, University of Iowa; 2. Propulsion Research Center, University of Alabama in Huntsville
Tutorial
2001 Fluids Engineering Division Summer Meeting
May 29 - June 1, 2001, New Orleans, Louisiana
Sheraton New Orleans Hotel
Outline
Background
Approach
Overall Verification and Validation Methodology
Verification Procedures
Validation Procedures
Example for RANS CFD Code
Conclusions
Background
Background
Approach
Approach
Approach
S = S T = SM + SN
where *SN is an estimate of sign and magnitude of SN and SN is the error in that
estimate
S = S C T = SM + SN
C
2
U S2C = U SM
+ U S2C N
10
SN = I + G + T + P = I + j
j =1
2
SN
= U + U + U + U = U + U 2j
2
I
2
G
2
T
Similarly,
2
P
2
I
j =1
SN = + j
j =1
SC = S ( + j ) = T + SM + SN
2
SC N
j =1
= U + U 2jC
2
IC
j =1
11
E = D S = D S = D ( SMA + SPD + SN )
with SM decomposed into errors from modeling
assumptions SMA and use of previous data SPD
2
2
2
U STE
= U SPD
+ U SN
r
D
Ux
UD
S + USTE
E
EC = D SC = D ( SMA + SPD + SN )
15
Verification Procedures
Convergence Studies
S = SC + ( + j )
j =1
Not required
j =1, j k
jm
16
Verification Procedures
Convergence Studies
Solution changes for medium-fine and coarsemedium solutions and their ratio Rk are defined
by
k = Sk Sk
32
k = Sk Sk
21
Rk = k21 k32
17
Verification Procedures
Convergence Studies
Uk =
1
( SU S L )
2
18
Verification Procedures
Monotonic Convergence: Generalized RE
Sk m = S C + (xk m )
i =1
pk( i )
(i )
k
j =1, j k
jm
19
Verification Procedures
Monotonic Convergence: Generalized RE
k1
REk1
k
pk
k
21
pk =
ln k32 / k21
ln ( rk )
20
Verification Procedures
Estimating Errors and Uncertainties using Generalized RE
with Correction Factors
Results for analytical benchmarks (1D wave and
2D Laplace equations) show that when solutions
21
Verification Procedures
Estimating Errors and Uncertainties using Generalized RE
with Correction Factors
k = Ck RE
= Ck (
1
k1
k
pk
k
21
1)
(1)
k
rkpk 1
pkest
rk
Ck( 2 ) =
(r
p k est
k
pk est
rk k est (rk
1)
( 23k / 12 k rk
p k est
pk est
(rk
)(rkpk 1)
q
Verification Procedures
Estimating Errors and Uncertainties using Generalized RE
with Correction Factors
U k = Ck RE
+
(
1
C
)
k
RE
k1
k1
k1
REk1
k21
k21
= Ck pk
= pth
r
1
k
rk 1
U kC = (1 Ck ) RE
k1
k1
23
Verification Procedures
Estimating Errors and Uncertainties using Generalized RE
with Factors of Safety
Roache (1998) proposes factor of safety approach
U k = FS RE
k1
U kC = ( FS 1) RE
k1
Verification Procedures
Fundamental and Practical Issues
Fundamental Issues
Convergence power series expansion
Assumption p(i)k, and g(i)k independent xk
Estimating pkest based on theoretical values or solutions for
simplified geometry and conditions with stretched grids
Ck vs. FS or other approaches
Practical Issues
For complex flows with relatively coarse girds, solutions far from
asymptotic range such that while some variables convergent
other variables may be oscillatory or even divergent
pk shows variability between different variables same grid study
and same variables different grid studies
More than 3 grids required
Selection parameter refinement ratio
Nature asymptotic range for practical applications unknown
Interpretation results important since limited experience for
guidance
25
Validation Procedures
requirement)
1.
|E| < UV < Ureqd
2.
|E| < Ureqd < UV
3.
Ureqd < |E| < UV
4.
UV < |E| < Ureqd
5.
UV < Ureqd < |E|
6.
Ureqd < UV < |E|
E SMA
26
CFDSHIP-IOWA
Series 60 cargo/container ship
ITTC benchmark data (Toda et al., 1992)
Conditions
Froude number Fr = 0.316
Reynolds number Re = 4.3x106
27
Grid Studies
Grid refinement ratio rG = 2
m=4 grids with systematic grid refinement in each
coordinate direction enables two separate grid
studies: grids 1-3 (GS1) and grids 2-4 (GS2)
Table 1. Grid dimensions and y+ values for grid refinement studies.
Grid
Total Number
Dimensions
of points
287x78x43
876,211
0.7
201x51x31
317,781
144x36x22
114,048
1.4
101x26x16
42,016
Grid
y+
28
29
30
10-4
0.008
(a)
U
V
W
P
Residual
10-5
0.006
SU=5.053x10
0.004
10-6
-3
0.00505
0.002
0
10-7
0.00506
CF
CP
CT
5000
10000
Iteration
15000
20000
12000
(b)
14000
16000
Iteration
18000
0.00504
12000
(c)
SL=5.046x10
14000
16000
Iteration
-3
18000
31
6.02
CP
1.88
CF
4.14
5.39
-10%
1.61
-14%
3.69
-11%
5.11
-5.2%
1.60
-0.6%
5.05
-1.2%
1.60
0.0%
3.51
-4.9%
3.45
-1.7%
5.42
CR = 2.00
3.42
ITTC
% SG .
Table 3. Verification of CT (x10-3) for Series 60.
Study
RG
pG
CG
1
(grids 1-3)
2
(grids 2-4)
0.21
4.4
3.7
0.44
2.3
1.3
% SG
32
CG
0.00
0.33
3.2
2.0
0.04
9.5
26
0.40
2.6
1.5
% S1
33
0.5%
5.6%
1.2%
5.5%
0.9%
1.1%
0.1%
1.1%
SC
4.99
4.83
% S1
34
35
Uncorrected solution
For GS1, E > UV E SMA = 7% D and UD>USN
For GS2, E < UV so CT validated at 7%D and USN >UD
Corrected Solution
For GS1 and GS2, Ec >> UV Ec = SMA = 8% D and U S N << U D
c
6.8
3.1
2.5
1.9
5.7
6.7
2.5
6.3
%D.
7.9
11
2.6
2.7
2.5
2.5
0.8
1.0
%D.
36
32
RG = G21
pG =
ln G32
/ G32
/ G21
ln(rG )
RG
pG
CG
UG
U GC
0.64
1.3
0.56
2.0%
0.9%
0.68
1.1
0.47
4.1%
2.2%
38
Uncorrected solution
For GS1, not validated at E=5.2%max but margin small
For GS2, nearly validated at 5.6%max
Corrected Solution
Not validated but margins relatively small and U S N << U D
c
Table 9. Profile-averaged validation results for uncorrected wave profile for Series 60.
Grid
E%
UV%
UD%
USN%
1
5.2
4.2
3.7
2.0
5.6
5.5
3.7
4.1
%max .
Table 10. Profile-averaged validation results for corrected wave profile for Series 60.
Grid
EC %
UVC %
U SC N %
UD %
1
2
5.6
6.6
3.8
4.3
3.7
3.7
0.9
2.2
%max .
39
0.2
E=D-S
0.2
+UV
+UV
-UV
0.01
0.1
/L
Grid 3 (144x36x22)
Grid 4 (101x26x16)
-0.1
Grid 1 (287x71x43)
Grid 2 (201x51x31)
-0.2
-0.1
(b)
0.25
0.25
0.5
x/L
0.75
0.5
x/L
0.75
EC=D-SC
0.2
(d)
0.25
0.5
x/L
-UV
0.1
0.1
-0.1
+UV
-UV
-0.2
0.75
EC=D-SC
0.2
+UV
EC
-0.2
(a)
EC
-0.01
-UV
0.1
-0.1
(c)
-0.2
0.25
0.5
x/L
0.75
(e)
0.25
0.5
x/L
0.75
40
41
Conclusions
42
Conclusions
43
Analytical Benchmarks
A
A
+c
=0
t
x
( x )2
IC : A( x,0) = A0 exp
BC : A(, t ) = 0
1D Wave equation
LT (T ) = LM ( M ) = LA ( A) =
1.5
t=0
t=1
1
S(x,t)
( x ct )2
A( x, t ) = A0 exp
c=1
0.5
0
-1
44
Analytical Benchmarks
2
U S2 = U SN
U S2C = U S2C N
Verification
E = A S < U SN
EC = A SC < U SC N
45
Analytical Benchmarks
Verification results 1st order solution 1D wave
equation
0.15
Error
A-S
*
RE
(1)
*
C SNRE
(2)
*
C SNRE
p
(a)
0.1
1.2
(b)
1.1
1
0.9
Order, p
0.2
0.8
0.7
0.05
(A-S)/RE
(1)
C SN
C(2)SN
0.6
0.5
0
10-2
10
-1
10-3 x=t/2
10-4
0.4
10-5
10
|A-SC|
(c)
10-2
U(1)SN=|CKRE|+|(1-CK)RE|
10
-1
U(2)SN=|CKRE|+|(1-CK)RE|
USCN=(FS-1)|RE|, FS=1.25
Error
Error
USN=FSRE, FS=1.25
10-3
10
-4
10
-5
10
-2
-3
10 x=t/2
10
-4
10-5
|A-S|
(d)
U(2)SCN=|(1-CK)RE|
-2
10-4
U(1)SCN=|(1-CK)RE|
10
10-3 x=t/2
10
-5
10
-2
10
-3
10
-2
-3
10 x=t/2
10
-4
10
-5
46