Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTRODUCTION TO CFD
The Setup
PDE
90
ME 579 A
INTRODUCTION TO CFD
Eq. 10.4 a
FDE
Steps 1 to 4 are repeated until the flow-field variables approaches a
steady-state value
Second-order accuracy
Decode the U vector to obtain the primitive variables (Eq. 10.10)
10.3.4
Fig. 10.4
Step size in x direction:
Eq. 10.11
Step size in y direction
Eq. 10.12 to 10. 13
Time step (Courant-Friedrichs-Lewy criterion):
Eq. 10.16
Where: aIjj is the local speed of sound in meters per second; K is the
Courant number; K acts as a fudge factor
10.3.5
91
ME 579 A
INTRODUCTION TO CFD
Boundary Conditions
Case 1: leading edge (1,1)
No slip: u(1,1) = v(1,1) = 0
T(1,1) and p(1,1) are assumed at their respective free stream values
Case 2: Inflow/upper boundary
u, T, and p are assumed at their respective free stream values.
v=0
Case 3:surface of the plate
no-slip: u=v=0
T=Tw
P is calculated at the wall by extrapolating from the values at the two
points 2 and 3.
Case 4: outflow
All properties are calculated based on an extrapolation from two interior
points
10.4 Organization of the Navier-Stokes Code
10.4.1 Overview
Flow charts should be used
Fig. 10.6
The MAIN program drives the entire code
a). Establishing flow conditions, computational domain, and flow
properties
b). Marching the code in time
DYNVIS and THERMC are function subroutines for dynamic viscosity
and thermal conductivity
TAUXX, TAUXY, TAUYY, QX, and QY are for viscous effects
BC is for boundary conditions
92
ME 579 A
INTRODUCTION TO CFD
ME 579 A
INTRODUCTION TO CFD
(hyperbolic-parabolic)
and
94