|
Unstruct2D
1.0
Solution of 2-D Euler- and Navier-Stokes Equations on Unstructured Triangular Grids
|
#include <output.h>
Public Member Functions | |
| Output () | |
| void | Flowfield (const Geometry &geometry, const FluidProps &fluidProps, const BndConds &bndConds, int iter) const |
| void | Surfaces (const Geometry &geometry, const FluidProps &fluidProps, const BndConds &bndConds, const SpaceDiscr &spaceDiscr, int iter) const |
| void | OpenConvergence () |
| void | WriteConvergence (int iter, REAL drho, REAL drmax, int idrmax, REAL cl, REAL cd, REAL cm, REAL mflow, REAL mfratio) |
| void | CloseConvergence () |
| std::string | GetVarName (int index) const |
| void | StoreFlowType (FlowType flowType) |
Public Attributes | |
| std::string | title |
| std::string | fnameFlow |
| std::string | fnameSurf |
| std::string | fnameConv |
| bool | varOn [MXQUANT] |
Static Public Attributes | |
| static const int | MXQUANT =13 |
| static const int | MXQFIELD =11 |
Encompasses data and functions required to output plot data and the convergence history. The plot data itself is provided by the class Solver.
| Output::Output | ( | ) |
Initializes data related to plot output.
| void Output::CloseConvergence | ( | ) |
Closes file with the convergence history.
| void Output::Flowfield | ( | const Geometry & | geometry, |
| const FluidProps & | fluidProps, | ||
| const BndConds & | bndConds, | ||
| int | iter | ||
| ) | const |
Writes out selected quantities for the whole flow field in Vis2D format.
| geometry | geometrical data |
| fluidProps | fluid properties |
| bndConds | boundary conditions |
| iter | current iteration |
| std::runtime_error | file cannot be opened |
|
inline |
Returns name of a plot variable as a string.
| index | index of the variable |
| void Output::OpenConvergence | ( | ) |
Opens file for the convergence history and writes the header.
| std::runtime_error | file cannot be opened |
|
inline |
Stores the type of flow for later use when saving flow results.
| flowType | type of flow (external or internal) |
| void Output::Surfaces | ( | const Geometry & | geometry, |
| const FluidProps & | fluidProps, | ||
| const BndConds & | bndConds, | ||
| const SpaceDiscr & | spaceDiscr, | ||
| int | iter | ||
| ) | const |
Writes out selected values at walls and symmetry boundaries in Vis2D format.
| geometry | geometrical data |
| fluidProps | fluid properties |
| bndConds | boundary conditions |
| spaceDiscr | spatial discretization |
| iter | current iteration |
| std::runtime_error | file cannot be opened |
| void Output::WriteConvergence | ( | int | iter, |
| REAL | drho, | ||
| REAL | drmax, | ||
| int | idrmax, | ||
| REAL | cl, | ||
| REAL | cd, | ||
| REAL | cm, | ||
| REAL | mflow, | ||
| REAL | mfratio | ||
| ) |
Writes current convergence results to a file.
| iter | iteration number |
| drho | change of the density residual (2-norm) |
| drmax | maximum change of the density residual |
| idrmax | index of the node with the largest residual |
| cl | lift coefficient |
| cd | drag coefficient |
| cm | pitching moment coefficient |
| mflow | average mass flow rate |
| mfratio | ratio of mass flow at outlet to mass flow at inlet |
| std::string Output::fnameConv |
convergence history (+ .v2d)
| std::string Output::fnameFlow |
flow field (+ 5 digit iteration number + .v2d)
| std::string Output::fnameSurf |
quantities along wall surface(s) (+ 5 digit iteration number + .v2d)
|
static |
no. of plot variables in the field (cf and Cp only at the boundaries)
|
static |
total number of plot variables
| std::string Output::title |
title of the simulation case
| bool Output::varOn[MXQUANT] |
on/off switches of the plot variables