Unstruct2D
1.0
Solution of 2-D Euler- and Navier-Stokes Equations on Unstructured Triangular Grids
|
#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] |
Encompasses data and functions related to temporal discretization of the governing equations (time stepping).
TimeDiscr::TimeDiscr | ( | ) |
Initializes data of temporal discretization.
TimeDiscr::~TimeDiscr | ( | ) |
Finishes and cleans up the memory.
void TimeDiscr::AllocateMemory | ( | int | nNodes | ) |
Allocates all necessary memory.
nNodes | total number of grid nodes |
std::bad_alloc | failed 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).
geometry | geometrical data |
fluidProps | fluid properties |
drho | change of the density residual (2-norm) |
drmax | maximum change of the density residual |
idrmax | index 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.
geometry | geometrical data |
spaceDiscr | spatial 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.
geometry | geometrical data |
fluidProps | fluid properties |
bndConds | boundary conditions |
spaceDiscr | spatial discretization |
precond | low Mach-number preconditioning |
void TimeDiscr::TimeStep | ( | const Geometry & | geometry, |
const FluidProps & | fluidProps, | ||
const Precond & | precond, | ||
int | order | ||
) |
Computes the maximum stable time step.
geometry | geometrical data |
fluidProps | fluid properties |
precond | low Mach-number preconditioning |
order | order of the spatial discretization (1 or 2) |
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