ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
GradientGreenGauss Class Reference

Class for the Green-Gauss gradient method working on all mesh types. More...

#include <GradientGreenGauss.h>

Inherits Gradient.

Public Member Functions

 GradientGreenGauss ()
 
virtual ~GradientGreenGauss ()
 
void addGradInterface (Coord &grad, CellInterface &cellInterface, Cell &cell, double const &faceValue)
 Add the contribution of the interface to build the cell gradient.
 
virtual void computeGradients (Cell *cell, std::vector< Coord > &grads, const std::vector< Variable > &nameVariables, const std::vector< int > &numPhases)
 Compute gradients (temperature, velocity, density) of a cell.
 
- Public Member Functions inherited from Gradient
 Gradient ()
 
virtual ~Gradient ()
 
virtual const TypeGradgetType () const
 

Additional Inherited Members

- Protected Attributes inherited from Gradient
TypeGrad m_type
 

Detailed Description

Class for the Green-Gauss gradient method working on all mesh types.

Constructor & Destructor Documentation

◆ GradientGreenGauss()

GradientGreenGauss::GradientGreenGauss ( )

◆ ~GradientGreenGauss()

GradientGreenGauss::~GradientGreenGauss ( )
virtual

Member Function Documentation

◆ addGradInterface()

void GradientGreenGauss::addGradInterface ( Coord grad,
CellInterface cellInterface,
Cell cell,
double const &  faceValue 
)

Add the contribution of the interface to build the cell gradient.

Parameters
gradGradient to add the interface contribution
cellInterfaceCell interface of interest used to set outward normal
cellCell whose gradient must be calculated (here to access its element)
faceValueValue of the face interpolated using barycenter

◆ computeGradients()

void GradientGreenGauss::computeGradients ( Cell cell,
std::vector< Coord > &  grads,
const std::vector< Variable > &  nameVariables,
const std::vector< int > &  numPhases 
)
virtual

Compute gradients (temperature, velocity, density) of a cell.

Parameters
gradsArray of desired gradients, e.g. for temperature each component represents phase temperature and for velocity each component represents the gradient of a velocity component (grad(u), grad(v), grad(w))
nameVariablesName of the variable for which the gradient is calculated
numPhasesPhases number's

Reimplemented from Gradient.


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