Unstruct2D  1.0
Solution of 2-D Euler- and Navier-Stokes Equations on Unstructured Triangular Grids
 All Classes Files Functions Variables Typedefs Enumerations Macros
FluidProps Class Reference

#include <fluidProps.h>

Public Member Functions

 FluidProps ()
 
 ~FluidProps ()
 
void AllocateMemory (int nNodes)
 
void DependentVarsAll (int nNodes)
 
void DependentVarsOne (int i)
 

Public Attributes

Equations equsType
 
REAL gamma
 
REAL cpgas
 
REAL prlam
 
REAL renum
 
REAL refVel
 
REAL refRho
 
REAL refVisc
 
CONSVARScv
 
DEPVARSdv
 
VISCDEPVARSdvLam
 

Detailed Description

Encompasses variables and functions related to fluid properties and to the dependent variables. Note that all values are given in SI units.

Constructor & Destructor Documentation

FluidProps::FluidProps ( )

Initializes variables related to fluid properties.

FluidProps::~FluidProps ( )

Finishes and cleans up the memory.

Member Function Documentation

void FluidProps::AllocateMemory ( int  nNodes)

Allocates all necessary memory.

Parameters
nNodestotal number of grid nodes
Exceptions
std::bad_allocfailed memory allocation
void FluidProps::DependentVarsAll ( int  nNodes)

Computes values of dependent variables (pressure, temperature, speed of sound, specific heat ratio, specific heat coeff. at const. pressure) from conservative variables at all grid points. Additionally, laminar viscosity and heat conductivity coefficients are computed in the case of viscous flow.

Parameters
nNodesnumber of nodes
void FluidProps::DependentVarsOne ( int  i)

Computes values of dependent variables (pressure, temperature, speed of sound, specific heat ratio, specific heat coeff. at const. pressure) from conservative variables at the node i. Additionally, laminar viscosity and heat conductivity coefficients are computed in the case of viscous flow.

Parameters
inode index

Member Data Documentation

REAL FluidProps::cpgas

specific heat coefficient at constant pressure

CONSVARS* FluidProps::cv

conserved variables (rho, rho*u, rho*v, rho*E)

DEPVARS* FluidProps::dv

dependent variables (p, T, c, gamma, cp

VISCDEPVARS* FluidProps::dvLam

dependent variables for laminar flow (µL, kL)

Equations FluidProps::equsType

equations solved (Euler or Navier-Stokes)

REAL FluidProps::gamma

ratio of specific heat coefficients

REAL FluidProps::prlam

laminar Prandtl number

REAL FluidProps::refRho

reference density (internal flow only; for external flow computed from the far-field boundary)

REAL FluidProps::refVel

reference velocity (internal flow only; for external flow computed from the far-field boundary)

REAL FluidProps::refVisc

reference dynamic viscosity coefficient (computed from renum, refVel, cref and refRho)

REAL FluidProps::renum

Reynolds number


The documentation for this class was generated from the following files: