Unstruct2D
1.0
Solution of 2-D Euler- and Navier-Stokes Equations on Unstructured Triangular Grids
|
#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 |
CONSVARS * | cv |
DEPVARS * | dv |
VISCDEPVARS * | dvLam |
Encompasses variables and functions related to fluid properties and to the dependent variables. Note that all values are given in SI units.
FluidProps::FluidProps | ( | ) |
Initializes variables related to fluid properties.
FluidProps::~FluidProps | ( | ) |
Finishes and cleans up the memory.
void FluidProps::AllocateMemory | ( | int | nNodes | ) |
Allocates all necessary memory.
nNodes | total number of grid nodes |
std::bad_alloc | failed 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.
nNodes | number 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.
i | node index |
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