Professional Documents
Culture Documents
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Outline of lecture 5
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Outline of lecture 5
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Outline of lecture 5
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
l
f
ECN-CNRS
f+
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
Quantity Qf may be written from its values and its gradient in the
adjacent cells L and R, by using a linear interpolation. Two
reconstructions can be considered, indicated by the subscripts + and
:
QL ' Qf Lf Qf
QR ' Qf + fR Qf
(1)
A decomposition of the normal-to-the-face gradient can be introduced
to use the normalized vectors l and r , for segments [Lf] and [fR] :
Qf
n = + Qf r + e + Qf
Qf
n = Qf l + e Qf
ECN-CNRS
si : e + , n + r
(2)
si : e , n l
(3)
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
QL = Qf h Qf n Qf e
QR = Qf + h+ Qf n Qf e +
(4a)
with distances h :
and h+ ,
fR n
h , Lf n
ECN-CNRS
(4b)
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
h+
h
QL +
h
h
QR +
h+ h
h
Qf (
e + e )
(5a)
h , h+ + h = ( Lf + fR ) n = LR n
(5b)
First two terms of relation (5a) yield a first order reconstruction which is
used to evaluate the value of gradient at the face from values at
adjacents cells :
Qf =
h+
h
QL +
h
h
QR +
! +
h
h
QL +
QR
h H + h+ H
h
(6)
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
with :
, h
e = Lf n n Lf
H , h+ e + = fR n n fR
(7)
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
To rebuild at the face center the normal-to-the face gradient, one uses
a similar formula :
QR QL
Q
n |f =
+
h
! +
LR
h
h
h QL + h QR
LR n
(8)
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
Non-centered reconstructions
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
Hybrid scheme
GDS scheme
AVLSMART scheme
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
Hybrid scheme
Pef =
mf kLR k
2S Q
(9)
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
Hybrid scheme
Moreover, the relative orientation between the face and the velocity is
taken into account. The weighting factor d is computed with the help of
an exponential scheme, which ensures a smooth transition :
Qf = dL QL + dR QR + dL Lf Q |L +dR Rf Q |R
(10)
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
The hybrid scheme does not guarantee the bounded character of the
reconstruction. This property is important for multifluid flows for which
concentration should remain between 0 and 1, for instance. The
(Gamma Differencing Scheme) scheme is due to Jasak (1996).
This scheme is based on an analysis using the normalized variable
diagram introduced by Leonard (1988). One supposes that the values
of the generic quantity Q are available in three points, U, C et D
located along the convection direction.
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
One wants to rebuild the quantity at a face located between C and D
(F IG . 7). One defines the normalized variable by :
=
Q
Q QU
(11)
QD QU
QD
Flow direction
(CD)
QU
QC
Qf
(UD)
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
C 6 1
06Q
ECN-CNRS
(13)
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
C < 0, Q
f = Q
C
for Q
C 6 1, Q
f is bounded by Q
f > Q
C and by unity
for 0 6 Q
C > 1, Q
f = Q
C
for Q
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
To use this strategy within an unstructured multi-dimensional
framework, some modifications should be performed. The point U
being unknown, the quantity QU is evaluated by projecting the gradient
QU = QC CU Q |C
with CU , CD
(14)
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
2 Q |C CD
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
C = 0.5
Q
si
(16)
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
C = 0
Q
= 0 Schma UDS
C = m
Q
= 1 Schma CDS
The GDS scheme retains finally a linear variation for the transition
coefficient, which leads to the following reconstruction described in
figure 17 :
1
C
=
Q
(17)
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
Finally, the characteristics of this scheme are summarized in this table
k fD k
kCD k
C
Q
f
Q
Qf
Note
] , 0]
C
Q
QC
UDS
]0, m [
C2 +
21m Q
C
+ 1 + 21m Q
(1 (1 fx ))QC
transition
[m , 1[
[1, +[
1
2
C
+ 12 Q
C
Q
+(1 fx )QD
fx QC + (1 fx )QD
CDS
QC
UDS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
GDS scheme
~
Qf
UDS
CDS
1/2
1
UDS
~
QC
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
AVLSMART scheme
Implementation in ISIS
If the base scheme for the Gamma scheme is the 2nd order CDS,
the base scheme for AVLSMART is the 3rd order QUICK scheme
(Leonard 79).
~
Qf
UDS
CDS
1/2
1
UDS
~
QC
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Centered reconstruction
Non-centered reconstruction
AVLSMART scheme
Implementation in ISIS
C
Q
f
Q
Qf = CD QD + (1 CD )QC
Note
] , 0]
C
Q
CD = 0
UDS
]0, 1/4[
9
2 QC
CD =
C
Q
5
C
2 (1 fx ) 1Q
UDS->QUICK
CD =
C
32Q
1
C
4 (1 fx ) 1Q
QUICK
3
4 QC
[1/4, 3/4[
3
8
[3/4, 1[
3
4
C
+ 41 Q
[1, +[
CD = 32 (1 fx )
C
Q
CD = 0
QUICK->UDS
UDS
The interpolation factor fx , that accounts for non-uniform grids (1D), is defined as the
k fD k
kCD k
ratio: fx = .
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
C f = (Cf . n ) n = h n
fD = ( fD . n ) n = h+ n
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
QC 0 = QC + CC 0 . QC
QD 0 = QD + DC 0 . QD
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
QC 0 = Qf h QC . n ,
with
Qf = QC + Cf . QC
with
Qf + = QD fD . QD
QD 0 = Qf + + h+ QD . n ,
.
QC
.
QD
Cf h n
fD h+ n
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Correction (4/4)
C0 .
Step 4: last trick to build Q
C0 =
Instead of using the definition Q
QC 0 QU 0
QD 0 QU 0
replace QU 0 with QC 0 C 0 U 0 Q |C .
ECN-CNRS
QD 0 QC 0
2h Q |C . n
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Gauss method
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
For the sake of simplicity, this method is presented for 2D flows. One
q ( X ) = qC0 + X0 X ( q )C0
(18)
ECN-CNRS
(19)
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
i [1, n]
(20)
En (qx , qy ) =
nh
i o2
(21)
i =1
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Di = (||X0 Xi ||)1
ECN-CNRS
i [1, n]
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
En
En
= 0 and
= 0, leads to the gradient
qx
qy
1
qx
Syy
Sxy
Sxq
=
(22a)
qy
Sxx
Syq
S Sxy
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Sxx =
Sxy =
h
i2
i2
n h
(
x
x
)
D
S
=
(
y
y
)
D
i
0
i
yy
i
0
i
i =1
n h
i =1
(23a)
i =1
and :
n
Sxq =
Syq =
h
i
2
(
x
x
)(
q
q
)
D
i 0 i 0 i
i =1
n h
(23b)
i =1
ECN-CNRS
Face reconstruction
Treatment of misalignment for NVD schemes
Computation of gradients in a cell
Gauss method
A second more classical is to use Gauss theorem: For a volume V
bounded by a surface S , one gets :
Z
Z
qdv = q
n dS
(24)
S
1
q =
C
qf S f n f
VC
(25)
The values of the quantity on the faces are rebuilt by using 2nd order
reconstructions presented previously.
ECN-CNRS