Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Seminar on
April 2006
Introduction 1
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
INTERFACE TRACKING IN 3D TWO-PHASE FLOWS Lectures 7-10 ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS Lectures 11-14
DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME Lectures 15-18
Navier-Stokes equations
Fluid k, that occupies the observed domain, is described with equations: continuity equation
r k + ( k vk ) = 0 t
k
r vk
density velocity
momentum equation
r r r k vk + (vk vk ) = k F ( pk I + k ) t
r F
I unit tensor
pk
k viscosity
Basic equations of two-phase flow
r qk
heat flux
Constitutive equations
Equation of state:
p k = p k ( k , u k )
or
p k = p k ( k , Tk )
r r T 2 r k = k vk + (vk ) k k vk I 3
Heat flux - Fourier's law of heat conduction:
r qk = k k Tk
Basic equations of two-phase flow 8
[[w]] = wk =1 wk =2
interface velocity unit vector normal to the interface, direction: from fluid 1 to fluid 2
Basic equations of two-phase flow 9
r r r r r r [[ k uk (vk vi ) n + ( pk I k ) n ]] = n
local curvature of the interface:
= + 2 R1 R2
1 1 1
= i n
1 2
surface tension
Interfacial energy balance (simplified: neglected kinetic energy, neglected work of the surface tension, assumed =const, see Ishii, Hibiki for details):
r r r r r [[ k ek (vk vi ) n + qk n ]] = qi
qi surface energy source term, usually zero (nonzero if chemical reaction runs at the interface)
Basic equations of two-phase flow 10
r nwall r twall
r n
11
12
13
r + v = 0 t
14
15
16
1 t
r F ( r , t ) dt
Spatial:
1 V
r F ( r , t ) dV
Ensemble (statistical):
1 N
n =1
r Fn ( r , t )
17
r 1 F ( r , t ) dS S
Other, more "exotic" types of averaging exist (Lagrangian, Boltzmann statistical averaging). See Ishii, Hibiki for discussion. "Phenomenological averging" - not averaging at all, averaged equations built on phenomenological approach.
18
19
k k k
is a local time fraction of the phase k after temporal averaging, is a local volume fraction of the phase k after spatial averaging, is a probability for the presence of the phase k after ensemble averaging, etc...
When the averaged equations are solved, detailed definition of is not important anymore. In this seminar is mainly called k-th k phase volume fraction. k DETAILS OF THE AVERAGING PROCEDURE SKIPPED (see Ishii, Hibiki for details).
Basic equations of two-phase flow 20
A (1 - ) f t
A g t +
A (1 - ) f v f x
x = A g
= A g
A g v g
21
(1 - ) f
vg
Energy balances:
A(1 ) f u f t A g u g t +
A(1 - ) f u f v f x x +p
A g u g v g
A A v g * +p = A Qig + g hg + v g Fg ,wall t x
)
22
d k = k d p + k d uk . p uk p u
k
Correlations for inter-phase momentum transfer. Correlations for interphase heat and mass transfer. Wall friction correlations. Correlations for wall-to-fluid heat transfer ... others ...
23
r (11) +(11v) = 0 t
r (22 ) + (22v ) = 0 t
))
Surface tension:
r r r F12 = 1212n12 ( f s (r , t ))
24
25
Catalonia,
32.000 km2 7.000.000 25.500$ (2004)
Slovenia
Area: 20.000 km2 Population: 2.000.000 GDP per capita: 21.000$ (2005)
50 km
Introduction 2
SLOVENIA
Introduction
Introduction
Introduction
Modelling of single and two-phase flows (home-made codes, CFX, Fluent, NEPTUNE CFD packages):
LES and DNS simulations of single phase turbulent heat transfer Characteristic upwind schemes for fast 1D transients in two-phase flow Numerical schemes for 2D, 3D two-phase flows: two(three)-fluid models and interface tracking models
Introduction 7
Introduction
Introduction
10
Two-Fluid Models
1D 6-equation equal pressure two-fluid model for inhomogeneous nonequilibrium two-phase flow heart of the codes used for simulations in todays nuclear thermal-hydraulics.
Introduction
11
A (1 - ) f t A g t
(1 - ) f
A (1 - ) f v f x x = A g
= A g
A g v g
Momentum balances
vf v2 1 p f + (1 - ) f + (1 - ) CVM = Ci | vr | vr g (vi v f ) + F f , gravity + F f ,wall t 2 x x
vg
Introduction
12
A(1 ) f u f t A g u g t
A(1 - ) f u f v f x x +p
A g u g v g
A A v g * +p = A Qig + g hg + v g Fg ,wall t x
d k = k d p + k d uk . p uk p u
k
Numerous closure relations... Additional models relevant for nuclear thermal-hydraulics (neutronics...)
Introduction 13
1D simulations of two-phase flow fast transients Simulation of water hammer in piping system
Past 4 years: development of computer code for simulations of water hammer transients in 1D piping networks. (WAHALoads project of 5th EU research program.) Code development performed in cooperation with UCL and CEA. One of the WAHALoads experiments (UMSICHT, Oberhausen):
TANK
VALVE
Introduction
14
1D simulations of two-phase flow fast transients Simulation of water hammer in piping system
Past 4 years: development of computer code for simulations of water hammer transients in 1D piping networks. (WAHALoads project of 5th EU research program.) Code development performed in cooperation with UCL and CEA. One of the WAHALoads experiments (UMSICHT, Oberhausen):
P18
TANK
P04
P15
Introduction 15
Introduction
16
Introduction
17
Tube-arrest experiment: Tube half-filled with purified water is accelerated upward and stopped suddenly. Water hammer-like transient follows.
spring
18
+ vm = ( p g pl ) t x
7-eq. vs. 6-eq. : several advantages, several drawbacks 7-equation model allows simulations of liquid phase at negative pressure, while the pressure of the vapor phase remains positive.
Introduction
19
Introduction
20
Introduction
21
Fluid dispersion and stratification during the Rayleigh-Taylor instability (erne, Petelin, Tiselj, 2001, J. Comput.Phys 171, 776)
Introduction 22
Kelvin-Helmholtz instability - Inviscid linear analysis: step velocity and step density profiles assumed
z=H U2 z=0 U1 z=-H
Immiscible fluids
2
fluid 2
1 fluid 1
Results: Critical relative velocity Critical wave number Critical wave length
U 2 > 2
2
1 + 2 g 12
= 1 2
k* = g /
* = 2 / k*
Introduction 23
Initial conditions
h2 H h1
2 1
1 = 1000 kg/m3
u2 x z=0 z
u1
2 = 0,0015 Pa s
S.A. Thorpe, 1969. Experiments on the instability of stratified shear flows: immiscible fluids. Journal of Fluid Mechanics, 39. 25-48
Introduction 24
Temporal development of the interface predicted by CFX. K-H instability in experiment is observed in the middle section of the tube after ~1.8 s. Viscosity not neglected, surface tension neglected in particular simulation.
Introduction 25
Free surface
FREE SURFACE
vnormalfreesurface= 0 ,
FLOW
d + ( y = 1) = 0 dy
-h L2=2h
L1
and
ISOFLUX
+ ( y = 1) = 0 or
+ ( y = 1) = 0
Introduction
Instantaneous dimensionless temperature field on the heated wall with isoflux BC (i.e. wall of negligible thermal capacity and negligible thickness).
Introduction
29
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
by
TWO-FLUID MODELS 3) 1D two-fluid models - conservation equations 4) 1D two-fluid models - flow regime maps and closure equations 5) Characteristic upwind schemes for two-fluid models 6) Pressure-based solvers for two-fluid models INTERFACE TRACKING IN 3D TWO-PHASE FLOWS Lectures 7-10 ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS Lectures 11-14
DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME Lectures 15-18
1D 2-fluid models - consrv eqs 2
r A + B = P t x r r r +C = S t x
A1
"Standard" two-fluid models do not contain terms with second order derivatives.
A B r P C
vector of n independent variables n*n matrix of terms with time derivatives n*n matrix of terms with spatial derivatives source term vector - closure relations without derivatives n*n matrix (preferably with n real eigenvalues and n linearly independent eigenvectors)
1D 2-fluid models - consrv eqs 5
r r r +C = S t x
do not contain terms with second order derivatives. Viscous stresses and heat conduction are described with constitutive equations that do not contain derivatives. Their inclusion would not improve the accuracy of these models. (Diffusive terms can be found in two-fluid models of CFD codes Their accuracy is questionable, but they certainly have a positive influence on the stability of the numerical schemes.)
3-equation two-fluid models (example: HEM model) 4-equation two-fluid models (example: drift flux model) 5-equation models (example: older version of RELAP5 code) 6-equation models (widely used in nuclear thermal-hydraulic codes: RELAP5, TRAC, CATHARE) 7-equation models (two-pressure models, additional equation for interfacial area concentration) 8+ - equation models (multi-field models, example: different types of bubbles modelled with separate balance equations)
1D 2-fluid models - consrv eqs 7
r r r +C = S t x
= ( m , m v m , m um ) r = ( m , v m , pm )
= ( , v g , v f )
1D 2-fluid models - consrv eqs
Homogeneous-equilibrium model
The simplest averaged model of two-phase flow (works in 1D, 2D, 3D). Very strong interaction between both phases assures equal phasic velocities and equal phasic temperatures. Such approximation is seldom acceptable.
m m vm + =0 t x
m
vm v p + m vm m + = F f , gravity + F f ,wall t x x
Momentum balance
Energy balance
m um m um vm vm + +p = vm Fm,wall + qwall t x x
1D 2-fluid models - consrv eqs 9
Homogeneous-equilibrium model
Equation of state (probably the most complicated part of the HEM model). p m = p m ( m saturation , u m saturation ) Sonic velocity exhibits strong discontinuity between the single-phase and two-phase flow. Complicated calculation from equations of state:
m = m ( m saturation , u m saturation
Closure relations needed for wall friction and wall heat flux. No special model needed for single-to-two-phase flow transition.
1D 2-fluid models - consrv eqs 10
= ( m , g , m v m , m um )
(m - mixture, g - gas)
Drift flux model or 4-equation two fluid model: one phase in saturation conditions (usually vapor), other phase not necessarily in saturation. Mixture velocity obtained from the balance equations, relative velocity also available, but not from differential equation but from the empirical correlations. Very popular model in the early days of nuclear thermal-hydraulics. (see Ishii, Hibiki for details). (Other types of 4-equation two-fluid models can be constructed. )
1D 2-fluid models - consrv eqs 11
Drift-flux model
Drift flux model takes into account the relative velocity of two phases:
vr = v g v f
The relative velocity depends on the type of the two-phase flow (flow regime) and must be supplied with appropriate correlations). 40-years old model - still useful in engineering applications (Zuber, Findlay, 1965, J. Heat Transfer 87) Mixture mass balance: Gas-phase mass balance
g t + g v g x (1 ) f g vr = g x f
12
m m vm + =0 t x
Drift-flux model
Mixture momentum balance
2 2 m vm m vm (1 ) f g v r + pm = Fg , gravity + Fg ,wall + + f t x x x
m um m um vm v + + p m = vm Fm,wall + qwall t x x
Closure relations: correlation for relative velocity vr correlation for inter-phase mass transfer g equation of state wall friction, wall heat flux Fg ,wall qwall conductive heat flux, viscous stress tensor in 2D, 3D versions (not written in balance equations)
1D 2-fluid models - consrv eqs 13
= ( g , f , m vm , f u f , g u g )
Thermal non-equilibrium between both phases possible, mechanical equilibrium - homogeneous flow (not very realistic and not used in practise) b)
= ( g , f , g v g , f v f , m um )
One phase in saturation conditions, the other one in non-equilibrium, mechanical non-equilibrium possible. This type of two-fluid model was built into the computer code RELAP5/MOD1. Version of the computer code for nuclear thermal-hydraulics analyses from ~1985.
14
= ( g , f , g vg , f v f , g ug , f u f )
Both phases can exhibit departure from saturation conditions. Mechanical non-equilibrium possible. Both pressures equal. This type of two-fluid model is built into the nuclear thermal-hydraulics computer codes that are still in use today and RELAP5, TRAC, TRACE (RELAP5 and TRAC merged 2-3 years ago) - all codes made in USA, CATHARE code - France. References: - manuals of the RELAP5 computer code (available online on internet) - D.Bestion, The physical closure laws in the CATHARE code, Nuclear Engineering and Design 124 (3), 1990.
1D 2-fluid models - consrv eqs 15
Requires even more closure relations than the drift flux model. Closure relations are mainly based on empirical approach. Thus, more experiments needed.
Mass balances:
A (1 - ) f t
A g t +
A (1 - ) f v f + = A g x
A g v g x = A g
A (x ) pipe cross-section
1D 2-fluid models - consrv eqs
Momentum balances
vf v2 1 p f + (1 - ) f + (1 - ) CVM = Ci | vr | vr g (vi v f ) + F f , gravity + F f ,wall 2 t x x
(1 - ) f
vg
CVM
Virtual mass term, contains derivatives! Interface friction coefficient Interface velocity
Ci vi
17
A g u g t
A g u g v g x
+p
A A v g * +p = A Qig + g hg + v g Fg ,wall t x
Qig Qif
* hg h* f
gas-interface and liquid-interface heat fluxes per unit volume specific gas and liquid enthalpies at the interface (usually saturation enthalpies)
18
CVM Ci
vi
Correlations for inter-phase heat and mass transfer. Wall friction correlations. Correlations for wall-to-fluid heat transfer ... others ...
1D 2-fluid models - consrv eqs
Qig Qif
19
r A + B = P t x
Closure relations: r non-diferential closures - no derivatives - contribute to vector P . differential closure equations - contain temporal and/or spatial derivatives of the variables contribute to matrices, examples: A, B - virtual mass term - in dispersed flows (motion of the bubble/droplet causes motion of the neighbouring mass of the opposite phase ) - interface pressure term - stratified flows in 1D approximation - unsteady wall friction terms (in single-phase 1D flows), ... The same physical phenomena can be sometimes described with differential or non-differential model closure equations with second-order derivatives - not found in 1D two-fluid models. Insufficient accuracy of the two-fluid model and errors of the numerical schemes (mainly first-order accurate) do not justify inclusion of the closure equations with second-order derivatives.
1D 2-fluid models - consrv eqs 20
r A + B = P t x
Closure equations with first order derivatives influence the matrices and A, B and mathematical character of the equations. Standard 6-equation two-fluid model is non-hyperbolic (ill-posed, i.e. has "slightly" complex 1 eigenvalues of the matrix C = A B ). Differential terms (virtual mass, interface pressure) may be used to improve hyperbolicity (interface pressure term added into CATHARE code two-fluid model without physical background, with purpose to remove non-hyperbolicity). Even a small term with second-order derivatives removes ill-posedness of the two-fluid equations. In practice such diffusion terms are not explicitly added, but come in the form of the numerical diffusion of the first-order accurate schemes.
21
= ( g , f , g v g , f v f , g u g , f u f ,7 th variable )
Possibilities for 7th variable: - vapor volume fraction model assumes phasic pressure nonequilibrium (two-pressure two-fluid model). - transport equation for interfacial area concentration - interfacial area concentration is a basis for all the closure laws describing inter-phase heat, mass and momentum transfer (Ishii, Hibiki). - concentration of non-condensable gas (RELAP5) - ....
22
+ vm = ( p g pl ) t x
(1 ) f E f t
(1 - ) v f ( f E f + p f ) x
+ pi vi
(1 - ) = pi ( p g pl ) + Qif g h* + v f F f ,wall f x
23
- multi-field models (see lecture notes of S. Banerjee at Modelling and Computation of Multiphase Flows, ETH Zurich, annual seminars) The same phase, for example liquid in annular flow, is modelled with a separate conservation equation for the liquid film at the wall and a separate equation for the droplets in the vapor code of the flow. - multi-group models: for bubbly flows: bubble size spectra divided into various classes. Each class of bubbles treated with a separate balance equation (see publications by U. Rohde, Forschungszentrum Rossendorf and CFX5 code manual.)
25
Advantage of additional equation - more accurate closure relations in transients that change the flow regimes. Advantage of the transport equation over the "standard" (non-differential) closures for ai is more continuous transition between the correlations of different flow regimes. (reference: Ishii, Hibiki)
1D 2-fluid models - consrv eqs 26
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
Two-phase flow modelling 4) 1D two-fluid models flow regime maps and closure equations
by
TWO-FLUID MODELS 3) 1D two-fluid models - conservation equations 4) 1D two-fluid models - flow regime maps and closure equations 5) Characteristic upwind schemes for two-fluid models 6) Pressure-based solvers for two-fluid models INTERFACE TRACKING IN 3D TWO-PHASE FLOWS Lectures 7-10 ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS Lectures 11-14
DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME Lectures 15-18
1D 2-fluid models - closures 2
j g = v g
jl = (1 )vl
j f = jl
Horizontal flow regime map in RELAP5 code (drawing from RELAP5/mod3.3 manual)
j g = v g
jl = (1 )vl
j f = jl
Vertical flow regime map in RELAP5 code (drawing from RELAP5/mod3.3 manual)
10
11
12
f v2 fg
(We ) = max(5 , 10 10 )
2 (We ) vr , v = max 1/ 3 f min( D , 0.005 bub )
2 fg
d0 =
(We )
f v2 fg
14
1 1 f f f (v f v i ) 2 = f g g (v g v i ) 2 8 8
A g t
= A g
) )
Qig Qif
* hg h* f
gas-interface and liquid-interface heat fluxes per unit volume specific gas and liquid enthalpies at the interface (usually saturation enthalpies)
1D 2-fluid models - closures 16
h* = h f f
* , hg = hg saturation
* , hg = hg
if
if
g > 0
g < 0
h* = h f saturation f
h = u + p/
The liquid-to-interface and gas-to-interface volumetric heat fluxes
Interface temperature is assumed to be a saturation temperature at the local pressure. Fluxes , are flow regime dependent TS (interfacial area dependent). Details - elsewhere (RELAP5). Q Q
ig
Qif = H if (TS T f )
Qig = H ig (TS T g )
if
17
Wall friction
Non-differential closure equations Simple model - calculate single phase friction for two-phase mixture and split the friction between both phases:
f v f v f (1 ) f 2D m
Fg ,wall = f wg
g v g v g g 2D m
Re
2.51 k = 2 log + 0.27 Re f D w
1D 2-fluid models - closures
Turbulent flow
vg
vg v f vf vg CVM = CVM t + v f x - t - v g x
CVM
1 1 + 2 2 1 a = m (1 ) 3 2 2 (1 )( 2 1) + 2 (1 + g / f ) 2
0.4
> 0.6
20
21
g
(1 - ) f
vg
vf
Pi = (1 )( f g ) gD
pipe diameter
to obtain solutions that behave like solutions of the shallow water equation 1D 2-fluid models - closures
22
s steady state wall friction s D = relaxation time correlation D t More details in lectures on 1D simulations of fast transients.
1D 2-fluid models - closures 24
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
characteristic-upwind schemes
DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME Lectures 15-18
characteristic-upwind schemes 2
characteristic-upwind schemes
r +C = S t x
1 E = e = u + v2 2
dx
= [ A , A v , A e]
Equation of state (ideal gas):
p 1 2 E= + v 1 2
cp cv
7
characteristic-upwind schemes
C = L L
Eigenvalues: v + c
2 p c =
h = e+ p/
= 0 0
0 0 v c 0 v 0
Eigenvectors 1
1 L = v +c v c v 2 h + cv h cv v / 2 1
8
characteristic-upwind schemes
r +C =S t x
r A 1 + L L + R =0 x x t r r r 1 1 1 1 A L + L + L R = 0 t x x r r
rewritten:
= L + L
r R A
+ =0 t x
characteristic-upwind schemes 9
High resolution shock capturing schemes for Euler equations - discrete form
Vectorial equations
r +C =S t x
nj - n-1 j
r r
( )
n j -1/2
+ C
( )
n j+1/2
nj+1 - n j
( ) (C )
++ n C j 1 / 2 n j +1 / 2
( = (L
= L
++
1 n L j 1 / 2 n j +1 / 2
L 1
) )
r n r -- n 1 ( R ) j +1 / 2 = ( L F L R ) j +1 / 2 r n r ++ n ++ 1 ( R ) j +1 / 2 = ( L F L R ) j +1 / 2
t < x / max(v c , v + c )
characteristic-upwind schemes 10
High resolution shock capturing schemes for Euler equations - discrete form
Matrices
+ + , , F + + , F :
+ k + = k f k+ + k = 1,3 k = k f k k = 1,3
t - 1 f ++ = max 0 , k + k k k | | 2 x k f
-k
t = min 0 , k - k k - 1 | | 2 x k
SECOND-ORDER CORRECTIONS
Flux (slope) limiters: k, j+1-m - k, j -m k, j+1 / 2-m k, j+1/2 = , m= k, j+1/2 = MINMOD | k, j+1/2 | k, j+1 - k, j k, j+1 / 2 k = max(0 , min(1 , k )) r r r 1 1 1 j+1/ 2 = L + L RA A j+1/ 2 Van Leer k = ( k + k ) /( k + 1) Superbee k = 0 1st-order upwind k = max( 0, min( 2 k ,1), min( k ,2)) k = 1 2nd-order Lax-Wendroff
characteristic-upwind schemes
11
High resolution shock capturing schemes for Euler equations - discrete form
Jacobian matrix averaging (Roe's approximate Riemann solver):
C j +1 / 2
1 (3 )vave
2 have ( 1)vave
0 1 vave
A j j h j + A j +1 j +1 h j +1 A j j + A j +1 j +1
( vave ) j +1 / 2 =
( have ) j +1 / 2 =
( ave ) j +1 / 2 = j j +1
( Aave ) j +1 / 2 =
A j A j +1
characteristic-upwind schemes
12
High resolution shock capturing schemes for Euler equations - discrete form
Jacobian matrix averaging with Roe's approximate Riemann solver guarantees proper propagation velocities of the discontinuities (shock waves) in the solutions. Rankine-Hugoniot conditions are satisfied at the discontinuities of the numerical solution:
( A ) + ( Av ) = 0 ( Av ) + A ( v 2 + p ) = p (dA / dx ) ( AE ) + ( Av ( E + p ) ) = 0
propagation velocity of the shock wave difference between the quantities ahead and behind the shock cross-section derivative in point of the discontinuity
(dA / dx )
(entropy fix procedure - see LeVeque for details - must be added to remove the discontinuities that violate entropy law - rarefaction shock waves.)
characteristic-upwind schemes
13
High resolution shock capturing schemes for Euler equations - solutions (Sod's shock-tube)
p v
length (m)
High resolution shock capturing schemes for Euler equations - shock-tube solutions (100 grid points)
velocity (m/s)
(Not Sod's shock tube - Lax Wendroff fails for Sod's case due to the very large discontinuity...) characteristic-upwind schemes
15
High resolution shock capturing schemes for Euler equations - what is applicable for two-fluid models?
Problems of two-fluid models: - Equations are "Euler-like" but not necessarily hyperbolic. - Diagonalization of the Jacobian matrix of 6-equation two-fluid model is a difficult task: - diagonalization can be performed with analytical approximations. - diagonalization can be performed numerically. (Details: Tiselj, Petelin, JCP 136, 1997, WAHA code manual, 2004)
characteristic-upwind schemes
16
High resolution shock capturing schemes for Euler equations - what is applicable for two-fluid models?
Problems of two-fluid models: - Equations cannot be written in conservative form (although they are derived from conservation equations), i.e., Rankine-Hugoniot conditions are unknown. Moreover - shocks in two-phase flow are not discontinuities... (See example of shock wave in bubbly mixture, Kameda, Matsumoto, Phys. Fluids 8 (2), 1996)
experiment
pressure (bar)
characteristic-upwind schemes
17
High resolution shock capturing schemes for Euler equations - what is applicable for two-fluid models?
Problems of two-fluid models: Regarding the numerical integration source terms can be divided into three groups: 1) Sources due to the variable cross-section - can be treated with characteristic upwind in the convection part of equations. 2) Source terms describing interphase mass, momentum, and energy transfer, which tend to establish mechanical and thermal equilibrium i.e., RELAXATION source terms. These source terms are STIFF (their time scale can be much shorter than the time scale of the sonic waves). SPECIAL TREATMENT REQUIRED. 3) Other source terms, which represent external forces (gravity, wall friction) and wall heat transfer - not stiff (probably).
characteristic-upwind schemes 18
characteristic-upwind schemes
19
1st substep of operator splitting: convection terms with non-relaxation source terms
Equation solved:
r 1 +C = A S N R . t x
C = L L1
Eigenvalues and eigenvectors of Jacobian matrix are found: Source terms are rewritten:
r RA contains source terms due to the variable pipe cross-section r RF contains wall friction and volumetric forces (no derivatives).
r r r A r 1 + L L + RA + RF = 0 . t x x
This part of the scheme is the same as for the Euler equations of the single-phase compressible flow.
characteristic-upwind schemes 20
3)- Primitive variables are very convenient for evaluation of eigenvalues and eigenvectors. 4)+/-The conservative quantities as components of vector,
= g , (1 ) f , g v g , (1 ) oscillations , (1 ) e f ) are more( sensitive to the numerical f v f , g e g thanthef primitive variables: = ( p, , v f , v g , u f , u g )
characteristic-upwind schemes 22
Influence of the basic variables on the solution of the Toumi's shock tube problem for the 6-equation two-fluid model.
characteristic-upwind schemes 24
Influence of the basic variables on the solution of the Toumi's shock tube problem for the 6-equation two-fluid model. Initial vapor volume fraction discontinuity: LEFT=0.25, RIGHT=0.1
characteristic-upwind schemes 25
Influence of the basic variables on the solution of the Tiselj's shock tube problem for the 6-equation two-fluid model. Initial vapor volume fraction discontinuity: LEFT=0.9, RIGHT=0.1
characteristic-upwind schemes 26
characteristic-upwind schemes
27
Relaxation source terms: inter-phase heat, mass and momentum exchange terms are stiff, i.e., their characteristic time scales can be much shorter that the time scales of the hyperbolic part of the equations. Integration of the relaxation sources within the operatorsplitting scheme is performed with variable time steps, which depend on the stiffness of the source terms. Upwinding is not used (difficult to use) for calculation of the relaxation source terms.
characteristic-upwind schemes
28
r m+1
rm r rm = + A ( )S ( )tS rm
1
is integrated over a single time step with variable time steps that depend on the stiffness of the relaxations and can be much shorter that the convective time step . The time step for the integration of the source terms is controlled by the relative change of the basic variables. The maximal relative change of the basic variables in one step of the integration is limited to 0.01 to obtain results that are "numerics" independent. Time step is further reduced when it is necessary to prevent the change of relative velocity direction, or to prevent the change of sign of phasic temperature differences. Probably the best solution: implicit integration of relaxation sources.
characteristic-upwind schemes 29
characteristic-upwind schemes
30
Numerical scheme for the convection equation Integration of the source terms
Current test cases for numerics and physics: 1) Shock tube with large pressure and void fraction jumps (test of numerics). 2) Simple water hammer experiments (Simpson, 1989). 3) Two-phase flow in the nozzle. Especially important as a test of closure laws (physics): very accurate steady-state solutions can be easily calculated from steady-state ordinary differential equations for subcritical flows (experiment Abuaf et. al. 1981, Brookhaven Nat. Lab.). Also very though test for numerics.
characteristic-upwind schemes
32
45 40 35 30 25 20 15 10 5 0 0 20
Vhem
Vf
Ci=10 Hif=Hig=10^3
Vg
640
Them
Tf
Tg
Ci=10 Hif=Hig=10^3
40
60
80
Shock waves of two fluid model with various interphase momentum (Ci), heat and mass transfer (Hif,Hig)
100
characteristic-upwind schemes
33
45 40 35 30 25 20 15 10 5 0 0 20 40 60 80
Ci=10^3 Hif=Hig=10^6
Ci=10^3 Hif=Hig=10^6
100
characteristic-upwind schemes
34
45 40 35 30 25 20 15 10 5 0 0 20 40 60 80
Ci=10^4 Hif=Hig=10^7
Ci=10^4 Hif=Hig=10^7
100
characteristic-upwind schemes
35
45 40 35 30 25 20 15 10 5 0 0 20 40 60 80
Ci=10^5 Hif=Hig=10^9
Ci=10^5 Hif=Hig=10^9
100
characteristic-upwind schemes
36
45 40 35 30 25 20 15 10 5 0 0 20 40 60 80
Ci=10^6 Hif=Hig=10^11
100
100
characteristic-upwind schemes
37
characteristic-upwind schemes
39
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
pressure-based schemes
DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME Lectures 15-18
pressure-based schemes 2
pressure-based schemes
pressure-based schemes
r r r +C = S t x
Equations are discretised "directly". Often in the conservative form. Such discretisation is often unstable - especially if diffusive terms (second-order derivatives) are absent. (CFX is known to have problems with inviscid flows)
pressure-based schemes
pressure-based schemes
pressure-based schemes
pressure-based schemes
v =0 + x t
v v 2 p =0 + + t 2 x x
RELAP5 code discretisation properties: - Staggered grid - velocities calculated at the boundaries of the control volumes. - Implicit for the acoustic terms, explicit for non-acoustic terms (semiimplicit scheme) - Acoustic terms:
v + =0 t x
v p + =0 t x
vf
vg
j+1
j+1/2
velocity node vf,vg momentum control volume
pressure-based schemes
11
Difference equations obtained for the positive velocities in the grid points i and i+1/2:
n +1 i
+ t
n i
n n +1 i v i +1 / 2
n vin+1/ 2 i 1 1
=0
vin++1/ 2 vin+1 / 2 in ( v 2 ) in+1 ( v 2 ) in ( v 2 ) in+3 / 2 2(v 2 ) in+1 / 2 + ( v 2 ) in1 / 2 1 + 2 t x x 2 artificial viscosity term pin++1 pin +1 1 + =0 x 2nd-order accurate difference
in+1 / 2
pressure-based schemes
12
in vin++1/ 2 in1vin+1/ 2 1 1
x
=0
x 2
Two-equations written in each point. Velocity is eliminated and a linear system of N-equations is solved with unknown pressure pn+1. (N number of volumes) After calculation of the pressure field, the velocity field is updated. Other variables - calculated in two steps - mainly due to the stiff interphase exchange source terms. Inter-phase exchange terms are also calculated implicitly, other sources - with explicit integration.
pressure-based schemes 13
n +1 n
t
r r r n +1 f ( n +1 ) = S ( ) x
Multi-dimensional codes (NEPTUNE, CFX) - fully implicit... More implicit approach means more stability, but not more accuracy (stability is a result of numerical diffusion of the implicit schemes). More implicit approach allows use of longer time steps - however, time step longer than the characteristic time of the physical phenomena means non-accurate simulation of the phenomena.
pressure-based schemes 14
RELAP5 2
0.002
Stiff source term integration problematic also in RELAP5 (implicit time integration of source terms) Calculated vapor volume fraction near the valve: RELAP5 1 t=x/c RELAP5 2 t=0.01x/c 2F - WAHA t=x/c adaptive time step for relaxation source terms.
15
0.001
tim e (s )
pressure-based schemes
RELAP5 2nd
2nd-order scheme
Quasi second-order pressure waves are predicted by the RELAP5 when a very small time step is used. The resolution of the steep gradients is improved; however, numerical oscillations appear near the shock wave.
in+1 / 2
i +1 / 2
i +1 / 2
+ ...CONVECTION +
i +1
=0
pressure-based schemes
16
pressure-based schemes
17
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
7-3D-two-phase-flows
INTERFACE TRACKING IN 3D TWO-PHASE FLOWS 7) 3D two-phase flows - mathematical background 8) Interface tracking models 9) Coupling of two-fluid models and VOF method 10) Simulations of Kelvin-Helmholtz instability ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME
7-3D-two-phase-flows
7-3D-two-phase-flows
Additional: - Tsai & Yue Annu. Rev. Fluid. Mech. 1996.28:249-78 - about freesurface flows in oceanography - Detailed surface modelling (non-zero thickness of the interface...): Anderson, McFadden, Wheeler, Annu. Rev. Fluid Mech. 1998. 30:139 65
7-3D-two-phase-flows 4
7-3D-two-phase-flows
Computer codes
CFX, Fluent - commercial CFD codes - academic licenses ~1000 EU per CPU - major players on the market of CFD codes. CFX and Fluent used to be competitors, but have recently got the same owner (ANSYS). Future ??? Both codes have a strong two-phase flow modules. Especially useful for particles (bubbly flows).
7-3D-two-phase-flows
r + v = 0 t
r rr r v + (v v ) = F ( p I + ) + ( f s ( r , t )) t r f s (r , t )
equation of interface
7-3D-two-phase-flows
1 momentum equation
r rr r r U + UU U + (U )T = p + g + S M t = L L + (1 L )G = L L + (1 L )G
( )
))
Density
Viscosity
Model available in CFX5 and Fluent CFD codes (3,4, or 5 eqs. two-fluid model)
7-3D-two-phase-flows
r ( G G ) + GU G = SMG + GL t
2 momentum equations
r r r r r r r r r U + U T + U U + S + M L LU L + L LU L U L = Lp + L L L L LG G GL L ML L t r r r r r r r r r U + U T + U U + S + M G GU G + G GU G U G = G p + G G G G GL L LG G MG G t
( (
( (
))
( (
))
Model available in CFX5, Fluent User specified and Neptune CFD codes (4,5,6 momentum source eqs. two-fluid model) 7-3D-two-phase-flows
L G
d LG
Mixing length scale - user specified - interfacial area ai is supposed to be a part of solution and not a user defined parameter...
7-3D-two-phase-flows 12
CD =
24 1 + 0.15 Re0.687 Re
Transitional area at medium Reynolds numbers. CFX and Fluent offer drag forces for non-spherical bubbles, but should be switched on by user... (How do one knows that bubbles changed their shape?) CFX, Fluent and Neptune can take into account also the following inter-phase momentum transfer in dispersed flows: lift, virtual mass, turbulent dispersion force. Approach probably useful for particle flows (and allows numerous user defined parameters to fit the experiments...)
7-3D-two-phase-flows 13
7-3D-two-phase-flows
14
( )
T
2 r r U U 3
= =
GL hL ,tot LG hG ,tot + QG + SG
( )
2 r r U U 3
LG hG ,tot GL hL,tot + QL + S L
Heat transfer induced by Interphase heat interphase mass transfer transfer 1 r r Total enthalpy htot = hstat + U U 2
)
15
7-3D-two-phase-flows
7-3D-two-phase-flows
16
BASIC MODEL THE SAME AS IN 1D TWO-FLUID MODELS Problem: unknown interfacial area and heat transfer coefficients (flow regime dependent)
7-3D-two-phase-flows 17
Neptune: - nucleate boiling correlations (important for nuclear simulations) - flashing flow model (flashing delay possible in Neptune)
7-3D-two-phase-flows
18
7-3D-two-phase-flows
19
( ) )
Turbulence production
r r rT 2 r r Pk = t U U + U U 3t U + k 3
C = 0.09
Effective Viscosity
eff = + t
2 k 3
t = C
k2
Modified pressure
p = p +
Turbulent viscosity
7-3D-two-phase-flows
20
7-3D-two-phase-flows
21
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
8-interface-tracking
INTERFACE TRACKING IN 3D TWO-PHASE FLOWS 7) 3D two-phase flows - mathematical background 8) Interface tracking models 9) Coupling of two-fluid models and VOF method 10) Simulations of Kelvin-Helmholtz instability ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME
8-interface-tracking
8-interface-tracking
8-interface-tracking
8-interface-tracking
Front-tracking methods - not further discussed in this seminar. Volume-tracking preferred - closer relation with twofluid models...
8-interface-tracking
10
( )
Due to the step function nature of void fraction this equation must be solved in a way that retains the step function nature. With ordinary first or second order accurate discretization scheme step function gets smeared due to numerical diffusion A special procedure must be used to assure sharp free surface.
8-interface-tracking
11
1.0
0.95
0.2
1.0
1.0
0.7
8-interface-tracking
12
First-order reconstructions.
8-interface-tracking
13
j,y (i,j-1)
i,x
8-interface-tracking
14
Level-Set
Use of a continuous level-set function , which is positive in the space occupied by the first fluid, negative in the space occupied by the second fluid. r Value of in a point x r is distance from point x to the surface
r r r = min x xI ; xI Interface
=2 =1 = 1 =0
Free surface position is defined with the zero value of level set function (distance function)
8-interface-tracking
= 2
15
Level-Set
Temporal development equation
r + v = 0 t
Heavy side function is used to represent density and viscosity over interface
0, < 0 H ( ) = 1, > 0
To achieve numerical robustness a smeared out Heavy side function is often used
0, 1 1 + sin H ( ) = + 2 2 2 1,
( ),
>
<
8-interface-tracking
17
Conservative Level-Set
Olsson & Kreiss, J. Comput. Phys. 210, 2005 After advective step - a different level-set function is defined:
r + u = 0 t
=0.5 on the surface, does not measure distance from the surface but volume fraction. Equation which acts as artificial compression is solved until steady state is reached v v n= + ( (1 )n ) = beginning of the second step. We denote time variable by to stress that this is an artificial time, not equivalent to an actual time t. Artificial compression flux (1-) acts in the regions where 0<<1. Small amount of viscosity is added to smear discontinues.
8-interface-tracking 18
((
))
= 1 + (1 ) 2 = 1 + (1 ) 2
r + u = 0 t
SIMPLE pressure correction procedure to get divergence free velocity field r Solving momentum equation to obtain intermediate velocity u * p 1 r = u * Solving pressure correction equation t Solving momentum equation only with the contribution of pressure r u n+1 part to get Solving continuity equation for volume fraction to obtain n+1
8-interface-tracking
19
in, +1 j
= in j ,
Fi n1 / 2, j Fi n1 / 2, j Gin j +1 / 2 Gin j 1 / 2 + + , , x y
Second order discretization with Van Leer limiter (combination of upwind and Lax Wendroff scheme) -> decreased numerical diffusion and dispersion, second order accurate in space and time CGSTAB algorithm to solve pressure correction eq. (5-diagonal matrix in 2D)
8-interface-tracking
20
hl=0.1 m
hr=0.01 m L=1.2 m
8-interface-tracking
21
mr = (m0 m ) / mo
1,00E-07
r max residual = u
1,00E-08
22
Grid:512x64, time step=1e-2 s, CPU time=1.5 h @3.0 GHz Pentium 4 Wet ground jet is formed
Grid:1024x128, time step=1e-3 s, CPU time=15 h @3.0 GHz Pentium 4 Most of the CPU time for pressure correction eq.
8-interface-tracking 23
8-interface-tracking
24
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
by
9-VOF+two-fluid
INTERFACE TRACKING IN 3D TWO-PHASE FLOWS 7) 3D two-phase flows - mathematical background 8) Interface tracking models 9) Coupling of two-fluid models and VOF method 10) Simulations of Kelvin-Helmholtz instability ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME
9-VOF+two-fluid
r u = 0
r r r u + (u )u = t r g p + ( D ),
t r + u = 0
r k + ( k u k ) = 0 t
( )
k = 1
k
9-VOF+two-fluid
9-VOF+two-fluid
VOF method - I
Whole domain formulation of basic equations (no surface tension term):
r u = 0
r r r r u + (u )u = g p + ( D), t
1 , i, j = 0 , 0 < < 1, i, j
r + (u ) = 0. t
9-VOF+two-fluid
VOF method II
simulated structures are larger than the grid distance
0.4
0.07
0.0
n
(i-1,j) j,y
1.0
0.95
0.2
(i,j) y x
1.0
1.0
0.7
(i,j-1) i,x
9-VOF+two-fluid
VOF errors - I
reconstruction error
9-VOF+two-fluid
VOF errors - I
reconstruction error - bubble on a coarse grid
h
9-VOF+two-fluid 9
VOF errors - I
reconstruction error
0,6
1 = N
( i , j )V
ACTUALi, j
(t ) RECONSTRUCTEDi, j (t )) (t )
2
0,4
0,2
0 0 2 4 6
d/h
10
9-VOF+two-fluid
10
VOF errors - II
Advection error
Initial state: - different bubbles flows together with the surrounding liquid in a constant velocity field Final state: - bubbles with d<2.5h move faster - shapes of the bubbles are changed
9-VOF+two-fluid
11
9-VOF+two-fluid
12
9-VOF+two-fluid
13
9-VOF+two-fluid
14
9-VOF+two-fluid
15
Two-fluid model - I
simulated structures are smaller than the grid distance
0.7
0.6
0.7
fluid 1
fluid 2
0.9
0.8
0.9
9-VOF+two-fluid
16
Two-fluid model - II
r k + (k uk ) = 0 t
=1
interfacial drag
r r 1 C1 = C2 = cd c ai v1 v2 8
C1 = C2 = cd 12
9-VOF+two-fluid
17
Model coupling - I
9-VOF+two-fluid
18
Model Coupling - II
i, j = 0 stratified fluids
i, j
1 = Vi, j
(i +k , j +l ) 1i , j V
9-VOF+two-fluid
i +k , j +l (i , j ) f i +k , j +l
i, j < 0
i, j > 0 , the fluids in the cell (i,j) are calculated with the
"two-fluid" model
two-fluid model
0 = 0
VOF model
0 = max
0 = 0.3 0.8
20
i, j
= 0 .8
9-VOF+two-fluid
21
0,6 0,5 0,4 0,3 0,2 0,1 0 0 0.5 5 1.0 10 t 1.5 15 2.0 20 VOF 28x28 coupled 28x28 VOF swithed to 56x56
9-VOF+two-fluid
22
9-VOF+two-fluid
23
(i , j ) V
Mi, j (t ) Li, j (t )) (t ) 2
1,2
nod
f =
100
9-VOF+two-fluid
24
9-VOF+two-fluid
25
(i , j ) V
Mi, j (t ) Li, j (t )) (t ) 2
0,6
nod
fcoupled 6x30-fcoupled 12x60 fcoupled 12x60-fcoupled 24x120 fcoupled 24x120-fcoupled 48x240 fcoupled 48x240-fVOF 48x240
f =
100
9-VOF+two-fluid
26
i, j = i, j
r n
i , j 0 separated fluids
9-VOF+two-fluid
28
i, j
r n
r n
9-VOF+two-fluid
29
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
10 - K-H instability
INTERFACE TRACKING IN 3D TWO-PHASE FLOWS 7) 3D two-phase flows - mathematical background 8) Interface tracking models 9) Coupling of two-fluid models and VOF method 10) Simulations of Kelvin-Helmholtz instability ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME
10 - K-H instability
10 - K-H instability
10 - K-H instability
2=780 kg/m3
2 U cr 2
1=1000 kg/m3
1=0.001 Pas Wall, u=v=0 L=1830 (200) mm U2 z=0 z
1 + 2 g 1 2 = 1 2
kcr = g /
2
cr = 2 / kcr
U1
g =4.13
10 - K-H instability 5
(1 2 )gh1 sin t
1 h2 + 2 h1
U1 =
(1 2 )gh2 sin t
1h2 + 2 h1
Experimental onset of instability is 1.88 s (analytical 1.5 s). Experimental critical wavelength is 25-45 mm (analytical 27 mm). Thorpes experiment is in agreement with results of the inviscid linear analysis. Linear analysis is appropriate due to the small density ratio, linear inviscid theory is insufficient at higher density ratios. Linear analysis is valid until amplitude is small.
10 - K-H instability
( )
))
Implicit (first order accurate) time scheme was used to calculate velocity field and SIMPLE pressure correction. Two simulations were done: Simulation with explicit time scheme for volume fraction with geometric VOF surface reconstruction. Simulation with implicit time scheme for volume fraction without surface reconstruction.
10 - K-H instability 7
Volume fraction field from 0.0 s to 3.55 s. Explicit time scheme, with geometric surface reconstruction used. Surface is always sharp. Grid:29x196, time step=1e-4 s, CPU time=39 h @ 2.4GHz Opteron
10 - K-H instability 8
0.0
0.5
1.0
1.5
3.0
Growth of instability on mesh with 29x196 volumes and double precision, explicit time scheme for volume fraction, geometric surface reconstruction.
10 - K-H instability 9
Volume fraction field from 2.0 s to 3.0 s. Implicit time scheme, without surface reconstruction. Numerical diffusion of surface can be seen. Grid:29x196, time step=1e-4 s, CPU time=46 h @2.4 GHz Opteron
10 - K-H instability
10
0.0
0.5
1.0
2.5
3.0
3.5
Growth of instability on mesh with 29x196 volumes and double precision, implicit time scheme for volume fraction, without surface reconstruction.
10 - K-H instability 11
10 - K-H instability
13
14
Temporal development of the interface predicted by CFX. K-H instability in experiment is observed in the middle section of the tube after ~1.8 s. Viscosity not neglected, surface tension neglected in particular simulation. Grid:29x1790, time step=1e-4 s, CPU time=20 h @2.4 GHz Opteron
10 - K-H instability 15
Volume fraction field from 2.0 s to 3.25 s. Most unstable wavelength in simulation is 40 mm. In experiment cr is 25-45 mm. Analytically predicted cr is 27 mm.
Grid: 29x196, time step=1e-4 s, CPU time=50 h @3.0 GHz Pentium
10 - K-H instability 16
0.0
0.5
1.0
2.5
3.0
3.5
Growth of instability on mesh with 29x196 volumes and max residual = 1e-5, double precision, different dt [s]. Tough case for CFX-5.7, very small timestep must be used
10 - K-H instability 17
dt=1e-3 dt=5e-3
0.0
0.5
1.0
1.5
3.0
3.5
4.0
4.5
5.0
Growth of instability on mesh with 29x196 volumes and max residual = 1e-5, double precision. There is no need for small timestep in CFX-10.
10 - K-H instability 18
Volume fraction field from 2.0 s to 3.35 s. Most unstable wavelength (cr) in simulation is 30 mm. Analytically predicted cr is infinitely small (in simulation cr = 2x=2 mm).
10 - K-H instability
19
0.0
0.5
1.0
2.5
3.0
3.5
Growth of instability on mesh with 29x196 volumes and max residual = 1e-5, double precision, different dt [s]
10 - K-H instability 20
0.0
0.5
1.0
1.5
2.0
3.5
4.0
4.5
5.0
Growth of instability on mesh with 29x196 volumes, dt = 0.01 s and max residual = 1e-4
10 - K-H instability
21
0.0
0.5
1.0
2.5
3.0
3.5
Growth of instability on mesh with 29x196 volumes dt = 1e-4 and max residual = 1e-5, double precision.
10 - K-H instability 22
10 - K-H instability
23
Grid:2440x40, time step=1e-3 s, CPU time=2 h @3.0 GHz Pentium 4 Not real aspect ratio
10 - K-H instability
24
10 - K-H instability
25
258 142
593
574
578
8,T1 3 water
8,T2 1
8,T3
8,T4 vapour 2
10
1309
10
1150
10
5 4 11 6
10 - K-H instability
26
Steam, TV=470 K
10 - K-H instability
27
Both phases modeled as compressible (density and temperature are pressure dependent) Steam tables with wider range of pressures and temperatures and more interpolation points was used Main unknown -> liquid-to-interface heat transfer coefficient
10 - K-H instability 28
/ L L
1/ 4
Thermal diffusivity
aL =
L L c p,L
10 - K-H instability
29
10 - K-H instability
31
mc [kg/s]
time [s]
0.035 0.03 0.025 mc [kg/s] 0.02 0.015 0.01 0.005 0 dx/dy=1 dx/dy=2 dx/dy=4 dx/dy=8
10 - K-H instability
32
CFX
volume fraction
0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 5 10 time [s] 15 20
T1 T2 T3 T4
200 180 160 temperature [C] 140 120 100 80 60 40 20 0 0 5 10 time [s] 15 20
Exp.
volume fraction T1 T2 T3 T4
0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 5 10 time [s] 15 20 T1 T2 T3 T4
10 - K-H instability
33
10 - K-H instability
34
cfx exp
T1
T1
20
10 - K-H instability
35
T2
T2
10 - K-H instability
36
T3
T3
10 - K-H instability
37
T4
T4
10 - K-H instability
38
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
Two-phase flow modelling 11) WAHA code - mathematical model and numerical scheme
by
WAHA-maths-numerics
ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS 11) WAHA code - mathematical model and numerical scheme 12) WAHA code - simulations 13) Hands on: simulation of two-phase water hammer transient and two-phase critical flow. 14) Fluid-structure interaction in 1D piping systems DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME Lectures 15-18
WAHA-maths-numerics 2
www2.ijs.si/~r4www/waha3_manual.pdf
WAHA-maths-numerics
(1 - ) f
(1 ) f
( v g w ) ug ug 1 dA ( x ) p p p = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p w +p + p (v g w) K + pK + g (v g w) +p g A ( x ) dx x x t x t t x
WAHA-maths-numerics
(1 - ) f
(1 ) f
( v g w ) ug ug 1 dA ( x ) p p p = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p w +p + p (v g w) K + pK + g (v g w) +p g A ( x ) dx x x t x t t x
(1 - ) f
(1 ) f
( v g w ) ug ug 1 dA ( x ) p p p = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p w +p + p (v g w) K + pK + g (v g w) +p g A ( x ) dx x x t x t t x
A( x, t ) = A( x) + Ae ( p ( x, t ))
WAHA-maths-numerics
dAe D dp = = K dp A( x) d E
(1 - ) f
(1 ) f
( v g w ) ug ug 1 dA ( x ) p p p = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p w +p + p (v g w) K + pK + g (v g w) +p g A ( x ) dx x x t x t t x
WAHA-maths-numerics
k d p + k duk . d k = p uk uk p
(1 - ) f
(1 ) f
( v g w ) ug ug 1 dA ( x ) p p p = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p w +p + p (v g w) K + pK + g (v g w) +p g A ( x ) dx x x t x t t x
(1 - ) f
(1 ) f
( v g w ) ug ug 1 dA ( x ) p p p = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p w +p + p (v g w) K + pK + g (v g w) +p g A ( x ) dx x x t x t t x
p = S (1 )( f g ) gD
10
(1 - ) f
(1 ) f
( v g w ) ug ug 1 dA ( x ) p p p = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p w +p + p (v g w) K + pK + g (v g w) +p g A ( x ) dx x x t x t t x
(1 - ) f
(1 ) f
( v g w ) ug ug 1 dA ( x ) p p p = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p w +p + p (v g w) K + pK + g (v g w) +p g A ( x ) dx x x t x t t x
(1 - ) f
(1 ) f
( v g w ) ug ug 1 dA ( x ) p p p + p (v g w) K w = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p +p + pK +p + g (v g w) g A ( x ) dx x x x x t t t
(1 - ) f
(1 ) f
ug ug ( v g w ) 1 dA ( x ) p p p + g (v g w) +p + pK +p + p (v g w) K w = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p g A ( x ) dx t x t t x x x
(1 - ) f
(1 ) f
ug ug ( v g w ) 1 dA ( x ) p p p + g (v g w) +p + pK +p + p (v g w) K w = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p g A ( x ) dx t x t t x x x
(1 - ) f
(1 ) f
ug ug ( v g w ) 1 dA ( x ) p p p + g (v g w) +p + pK +p + p (v g w) K w = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p g A ( x ) dx t x t t x x x
(1 - ) f
(1 ) f
ug ug ( v g w ) 1 dA ( x ) p p p + g (v g w) +p + pK +p + p (v g w) K w = Q ig + g (u * u g ) + v g Fg , wall ( v g w ) p g A ( x ) dx t x t t x x x
0.5 vcrit
vcrit
(1 ) + vcrit = gD( f g ) g f
vr
Stratification factor S:
S K H 1 vr = L1 v critical 0
S = S K H X inclination X v X v X X 1
v r < L 2 v critical L1 v critical
(L1 L2 )
L 2 v critical v r
v r L1 v critical
X v
m v m < 2500 kg / m 2 s
2500 kg / m 2 s m v m 30000 kg / m 2 s
)(
) )
m v m 30000 kg / m 2 s < 30 0
X inclination
1 0 = 60 60 0 30 0 0
)(
30 0 60 0
X 1
60 0
1 = (1 ) 5 10 6 10 3 5 10 6 0
)(
WAHA-maths-numerics
(1 ) < 5 10 6 5 10 (1 ) 10 3 (1 ) 10 3 18
6
LEGEND: - abub/ adrp is modified vapor/liquid volume fraction - d0 is average slug diameter - Re is Reynolds number
< 0.5
Ci =
Bubbly flow
1 f CD a gf 8
0.75
CD = 24(1 + 0.1Re
) / Re
agf = 3.6 / d0
agf = 3.6 (1 ) / d0
(1 q )
0.95 q= 0.95 0.5
r
) (Ci droplet )
q
r = 0. 3
(vk vi ) 2 1 Ci = k fk a gf 8 (v g v f ) 2
k = g, f
Dispersed-to-horizontaly stratified:
Ci = S Ci stratified + (1 S ) Ci dispersed
)
19
WAHA-maths-numerics
g =
Qif + Qig h h
* g * f
Qik = H ik (TS T f )
Horizontally stratified flow: Dittus-Boelter type of correlation:
H ik =
2 Nuk akf kk
k = g, f
H if = S H if stratified + (1 S ) H if dispersed
WAHA-maths-numerics
)
20
Legend:
H ig
m mixture density X - quality - relaxation time - temperature relation TS Saturation temp. Tk phase temp. hk phase enthalpy
H if =
* H ig TS Tg g hg h* f
Qik = H ik (TS T f ) k = g or f
WAHA-maths-numerics 21
k vk vk (1 ) k 2D m
f ml
D = 2 x
(t ) = s (t ) + un (t )
t
un (t ) = un (t t )e
+ kT cv
Instantaneous relaxation available for inter-phase heat, mass, and momentum transfer - such results are similar to results of HEM model. Boundary conditions: closed end, constant pressure (tank), and constant mass flow rate (pump). Tank allows modelling of critical flow at the boundary.
WAHA-maths-numerics 22
+B = S NON _ RELAXATION , t x
2) Relaxation (inter-phase exchange) source terms: r r d A = S RELAXATION dt Relaxation source terms: inter-phase heat, mass and momentum exchange terms are stiff, i.e., their characteristic time scales can be much shorter that the time scales of the hyperbolic part of the equations. Integration of the relaxation sources within the operator-splitting scheme is performed with variable time steps, which depend on the stiffness of the source terms. Upwinding is not used for calculation of the relaxation source terms.
WAHA-maths-numerics 23
1st substep of operator splitting: convection terms with non-relaxation source terms
Equation solved:
r 1 +C = A SN R . t x
C = L L
r RA contains source terms due to the variable pipe cross-section r RF contains wall friction and volumetric forces (no derivatives).
r r r A r x 1 1 1 1 1 1 + L + L RA + L RF =0 . Equation rewritten: L t x x x
WAHA-maths-numerics 24
1st substep of operator splitting: convection terms with non-relaxation source terms
Equation rewritten:
r A r x 1 1 1 1 1 L + L + L RA + L RF =0 . t x x x
1
r r 1 1 = L + L RA A + L RF x . r
1 1
+ =0 . t x
Slopes are not measured by Modified characteristic variables but rather r r 1 r with variables: 1 1
= = L + L RAA + L RF x
WAHA-maths-numerics
25
1st substep of operator splitting: convection terms with non-relaxation source terms
The combination of the first- and the second-order accurate discretisation is r n+1 r n rn rn rn rn (Godunovs method): j - j j - j -1 j+1 - j -- n ++ n =0 + ( ) j+1/2 + ( ) j -1/2 t x x where elements of diagonal matrices + + , are calculated as: t ++ + + = k f k+ + k = 1,6 - 1 , k = 1,6 f k = max 0 , k + k k k | | x 2 and k t - = k f k k = 1,6 k - 1 , k = 1,6 f = min 0 , k - k k
k
| k |
p = max(0 , min(1 , p ))
Van Leer p = ( p + p ) /( p + 1)
Difference scheme (basic variables) used in the WAHA code for convective r r r part is: r A j 1 / 2 + + j 1 / 2 j +1 / 2 1 + + 1 1 ++ 1 1 L + + L RA + L = L x x x t r A j +1 / 2 r r 1 1 ++ 1 1 1 1 + L RA + L R F j 1 / 2 + L R F j +1 / 2 x
WAHA-maths-numerics
26
= ( p, , v f ,vg , u f , ug )
(phasic internal energies uf , ug replaced with the phasic densities, due to the applied water property subroutines)
is integrated over a single time step with variable time steps that depend on the stiffness of the relaxations and can be much shorter that the convective time step .
The time step for the integration of the source terms is not constant and is controlled by the relative change of the basic variables. Currently, the maximal relative change of the basic variables in one step of the integration is limited to 0.01 to obtain results that are "numerics" independent. Time step is further reduced when it is necessary to prevent the change of relative velocity direction, or to prevent the change of sign of phasic temperature differences.
WAHA-maths-numerics 28
x [ k k vk A] = 0 x [ k vk ( k wk + p ) A] = 0
2 x k k vk
[ (
+ p A = [ k p ] x A
)]
i2
i2+1
i2+2
A1
i1-2 i1-1 i1
A2
k n
WAHA-maths-numerics
30
[]
WAHA, simplified
WAHA, cons-char
Expansion at l = 3 m
0.8
0.9
pressure
[m]
VVF
1.0 2.0 3.0 4.0
[m]
5.0
Current abrupt area change models do not contain the generation or loss of momentum and energy, where flow passes the abrupt area change. These models especially momentum losses - must be included in abrupt area change model to obtain more realistic behaviour of flow on the abrupt area change. Important:
Abrupt area change model was verified for the single-phase flow only. Reduced CFL number is recommended with values ~0.5 Minor losses are not included in the abrupt area change model.
WAHA-maths-numerics 31
p= const.
const.
1 1 2 3 4
.. Pipe 2.. 29 30
3 4
Closed end
...
WAHA RELAP
Pipe 1
...
97 98 99 100 1 2
...Pipe 6...
p3 [MPa]
9.4 9.2 9.0 8.8 8.6
47 48 49 50
p1 [MPa]
9.2 9.0 8.8 8.6 8.4 8.2 8.0 7.8 0.000 0.002 0.004 0.006 0.008
p2 [MPa]
9.2 9.0 8.8 8.6 8.4 8.2 8.0 7.8
WAHA RELAP
WAHA RELAP
[s]
0.010
0.000
[s]
0.010
0.000
0.002
0.004
0.006
0.008
[s]
0.010
WAHA-maths-numerics
32
v n n 1
..
..
v Fi
v ri
x
v ri +1
i+1
v v v F0 F1 F2
v v v Fn 2 Fn1 Fn
Ai p i vi
r F is dynamic fluid thrust force vector on pipe r d ( v ) dV r r r r r r r r F = + v v dA + pdAin + pdAout + pambient dApipe gdV dt c.v. c.s . Ain Aout Apipe c .v.
WAHA-maths-numerics
33
0 -5000 0
MEMBRANE
GS1
CLOSED END
GS7
-10000 force (N) -15000 -20000 -25000 -30000 -35000 -40000 time (s)
0.015
total force A*p
0.005
0.01
WAHA-maths-numerics
34
200
150
100
50
Extended into negative pressure (up to 95 bar) Extended liquid and vapor spinodal lines
-50
-100 250
300
350
400
450
500
550
600
650
Temperature [K]
WAHA-maths-numerics
35
1500000 1300000
RELAP5 steam tables t=1.0008ms
1100000 900000
1.5
0.5
1
length (m)
1.5
WAHA-maths-numerics
4.E-01
WAHA steam tables
2.E-01 0.E+00 0 -2.E-01 time (s) 0.1 0.2 0.3 0.4 0.5 0.6
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
by
WAHA-simulations
ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS 11) WAHA code - mathematical model and numerical scheme 12) WAHA code - simulations 13) Hands on: simulation of two-phase water hammer transient and two-phase critical flow. 14) Fluid-structure interaction in 1D piping systems DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME Lectures 15-18
WAHA-simulations 2
PIPE
MEMBRANE
GS1
L = 4.097 m, A = 4.2 10-2 m2 Transient: - rapid depressurization of the hot liquid from the horizontal pipe
Aim: - test case for codes used to simulate LOCA accidents in NPPs - to verify several WAHA code physical models like:
- propagation of the rapid depressurization wave - the pressure undershoot model - the flashing model - propagation of the void fraction wave - the two-phase critical flow - transition into the horizontally stratified flow
WAHA-simulations A. R. Edwards, T. P. O'Brien, Studies of phenomena connected with the depressurization of water reactors, Journal of the British Nuclear Energy Society, 9, 125135, 1970. 3
PIPE
MEMBRANE
GS1
Boundary conditions: - left: closed end L = 4.097 m, A = 4.2 10-2 m2 - right: constant pressure pT = 1 bar - cross-section of the break is 12.5% smaller than cross-section of the pipe. Initial conditions: -velocity: stagnant liquid -pressure p = 70 bar -temperature T = 515 K Conclusion: - The accuracy of the WAHA code predictions is comparable to the accuracy of the RELAP5 predictions despite a much simpler flow regime map and absence of a special critical flow model.
WAHA-simulations 4
Edwards pipe:
6
0.1
0.2
0.3
0.4
0.5
0.6
Time [s ]
WAHA-simulations 5
Edwards pipe:
0.1
0.2
0.3
0.4
0.5
0.6
Time [s ]
WAHA-simulations 6
Edwards pipe:
Vapor volume fraction in GS 5 []
0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.1 0.2 0.3 0.4
0.5
0.6
Time [s ]
WAHA-simulations 7
Edwards pipe:
500
Temperature in GS 5 [K]
450
400
350
300
250
0.1
0.2
0.3
0.4
0.5
0.6
Time [s ]
WAHA-simulations 8
inlet
outlet
Transient: - high pressure Super Moby Dick experiment performed at CEA in Grenoble in 80s - steady state two-phase critical flashing flow in the convergent-divergent nozzle (Faucher). Aim: - to verify the Homogeneous-Relaxation Model (Lemonnier) used in the WAHA code to model inter-phase heat and mass transfer in dispersed flow - to verify conservation properties of the WAHA code in the variable crosssection geometry.
E. Faucher, Simulation numerique des ecoulements unidimensionnels instationnaires avec autovaporisation, Doctorat de luniverse Paris Val de Marne, (2002). WAHA-simulations 9
inlet
outlet
Boundary conditions: -inlet: constant pressure pR = 80 bar, temperature T = 549.6 K (20/465.7) -outlet: constant pressure pL = 47 bar, temperature T = 465.5 K Conclusion: - advantage of the WAHA code: critical flow is simulated with standard discretisation and boundary conditions - non-conservative numerical scheme: - overall loss of mass flow along the nozzle is less than 0.7 % - maximum non-conservation is less than ~1.5% (strong phase changes).
WAHA-simulations
10
[m/s]
10000
1000
100
10
[m] 0.90
11
WAHA-simulations
[VVF]
0.5 0.4
490 480 470 460 450 440 430 420 410
[K]
T sat
T liq
VVF
[VVF]
1.0 0.8 0.6 0.4 0.2 0.0
[m]
0.90
0.00
0.15
0.30
0.45
0.60
0.75
[m]
0.90
[MPa]
12.0 10.0 8.0 6.0 4.0 2.0 0.0 0.00 0.15
0.30
0.45
0.60
0.75
[m]
0.90
13
WAHA-simulations
0.30
0.45
0.60
WAHA-simulations
[kg/s]
20.0 18.0 16.0 14.0 12.0 10.0 0.00 0.15
WAHA 1 EXP 1
0.30
0.45
0.60
0.75
[m] 0.90
15
WAHA-simulations
Measuring point
Transient: - column separation water hammer induced due by rapid valve closure.
Aim: - fundamental benchmark for two-phase computer codes because of the simple: - geometry, - initial conditions and - water hammer initiating mechanism.
A. R. Simpson, 1986, Large water hammer pressures due to column separation in sloping pipes, Ph.D thesis, The University of Michigan, Department of Civil Engineering. WAHA-simulations 16
Measuring point
Boundary conditions: -right: closed end (valve) -left: constant pressure pT = 3.419 bar Initial conditions: -velocity v = 0.4 m/s -pressure p = 3.419 bar -temperature T = 296.3 K Effect of the elasticity taken into account.
Conclusion: At low temperatures flashing and condensation of the steam are not governed by the heat and mass transfer between both phases, but by the dynamics of the liquid column (energy equations are not needed).
WAHA-simulations 17
Simpsons pipe:
1.2
Expe rime nt WAHA3 - e la s tic pipe WAHA3 - s tiff pipe WAHA3 - uns te a dy friction
0.8
0.6
0.4
0.2
0.05
0.1
0.15
0.2
0.25
0.3
Time [s ]
WAHA-simulations 18
0.01
0.008
0.006
0.004
0.002
0.05
0.1
0.15
0.2
0.25
0.3
Time [s ]
WAHA-simulations 19
WAHA-simulations
20
P09
P12
50.9 m
closure valve
0m N=1
bridge
P23
P01 F 1 P
P02
P03 WM 0.2 m
P06
34.5 m 60.8 m
P15
67.0 m
VALVE TANK
146.8 m
-0.2 m
PIPELINE
81.6 m 139.4 m 84.6 m
145.5 m
P18
88.7 m 77.5 m
F 2 P
turning point
B2
-18.2 m 149.4 m
142.9 m
67.9 m
F 3 P
137.0 m 90.7 m 75.5 m
WAHA-simulations
21
6.50m
6.50m
4.
00
TANK
46.50 m
3.00m
7.50m
3.50 Transient: - column separation water hammer induced due by rapid valve closure.
Boundary conditions: -left: closed end (valve) -right: constant pressure Initial conditions: -case 135: p = 1.13 bar, -case 307: p = 9.92 bar, -case 329: p = 10.18 bar, v = 3.975 m/s, v = 4.009 m/s, v = 3.975 m/s, T = 293.7 K T = 392.1 K T = 419.6 K
22
WAHA-simulations
1.00m
PPP pipeline:
VALVE
10.00m
PPP pipeline:
135: P res s ure his tory in P 03 [ba r]
10
15
20
Time [s ]
WAHA-simulations 23
50
40
30
20
10
0 0
Time [s ]
WAHA-simulations 24
50
40
30
20
10
0 0 1 2 3 4 5 6 7
Time [s ]
WAHA-simulations 25
PPP pipeline:
329: P res s ure his tory in P 03 [ba r]
50 45 40 35 30 25 20 15 10 5 0 0 2 4 6 8
10
Time [s ]
WAHA-simulations 26
PPP pipeline:
Time [s ]
WAHA-simulations 27
PPP pipeline:
Time [s ]
WAHA-simulations 28
PPP pipeline:
329: Vapor volume fra ction in P 03
10
Time [s ]
WAHA-simulations 29
PPP pipeline:
329: P res s ure his tory in P 03 [ba r]
60
50
40
30
20
10
0 0 1 2 3 4 5
Time [s ]
WAHA-simulations 30
PPP pipeline:
329: P res s ure his tory in P 03 [ba r]
50 45 40 35 30 25 20 15 10 5 0 0 2 4 6 8
10
Time [s ]
WAHA-simulations 31
PPP pipeline:
329: Vapor volume fraction in P 03
1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 2 4 6 8 10 Expe rime nt WAHA3 RELAP5
Time [s ]
WAHA-simulations 32
PPP pipeline:
329: P res s ure his tory in P 03 [ba r]
45 40 35 30 25 20 15 10 5 0 0 1 2 3
Time [s ]
WAHA-simulations 33
Grid refinement
Time [s ]
WAHA-simulations 34
Preferences: - database with 20 experiments performed at FZRs cold water hammer test facility (CWHTF) - two discontinuities initially present in the pipe that propagate with different velocity. Transient: - overpressure accelerates a column of liquid water into vacuum at the closed vertical end of the pipe
p1
VALVE
p2 evacuation pressure
LV
E. Altstadt, H. Carl, R. Weiss, CWHTF - |Cold Water-Hammer Test Facility, Forschungszentrum Rossendorf.
WAHA-simulations 35
VALVE
p2 evacuation pressure
LV
Warnings: - absence of non-condensable gas model in the WAHA - no FSI effects considered
WAHA-simulations
36
CWHTF:
0.35
0.4
Time [s ]
WAHA-simulations 37
CWHTF:
0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35
0.4
Time [s ]
WAHA-simulations 38
CWHTF:
0.3
0.35
0.4
Time [s ]
WAHA-simulations 39
Steam tank
2 1
...
Steam
...
55 56 57 58
INITIAL CONDITIONS: steam temperature Ts = 470 K liquid temperature Tl = 295 K liquid velocity vl = 0.242 m/s pressure p = 14.5 bar
Boundary conditions: - right: steam tank - left: cold water intake (constant velocity) ...very complicated thermally controled transient
H.M. Prasser, G. Ezsol, G. Baranyai, PMK-2 water hammer tests, condensation caused by cold water injection into main steam-line of VVER.440-type PWR, WAHALoads project deliverable D48, 2004.
WAHA-simulations
59
40
KFKI exp.:
Transient: - liquid flows into the pipe (steam) - condensation rate increases and consequently increases relative vapor velocity over the liquid head - liquid-vapor surface becomes wavy - amplitude of the waves increase until the liquid slug is formed that captures the vapor bubble - condensation of the entrapped vapor bubble accelerates columns of liquid on both sides of the bubble - strong water hammer appears when the bubble is condensed and two liquid columns collide.
0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.5 1 1.5 2 2.5 3
Vapor
Liquid
Length [m]
Profile at t = 5.08 s
1 0.9
0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.5 1 1.5 2 2.5 3
Vapor bubble
Liquid slug
Vapor
WAHA-simulations
Length [m]
41
KFKI exp.:
120 100 80 60 40
detail
dispersed
Time [s ]
WAHA-simulations 42
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
Two-phase flow modelling 13) Hands on: simulation of two-phase water hammer transient and two-phase critical flow
by
WAHA-hands-on
ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS 11) WAHA code - mathematical model and numerical scheme 12) WAHA code - simulations 13) Hands on: simulation of two-phase water hammer transient and two-phase critical flow 14) Fluid-structure interaction in 1D piping systems DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME Lectures 15-18
WAHA-hands-on 2
WAHA-hands-on
PIPE
VALVE
Measuring point
nods 100
wch_nods 100
nods 0
wch_nods 0
WAHA-hands-on
90
velg
tf
tg 90 90 90
WAHA-hands-on
inlet
comp001g1 + + + + + + + + + + + + + + + + + + + + + + + + + + 0.003494 0.0032 0.0029 0.0024 0.0020 0.0017 0.0013 0.0008 0.0005 0.000350 0.0003183 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1 2 3 4 5 6 7 8 9 10 46 47
40 45
+ + + + + + + + + + + + +
outlet
1.3091682E-3 0. 1.3884127E-3 0. 1.4699855E-3 0. 1.5538868E-3 0. 1.6401168E-3 0. 1.7286747E-3 0. 1.8195612E-3 0. 1.9127764E-3 0. 2.0083198E-3 0. 2.1061913E-3 0. 2.2063916E-3 0. 2.30892E-3 2.413777E-3 0. 0. 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
48 49 50 51 52 53 54 55 56 57 58
35 30 25 20 15 10 5 0
+ + + + + + + + + +
+ +
59 60 61 62
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
Length [m]
0.9 +
+ +
1.1576643E-3 0. 1.232252E-3 0.
WAHA-hands-on
WAHA-hands-on
Technical University of Catalonia and Heat and Mass Transfer Technological Center, 2006
Seminar on
by
1D-piping-FSI
ONE-DIMENSIONAL SIMULATIONS OF FAST TRANSIENTS 11) WAHA code - mathematical model and numerical scheme 12) WAHA code - simulations 13) Hands on: simulation of two-phase water hammer transient and two-phase critical flow. 14) Fluid-structure interaction in 1D piping systems DNS OF THE PASSIVE SCALAR TRANSFER IN THE CHANNEL AND FLUME Lectures 15-18
1D-piping-FSI 2
1D-piping-FSI
1D-piping-FSI
Moving fluid
Pressure load
Deformed structure
FSI during fast transients: accidental condition Conventional simulation of the fast transient: NO FSI (stiff and supported pipe)
1.5 1
P re s s ure [MP a ]
0.5
-0.5 -1
-1.5 0
0.05
0.1
0.15
0.2
Time [s]
Pressure near the valve (rapid valve closure transient, full axial coupling, free valve)
1D-piping-FSI
1D-piping-FSI
Pressure near the rapidly closed valve (rapid valve closure transient, valve is fixed no jucntion coupling effect, only Poisson coupling pipe breathing
TANK
PIPE
Pipe properties: L = 20 m, R = 398.5 mm, e = 8 mm, E = 210 GPa, = 0.3, s = 7900 kg/m3
Inital flow direction
VALVE
Initial conditions: v = 1 m/s, p = 0 Pa, f = 1000 kg/m3
Measuring point
1D-piping-FSI
2.5
1
0.5
1.5
0.5
-0.5
-0.5
-1
-1
-1.5
-1.5
0.05
0.1
0.15 -2
0.2
Time [s ]
-2.5
0.5
1.5
2.5
3.5
Time [s ]
1D-piping-FSI
10
-Time-domain and frequency-domain analyses - Typical outcome of a time-domain analysis is a series of graphs showing how parameters vary in time. - Typical outcome of a frequencydomain analysis is a series of graphs highlighting the dominant frequencies in the response of various parameters. - Mathematically, time-domain and frequency-domain analyses contain the same information. It is possible, for example, to obtain frequency-domain results from a Fourier analysis of the output from a time-domain analysis. Inversely not always true.
1D-piping-FSI
1.5
0.5
-0.5
-1
-1.5
0.05
0.1
0.15
0.2
Time [s ]
14
fluid:
v p f + =0 t s
v 2 N x 1 2R p + 1 2 + = 0 K Ed EAt t s t
pipe:
Qy & u x N x = t At Rp t s
& R p u x 1 N x =0 EAt t Ed t s
Poisson coupling
Junction coupling relations pipe end Constant pressure (tank), rigidly anchored structure: Closed pipe, free structure: Closed pipe, free structure, rod impact:
p = const. , u z = 0
v = u z , A f p = At
1D-piping-FSI
z
, Qy =0 , M x =0
15
z
v = u z , A f p Y rod u z v 0, rod = At
VALVE
Initial conditions: v = 1 m/s, p = 0 Pa, f = 1000 kg/m3
Measuring point
1.5
0.5
0.5
-0.5
-0.5
-1
-1
-1.5 0
Time [s ]
1D-piping-FSI
-1.5 0
0.05
0.1
0.15
Time [s ]
16
0.2
2.5 2 1.5
P re s s ure le ft [MP a]
0.005
0.01
0.015
0.02
-2 0.025 1D-piping-FSI 0
0.005
0.01
0.015
0.02
170.025
Time [s ]
Time [s ]
( A +
t t
Af
& u y t
Qy s
=0
& z M z t I t t s
= Qy
18
2e+006
Calculation Experiment
0.02
0.005
0.01
0.015
0.02
1D-piping-FSI
19
Qy & u x N x = t s Rp
f
( A +
t I t
Af
& u y t
Qy s
Af p - N x Rp
& z M z t s
= Qy
Pre s s ure at re mo te e nd
Time [s ]
0.02 0 1D-piping-FSI
0.005
0.01
0.015
Time [s ]
21
0.02
PIPE 2 ELBOW
TANK
PIPE 1
=0 .3 9 = 85 m 0.3 , e , =8 t = 7 9 mm, 00 E kg = 2 /m 3 10
GP a
Valve is fixed
(multiplication fact. for deformations is 200)
Valve closure, initial pressure in the pipe is zero, fluid velocity v = 1 m/s
1D-piping-FSI
L, 2 R
22
0.4
Valve is free
0.2
Width [m]
-0.2
-0.4
Length [m]
Valve closure, initial pressure in the pipe is zero, fluid velocity v = 1 m/s
1D-piping-FSI
23
1D-piping-FSI
24
r r +B =0 A t z
C = A B
-1
r r +C =0 t z
The Jacobian matrix C has some very important properties: - it is analytically diagonalizable - the eigensystem is constant during the simulation due to the assumption of the single-phase flow and constant fluid density. These assumptions are generally not accurate! Consequence: -The model is suitable for numerical solutions with Method of Characteristics (MOC) MOC is most common method, other methods are mixed MOCFEM procedure, component synthesis method, and Godunovs method (WAHA).
1D-piping-FSI
25
- pressure in the cavity fixed at saturation - Condensation - when overpressure wave transverses a cavity, first it has to cause the cavity to collapse. The delay action associated with this behavior emulates the reduction of fluid wave speed and its dependency on the void fraction
- Godunov method: near future, coupling of Valentine's 8 equation model with WAHA code the result will be two-phase flow FSI coupling - Coupling of two codes using best market codes + coupling at fluidstructure interface (Newtons law)
1D-piping-FSI 26