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

Class for the finite difference like gradient method (only working on Cartesian mesh with/without AMR) More...

#include <GradientFiniteDifference.h>

Inherits Gradient.

Public Member Functions

 GradientFiniteDifference ()
 
virtual ~GradientFiniteDifference ()
 
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 finite difference like gradient method (only working on Cartesian mesh with/without AMR)

Constructor & Destructor Documentation

◆ GradientFiniteDifference()

GradientFiniteDifference::GradientFiniteDifference ( )

◆ ~GradientFiniteDifference()

GradientFiniteDifference::~GradientFiniteDifference ( )
virtual

Member Function Documentation

◆ computeGradients()

void GradientFiniteDifference::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 numbers

Reimplemented from Gradient.


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