Unstruct2D
1.0
Solution of 2-D Euler- and Navier-Stokes Equations on Unstructured Triangular Grids
|
#include <solver.h>
Public Member Functions | |
Solver () | |
void | InitConstants () |
void | InitSolution () |
void | ReadSolution () |
void | WriteSolution () |
void | Convergence (Output &output) |
bool | Converged () |
Public Attributes | |
BndConds | bndConds |
FluidProps | fluidProps |
Geometry | geometry |
SpaceDiscr | spaceDiscr |
TimeDiscr | timeDiscr |
Precond | precond |
bool | restUse |
int | maxIter |
int | outStep |
int | iter |
REAL | convTol |
std::string | fnameRsti |
std::string | fnameRsto |
Encompasses variables and functions related to the flow solver. It takes care of input, output and initialization of main solution and convergence data.
Solver::Solver | ( | ) |
Initializes variables related to flow region and to convergence history.
|
inline |
Returns true if solver has converged, otherwise false.
void Solver::Convergence | ( | Output & | output | ) |
Monitors the convergence, prints it out and stores it in a file. For external flow, it also computes and prints out the lift, the drag and the moment coefficients. For internal flow, it computes and prints out the mass flow and the mass flow ratio.
void Solver::InitConstants | ( | ) |
Initializes constants used by the solver.
void Solver::InitSolution | ( | ) |
Initializes conservative variables (initial guess). Ideal gas is assumed (constant gas properties used everywhere).
void Solver::ReadSolution | ( | ) |
Reads in previous solution in order to restart the simulation. It also reads the initial residual and the number of previous iterations.
std::runtime_error | failed logic check or read problem |
void Solver::WriteSolution | ( | ) |
Stores the current flow solution together with the initial residual and the actual number of iterations.
std::runtime_error | file cannot be opened |
BndConds Solver::bndConds |
boundary conditions
REAL Solver::convTol |
convergence criterion (2-norm of density change for which the iteration process is stopped)
FluidProps Solver::fluidProps |
fluid properties
std::string Solver::fnameRsti |
file with restart solution - input
std::string Solver::fnameRsto |
file with restart solution - output
Geometry Solver::geometry |
geometry and metrics
int Solver::iter |
actual iteration number
int Solver::maxIter |
max. number of iterations
int Solver::outStep |
number of iterations between solution dumps
Precond Solver::precond |
low Mach-number preconditioning
bool Solver::restUse |
use of previous solution for restart (true, false)
SpaceDiscr Solver::spaceDiscr |
spatial discretization
TimeDiscr Solver::timeDiscr |
temporal discretization