Académique Documents
Professionnel Documents
Culture Documents
UNICAMP
∂
∂t
[ r
]
(ρφ ) + ∇ ⋅ ρVφ − Γ∇φ = S φ + S b1 + S b 2 + S b 3 + ...
•Sφ represents conventionally recognized source terms, such as
pressure gradients or viscous heating terms. These are 'built-in'
to EARTH.
• Sb1 etc. represent various boundary conditions. These may be
present only in certain regions of the domain. More terms of this
kind may be also be present in other regions of the domain, and
these regions may overlap.
BOUNDARY CONDITIONS x SOURCE TERMS
UNICAMP
External information
link thru b.c. N
transmitted thru b.c.
n
W w P e E Boundary cells
s
y Cells inside domain
S
x
GENERIC FORM TO DIFFUSIVE & CONVECTIVE FLUXES
UNICAMP
S = −T ⋅ C ⋅ [Value − φP ]
DISCRETIZED EQS. &
UNICAMP SOURCE TERMS REPRESENTATION
• In fact any kind of boundary conditions and source terms can be
expressed on the form S = +TC (V - φ), not only the diffusive and
convective terms.
• The plus (+) sign in front of S is because in PHOENICS the source
term always appears on the r.h.s. of the transport equation.
• Representing the external and internal links by TC(V - φ), the
discretized equation takes the form:
∑ ai (φi − φP ) + ∑ TC(V − φP ) = 0
N,S,W ,E,H,L,T
144424443 1PATCHES 44424443
Internal Links Sources & B.C.
The ´where´ and ´when´ definitions for the B.C. are set thru
PATCH command defined as:
• FIXVAL fix the value of the variable at the center of the cell.
•Considering a scalar (temperature) one may have as b.c. the
temperature value on the west face, not on P. One have two ways
to go:
(1) use a fine grid where the difference between Tw and TP is
negligible and employ the FIXVAL practice;
(2) set the face temperature.
To close the overall energy balance, one has to specify the heat
flux on the west face as:
δwP
k
Q = A w (Tw − TP ) w
{ δ
wP 14243 P
T 123 V − φ
C
x
COMMENT ABOUT THE LINEAR B.C. PRACTICE
UNICAMP
Q = AH(Text − TP ) if Tw ≅ TP
or if the cell Biot = δwPH/k <<1 means that the conductivity thermal
resistance is much smaller than the convective resistance. One
can control Bi size by choosing a grid which results in a small δ.
•The other way to fix it is to insert the total heat transfer resistance
k Text
Q = A w H + (Text − TP ) w P
{ δ wP 14243
T 14243 V −φ
C
LAMINAR WALL BOUNDARY CONDITION
UNICAMP
The force exerted by the shear stresses on a stationary wall, in laminar flow, is
expressed by:
dU 0 − Uwall
Fwall = − A ⋅ τ = A ⋅ µ = A ⋅ (ENUL ⋅ RHO1) ⋅
dy wall δy
• where area A is the cell face area, δy is the distance from the cell face to the
cell center and Uwall is the velocity on the first node next to the wall.
(ENUL ⋅ RHO1) ,
• This can be put into form TC(V-φ) if : T = A, C = V =0
δy
• The problem with this approach is that the density and laminar viscosity may
be varying, whilst the distance to the wall will change as the grid is refined, and
indeed may change from cell to cell in a BFC grid. This simple method is
therefore not recommended, as all the quantities causing problems to the user
are known to EARTH.
• A special PATCH type is provided which ENUL ⋅ RHO1
T=A
automatically sets: δy
MOMENTUM LAMINAR WALL BOUNDARY CONDITION
UNICAMP
• The coefficient, CO, is then a further multiplier, which is usually set to 1.0.
• These special PATCH types are NWALL, SWALL, EWALL, WWALL, HWALL
and LWALL.
Example From The Library: The stationary and moving walls in case 921 are
specified as shown:
Moving wall at South side of domain at –0.1 m/s
PATCH (MOVING,SWALL,1,NX,1,1,1,1,1,1)
COVAL(MOVING,U1,1.0,-WALLVEL)
• Note that the coefficients have all been set to 1.0, and the values to the wall
surface values. This suffices for momentum laminar wall conditions.
ENTHALPY LAMINAR WALL B.C.
UNICAMP
• The wall b.c. deserves special attention when the enthalpy equation is in
use. Two observations apply:
(1) at the wall there is diffusion of heat and not enthalpy. Therefore the heat
flux at the wall is:
Q = A ⋅ k ⋅ [dT dy]wall
(2) the diffusion coefficient in PHOENICS is always:
Γ = RHO1*ENUL/PRNDTL(φ). If PRANDTL(H1) is set to (ν/α), then
T6
in 4
* WALL
447command
4448
dT (ENUL ⋅ RHO1) 1
Q = Ak = A⋅ ⋅ [Twall − TP ]
dy wall δy PRNDTL
k k
= A ⋅ [(Hwall CP ) − (HP CP )] = A ⋅ [Twall − TP ]
δy δy
• Note that the temperature is deduced from the ratio H1/Cp
TEMPERATURE (TEM1) LAMINAR WALL B.C.
UNICAMP
Group 9. Properties
RHO1 = 1.189000E+00; CP1 = 1.005000E+03
ENUL = 1.544000E-05 ;ENUT = 1.000000E-03
PRNDTL(TEM1) = -2.580000E-02
[( )( )]
flux set as b.c.
D* = ρVn* An − ρVs* A s + ρUe* A e − ρU*w A w Type T = Area
Coefficient CP
These velocities are
evaluated internally
INFLOW BOUNDARY CONDITION TC(V-φ) FORM
UNICAMP
• The sign convention is that inflows are +ve, outflows are -ve. A
fixed outflow rate can thus be fixed by setting a negative mass
flow.
INFLOW BOUNDARY CONDITION
UNICAMP - Example from the Library Case 274 -
Library case 274 concerns the flow over a
simplified van geometry. The inflow
boundary at the low end of the solution
domain is represented as:
Note that for an INLET, the VALUE command for P1 sets the mass flux. This is
often set as RHOIN*VELIN, the (inlet density) * (inlet velocity).
The mass flux is fixed, and the in-cell pressure is allowed to float.
The VALUE command for W1 sets the velocity of the inflowing stream. In this
case all other variables are taken to be 0.0 at the inlet. If they are not, then
VALUE commands would have to be added.
FIXING PRESSURE &
UNICAMP THE PRESSURE EQUATION
• For example, suppose one wants to fix pressure at the east boundary. There
will be no ´east´ link, therefore the term (P’P-P’E) does not exist neither the
velocities U*E and U´E.
• In fact UE is expressed in terms of the pressure difference:
ρUe = CP*(PEXT – PP)
• Observe, ρUe is determined in terms of the Pressure difference (external
minus pressure point P) not its correction, P´.
does not exist
( ) (
− D* = aE PP´ − PE´ − a W PP´ − PW
´ ) (
+ aN PP´ − PN
´ ) (
− a S PP´ − PS
´ )
= CP(Pext-PP)Ae
[( )(
D* = ρVn* An − ρVs* A s + ρUe* A e − ρU*w A w )]
These velocities are
evaluated internally
FIXED PRESSURE BOUNDARY CONDITION
UNICAMP