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

#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
 

Detailed Description

Encompasses data and functions related to the application of boundary conditions. Topology of the boundaries itself is contained in the class Geometry.

Constructor & Destructor Documentation

BndConds::BndConds ( )

Initializes variables related to boundary conditions.

BndConds::~BndConds ( )

Finishes and cleans up the memory.

Member Function Documentation

void BndConds::AllocateMemory ( const Geometry geometry)

Allocates all necessary memory.

Parameters
geometrygeometrical data (number of boundary nodes at far-field)
Exceptions
std::bad_allocfailed 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.

Parameters
geometrygeometrical data
fluidPropsfluid properties
precondlow Mach-number preconditioning
void BndConds::Periodic ( const Geometry geometry,
CONSVARS  var[] 
)
static

Adds both parts of a conserved variables at all periodic boundaries. This function is utilized for residuals in TimeDiscr::Solve and in TimeDiscr::Irsmoo.

Parameters
geometrygeometrical data
varvariable of CONSVARS type
void BndConds::Periodic ( const Geometry geometry,
PRIMVARS  var[] 
)
static

Adds both parts of a primitive variables at all periodic boundaries. This function is utilized for gradients in SpaceDiscr::Gradients.

Parameters
geometrygeometrical data
varvariable of PRIMVARS type
void BndConds::Periodic ( const Geometry geometry,
REAL  var1[],
REAL  var2[] 
)
static

Adds both parts of two REAL variables at all periodic boundaries. This function is utilized for gradients of T in SpaceDiscr::GradientsVisc.

Parameters
geometrygeometrical data
var1first variable
var2second variable
void BndConds::Periodic ( const Geometry geometry,
int  var[] 
)
static

Adds both parts of an integer variable at all periodic boundaries. This function is utilized for number of contributions in TimeDiscr::Irsmoo.

Parameters
geometrygeometrical data
varvariable of int type
void BndConds::ZeroResiduals ( const Geometry geometry,
Equations  equsType,
CONSVARS  rhs[] 
)
static

Zeros out normal component of the residual at symmetry and at no-slip boundaries.

Parameters
geometrygeometrical data
equsTypeequations solved (Euler or Navier-Stokes)
rhsvector of residuals

Member Data Documentation

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)


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