ECOGEN 6.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.

Collaboration diagram for GradientFiniteDifference:
[legend]

Public Member Functions

 GradientFiniteDifference ()
 ~GradientFiniteDifference () override
void computeGradients (Cell *cell, std::vector< Coord > &grads, const std::vector< Variable > &nameVariables, const std::vector< int > &numPhases) override
 Compute gradients (temperature, velocity, density) of a cell.
Public Member Functions inherited from Gradient
 Gradient ()
virtual ~Gradient ()
virtual const TypeGrad & getType () 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 ( )
override

Member Function Documentation

◆ computeGradients()

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

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.

Here is the call graph for this function:

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