ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
Tools.h File Reference
#include "Eos/Eos.h"
Include dependency graph for Tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Tools
 Class for tools. More...

Typedefs

template<class Type>
using TypeMeshContainer = std::vector<Type>
 Template for the type of the mesh container (std::list for now, but may change to something else if wanted).

Enumerations

enum  Prim { vecPhases , vecPhasesO2 , vecSlopes , resume }
 Enumeration for the primitive-variable type (usefull for second order, slopes, etc.). More...
enum  Axis { X , Y , Z }
 Enumeration for the axes (X, Y and Z for the axes in the x-, y- and z-direction). More...
enum  TypeOutput { GNU , VTK , VTKHDF }
 Enumeration for the type of output (GNU, VTK, VTKDF). More...
enum  TypeM { REC , UNS , AMR }
 Enumeration for the type of mesh (REC: rectilinear, UNS: unstructured, AMR: adaptative mesh refinement). More...
enum  TypeData { FLOAT , DOUBLE , INT , CHAR }
 Enumeration for the type of data (FLOAT, DOUBLE, INT, CHAR). More...
enum  TypeGO { VERTEX , LINE , PLAN }
 Enumeration for the type of geometric object (VERTEX, LINE, PLAN). More...
enum  TypeBC {
  NONREFLECTING = 1 , WALL = 2 , OUTLETPRESSURE = 3 , INLETINJSTAGSTATE = 4 ,
  INLETTANK = 5 , SYMMETRY = 6 , INLETINJTEMP = 7 , NULLFLUX = 8 ,
  OUTLETMASSFLOW = 9 , PERIODIC = 10 , MOVINGWALL = 11
}
 Enumeration for the type of boundary. More...
enum  VarBoundary {
  p , rho , velU , velV ,
  velW , SIZE = (velW + 1)
}
 Enumeration for the variable to extract on a boundary. More...
enum  TypeBCHeat { ADIABATIC = 0 , IMPOSEDTEMP = 1 , IMPOSEDFLUX = 2 }
 Enumeration for the heat type of wall boundary (ADIABATIC, IMPOSEDTEMP, IMPOSEDFLUX). More...
enum  TypeRelax { U = 0 , P = 1 , PT = 2 , PTMU = 3 }
 Enumeration for the type of relaxation (P, PT, PTMu). More...
enum  TypeGrad { FD , GG }
 Enumeration for the gradient method (Finite-Difference (FD), Green-Gauss (GG)). More...
enum  PhaseType { LIQ = 0 , VAP = 1 }
 Enumeration for the phase index of a liquid/vapor couple. More...
enum class  SimulationOrder { first , second }
 Enumeration for the scheme order of the simulation. More...
enum  LimiterType { NONE = 0 , MINMOD = 1 , SUPERBEE = 2 }
 Enumeration for the type of second order limiter (NS only). More...
enum class  Variable {
  transport , pressure , density , alpha ,
  velocityMag , velocityU , velocityV , velocityW ,
  temperature , QPA , lambda , cobaseXX ,
  cobaseXY , cobaseXZ , cobaseYX , cobaseYY ,
  cobaseYZ , cobaseZX , cobaseZY , cobaseZZ
}
 Enumeration for the flow variables. More...
enum class  TypeContactAreas { symmetric , nonsymmetric }
 Enumeration for the type of contact areas for the DEM. More...

Functions

template<typename T>
int sign (T val)
 Template for type-safe sign function.
template<class T>
void destroy (T *&p)
 Template for deallocation with pointer zeroing.
template<class T>
void destroy_array (T *&p)
 Template for deallocation with pointer zeroing.

Variables

Tools * TB
SimulationOrder simulationOrder
 Precision of the scheme (first order or second order).
int numberPhases
int numberSolids
int numberTransports
bool turbulenceActivated
int turbulenceNumQPA
double sum_u2v2w2
long nCells
double initialSoundSpeed
double initialConductivity
double initialViscosity

Typedef Documentation

◆ TypeMeshContainer

template<class Type>
using TypeMeshContainer = std::vector<Type>

Template for the type of the mesh container (std::list for now, but may change to something else if wanted).

Enumeration Type Documentation

◆ Axis

enum Axis

Enumeration for the axes (X, Y and Z for the axes in the x-, y- and z-direction).

Enumerator
X 
Y 
Z 

