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

#include <timeDiscr.h>

Public Member Functions

 TimeDiscr ()
 
 ~TimeDiscr ()
 
void AllocateMemory (int nNodes)
 
void DensityChange (const Geometry &geometry, const FluidProps &fluidProps, REAL &drho, REAL &drmax, int &idrmax) const
 
void Irsmoo (const Geometry &geometry, SpaceDiscr &spaceDiscr)
 
void Solve (const Geometry &geometry, FluidProps &fluidProps, BndConds &bndConds, SpaceDiscr &spaceDiscr, const Precond &precond)
 
void TimeStep (const Geometry &geometry, const FluidProps &fluidProps, const Precond &precond, int order)
 

Public Attributes

TimeStepping timeStepping
 
int nIterIrs
 
int nrk
 
bool dissipOn [5]
 
REAL cfl
 
REAL epsIrs
 
REAL ark [5]
 
REAL betrk [5]
 

Detailed Description

Encompasses data and functions related to temporal discretization of the governing equations (time stepping).

Constructor & Destructor Documentation

TimeDiscr::TimeDiscr ( )

Initializes data of temporal discretization.

TimeDiscr::~TimeDiscr ( )

Finishes and cleans up the memory.

Member Function Documentation

void TimeDiscr::AllocateMemory ( int  nNodes)

Allocates all necessary memory.

Parameters
nNodestotal number of grid nodes
Exceptions
std::bad_allocfailed memory allocation
void TimeDiscr::DensityChange ( const Geometry geometry,
const FluidProps fluidProps,
REAL drho,
REAL drmax,
int &  idrmax 
) const

Computes of the 2-norm of the density change (density residual).

Parameters
geometrygeometrical data
fluidPropsfluid properties
drhochange of the density residual (2-norm)
drmaxmaximum change of the density residual
idrmaxindex of the node with the largest residual
void TimeDiscr::Irsmoo ( const Geometry geometry,
SpaceDiscr spaceDiscr 
)

Applies the central implicit smoothing method to the residuals by using Jacobi iteration.

Parameters
geometrygeometrical data
spaceDiscrspatial discretization
void TimeDiscr::Solve ( const Geometry geometry,
FluidProps fluidProps,
BndConds bndConds,
SpaceDiscr spaceDiscr,
const Precond precond 
)

Integrates the four basic equations (continuity, momentum and energy) by the explicit, multi-stage (Runge-Kutta) time-stepping scheme.

Parameters
geometrygeometrical data
fluidPropsfluid properties
bndCondsboundary conditions
spaceDiscrspatial discretization
precondlow Mach-number preconditioning
void TimeDiscr::TimeStep ( const Geometry geometry,
const FluidProps fluidProps,
const Precond precond,
int  order 
)

Computes the maximum stable time step.

Parameters
geometrygeometrical data
fluidPropsfluid properties
precondlow Mach-number preconditioning
orderorder of the spatial discretization (1 or 2)

Member Data Documentation

REAL TimeDiscr::ark[5]

stage coefficients

REAL TimeDiscr::betrk[5]

dissipation-blending coefficients

REAL TimeDiscr::cfl

CFL-number

bool TimeDiscr::dissipOn[5]

dissipation evaluation per stage (0=no, 1=yes)

REAL TimeDiscr::epsIrs

coefficient of implicit residual smoothing

int TimeDiscr::nIterIrs

number of Jacobi iterations (implicit residual smoothing)

int TimeDiscr::nrk

number of stages (Runge-Kutta scheme); max. = 5

TimeStepping TimeDiscr::timeStepping

switch between local and global time-stepping


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