Introduction to Computational Fluid Dynamics

Appendix C: 2D Cartesian Code

C.1 Structure of the Code

The structure of the 2D Cartesian code is similar to that of the ID conduction code. The code is again divided into two parts: The problem-dependent user part containing files COM2D.FOR and USER2D.FOR and the problem independent library part that contains the LIB2D.FOR file. [1] The listings of each file are given at the end of this appendix. The list of variable names with their meanings is given in Table C.1.

Table C.1: List of variables for 2D Cartesian code.

Variable

Meaning

AE, AW

Array containing east and west coefficients

AN, AS

Array containing north and south coefficients

AMW

Mass influx at the wall (kg/m 2 ?s)

AP

Array containing coefficient of ? P

AP1

Array containing coefficient of

APU, APV

Array containing coefficient of u P and v P

AXISYMM

Logical ?=.TRUE. refers to axisymmetric case

CAPPA

Constant in log law of the wall

CC

Convergence criterion

CCTM

Stop condition for unsteady problem

CD1

Constant in e ?? turbulence model

CD2

Constant in e ?? turbulence model

CONMAS

Logical refers to imposition of mass balance at exit plane

D

Array for turbulent energy dissipation rate ?

DELT

Time step (s)

DENSIT

Reference density (kg/m 3)

DO

Array for ? at old time

DPI

Periodic pressure change in I direction

DP2

Periodic pressure change in J direction

DXMI

Array containing increment X (I) ?X ( I ?1)

DXP

Array containing increment XC ( I

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Arithmetic Logic Units (ALU)
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.