◆ LimiterType

Enumeration for the type of second order limiter (NS only).

Enumerator
NONE 
MINMOD 
SUPERBEE 

◆ PhaseType

enum PhaseType

Enumeration for the phase index of a liquid/vapor couple.

Enumerator
LIQ 
VAP 

◆ Prim

enum Prim

Enumeration for the primitive-variable type (usefull for second order, slopes, etc.).

Enumerator
vecPhases 
vecPhasesO2 
vecSlopes 
resume 

◆ SimulationOrder

enum class SimulationOrder
strong

Enumeration for the scheme order of the simulation.

Enumerator
first 
second 

◆ TypeBC

enum TypeBC

Enumeration for the type of boundary.

Enumerator
NONREFLECTING 
WALL 
OUTLETPRESSURE 
INLETINJSTAGSTATE 
INLETTANK 
SYMMETRY 
INLETINJTEMP 
NULLFLUX 
OUTLETMASSFLOW 
PERIODIC 
MOVINGWALL 

◆ TypeBCHeat

enum TypeBCHeat

Enumeration for the heat type of wall boundary (ADIABATIC, IMPOSEDTEMP, IMPOSEDFLUX).

Enumerator
ADIABATIC 
IMPOSEDTEMP 
IMPOSEDFLUX 

◆ TypeContactAreas

enum class TypeContactAreas
strong

Enumeration for the type of contact areas for the DEM.

Enumerator
symmetric 
nonsymmetric 

◆ TypeData

enum TypeData

Enumeration for the type of data (FLOAT, DOUBLE, INT, CHAR).

Enumerator
FLOAT 
DOUBLE 
INT 
CHAR 

◆ TypeGO

enum TypeGO

Enumeration for the type of geometric object (VERTEX, LINE, PLAN).

Enumerator
VERTEX 
LINE 
PLAN 

◆ TypeGrad

enum TypeGrad

Enumeration for the gradient method (Finite-Difference (FD), Green-Gauss (GG)).

Enumerator
FD 
GG 

◆ TypeM

enum TypeM

Enumeration for the type of mesh (REC: rectilinear, UNS: unstructured, AMR: adaptative mesh refinement).

Enumerator
REC 
UNS 
AMR 

◆ TypeOutput

enum TypeOutput

Enumeration for the type of output (GNU, VTK, VTKDF).

Enumerator
GNU 
VTK 
VTKHDF 

◆ TypeRelax

enum TypeRelax

Enumeration for the type of relaxation (P, PT, PTMu).

Enumerator
U 
P 
PT 
PTMU 

◆ VarBoundary

Enumeration for the variable to extract on a boundary.

Enumerator
p 
rho 
velU 
velV 
velW 
SIZE 

◆ Variable

enum class Variable
strong

Enumeration for the flow variables.

Enumerator
transport 
pressure 
density 
alpha 
velocityMag 
velocityU 
velocityV 
velocityW 
temperature 
QPA 
lambda 
cobaseXX 
cobaseXY 
cobaseXZ 
cobaseYX 
cobaseYY 
cobaseYZ 
cobaseZX 
cobaseZY 
cobaseZZ 

Function Documentation

◆ destroy()

template<class T>
void destroy ( T *& p)
inline

Template for deallocation with pointer zeroing.

Here is the caller graph for this function:

◆ destroy_array()

template<class T>
void destroy_array ( T *& p)
inline

Template for deallocation with pointer zeroing.

Here is the caller graph for this function:

◆ sign()

template<typename T>
int sign ( T val)

Template for type-safe sign function.

Here is the caller graph for this function:

Variable Documentation

◆ initialConductivity

double initialConductivity
extern

◆ initialSoundSpeed

double initialSoundSpeed
extern

◆ initialViscosity

double initialViscosity
extern

◆ nCells

long nCells
extern

◆ numberPhases

int numberPhases
extern

◆ numberSolids

int numberSolids
extern

◆ numberTransports

int numberTransports
extern

◆ simulationOrder

SimulationOrder simulationOrder
extern

Precision of the scheme (first order or second order).

◆ sum_u2v2w2

double sum_u2v2w2
extern

◆ TB

Tools* TB
extern

◆ turbulenceActivated

bool turbulenceActivated
extern

◆ turbulenceNumQPA

int turbulenceNumQPA
extern