The CellComputer class defines some useful per cell computations.
More...
#include <alsfvm/equation/CellComputer.hpp>
The CellComputer class defines some useful per cell computations.
◆ ~CellComputer()
alsfvm::equation::CellComputer::~CellComputer |
( |
| ) |
|
|
virtual |
Default destructor to allow inheriting classes to have destructors.
◆ computeExtraVariables()
virtual void alsfvm::equation::CellComputer::computeExtraVariables |
( |
const volume::Volume & |
conservedVariables, |
|
|
volume::Volume & |
extraVariables |
|
) |
| |
|
pure virtual |
◆ computeFromPrimitive()
virtual void alsfvm::equation::CellComputer::computeFromPrimitive |
( |
const volume::Volume & |
primtiveVariables, |
|
|
volume::Volume & |
conservedVariables |
|
) |
| |
|
pure virtual |
◆ computeMaxWaveSpeed()
virtual real alsfvm::equation::CellComputer::computeMaxWaveSpeed |
( |
const volume::Volume & |
conservedVariables, |
|
|
size_t |
direction |
|
) |
| |
|
pure virtual |
Computes the maximum wavespeed
- Parameters
-
conservedVariables | the conserved variables (density, momentum, Energy for Euler) |
extraVariables | the extra variables (pressure and velocity for Euler) |
direction | the direction to find the wave speed for
direction | description |
0 | x-direction |
1 | y-direction |
2 | z-direction |
|
- Returns
- the maximum wave speed (absolute value)
Implemented in alsfvm::equation::CPUCellComputer< Equation >, and alsfvm::equation::CUDACellComputer< Equation >.
◆ obeysConstraints()
virtual bool alsfvm::equation::CellComputer::obeysConstraints |
( |
const volume::Volume & |
conservedVariables | ) |
|
|
pure virtual |
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/stable/alsfvm/include/alsfvm/equation/CellComputer.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/stable/alsfvm/src/equation/CellComputer.cpp