Unstruct2D
1.0
Solution of 2-D Euler- and Navier-Stokes Equations on Unstructured Triangular Grids
|
#include <bndConds.h>
Public Member Functions | |
BndConds () | |
~BndConds () | |
void | AllocateMemory (const Geometry &geometry) |
void | BoundaryConditions (const Geometry &geometry, FluidProps &fluidProps, const Precond &precond) |
Static Public Member Functions | |
static void | Periodic (const Geometry &geometry, CONSVARS var[]) |
static void | Periodic (const Geometry &geometry, PRIMVARS var[]) |
static void | Periodic (const Geometry &geometry, REAL var1[], REAL var2[]) |
static void | Periodic (const Geometry &geometry, int var[]) |
static void | ZeroResiduals (const Geometry &geometry, Equations equsType, CONSVARS rhs[]) |
Public Attributes | |
FlowType | flowType |
bool | vortCorr |
REAL | machinf |
REAL | alpha |
REAL | pinf |
REAL | tinf |
REAL | rhoinf |
REAL | uinf |
REAL | vinf |
REAL | qinf |
REAL | cl |
REAL | ptinl |
REAL | ttinl |
REAL | betainl |
REAL | betaout |
REAL | p12rat |
REAL | pout |
Encompasses data and functions related to the application of boundary conditions. Topology of the boundaries itself is contained in the class Geometry.
BndConds::BndConds | ( | ) |
Initializes variables related to boundary conditions.
BndConds::~BndConds | ( | ) |
Finishes and cleans up the memory.
void BndConds::AllocateMemory | ( | const Geometry & | geometry | ) |
Allocates all necessary memory.
geometry | geometrical data (number of boundary nodes at far-field) |
std::bad_alloc | failed memory allocation |
void BndConds::BoundaryConditions | ( | const Geometry & | geometry, |
FluidProps & | fluidProps, | ||
const Precond & | precond | ||
) |
Sets boundary conditions at dummy points. In a first loop, b.c.'s at inlet, outlet and far-field are specified. In a second loop, b.c.'s are set for all solid walls.
geometry | geometrical data |
fluidProps | fluid properties |
precond | low Mach-number preconditioning |
Adds both parts of a conserved variables at all periodic boundaries. This function is utilized for residuals in TimeDiscr::Solve and in TimeDiscr::Irsmoo.
geometry | geometrical data |
var | variable of CONSVARS type |
Adds both parts of a primitive variables at all periodic boundaries. This function is utilized for gradients in SpaceDiscr::Gradients.
geometry | geometrical data |
var | variable of PRIMVARS type |
Adds both parts of two REAL variables at all periodic boundaries. This function is utilized for gradients of T in SpaceDiscr::GradientsVisc.
geometry | geometrical data |
var1 | first variable |
var2 | second variable |
|
static |
Adds both parts of an integer variable at all periodic boundaries. This function is utilized for number of contributions in TimeDiscr::Irsmoo.
geometry | geometrical data |
var | variable of int type |
|
static |
Zeros out normal component of the residual at symmetry and at no-slip boundaries.
geometry | geometrical data |
equsType | equations solved (Euler or Navier-Stokes) |
rhs | vector of residuals |
REAL BndConds::alpha |
angle of attack
REAL BndConds::betainl |
low angle at inlet (with x-axis, positive in the clock-wise direction)
REAL BndConds::betaout |
approximate outlet angle (utilized for the initial guess only)
REAL BndConds::cl |
lift coefficient (pressure forces only; used for vortex correction)
FlowType BndConds::flowType |
type of flow (external or internal)
REAL BndConds::machinf |
Mach-number at infinity (far-field)
REAL BndConds::p12rat |
ratio of inlet to outlet static pressure (initial guess only)
REAL BndConds::pinf |
static pressure at infinity
REAL BndConds::pout |
static pressure at outlet
REAL BndConds::ptinl |
total pressure at inlet
REAL BndConds::qinf |
total velocity (= SQRT(uinf**2+vinf**2))
REAL BndConds::rhoinf |
density at infinity
REAL BndConds::tinf |
static temperature at infinity
REAL BndConds::ttinl |
total temperature at inlet
REAL BndConds::uinf |
u-component of velocity vector at infinity
REAL BndConds::vinf |
v-component of velocity vector at infinity
bool BndConds::vortCorr |
far-field vortex correction (true or false)