#include <alsfvm/numflux/NumericalFluxCUDA.hpp>
|
| NumericalFluxCUDA (const grid::Grid &grid, alsfvm::shared_ptr< reconstruction::Reconstruction > &reconstruction, const simulator::SimulatorParameters ¶meters, alsfvm::shared_ptr< DeviceConfiguration > &deviceConfiguration) |
|
virtual void | computeFlux (const volume::Volume &conservedVariables, rvec3 &waveSpeed, bool computeWaveSpeed, volume::Volume &output, const ivec3 &start={0, 0, 0}, const ivec3 &end={0, 0, 0}) |
|
virtual size_t | getNumberOfGhostCells () |
|
virtual | ~NumericalFlux () |
|
◆ NumericalFluxCUDA()
template<class Flux , class Equation , size_t dimension>
◆ computeFlux()
template<class Flux , class Equation , size_t dimension>
virtual void alsfvm::numflux::NumericalFluxCUDA< Flux, Equation, dimension >::computeFlux |
( |
const volume::Volume & |
conservedVariables, |
|
|
rvec3 & |
waveSpeed, |
|
|
bool |
computeWaveSpeed, |
|
|
volume::Volume & |
output, |
|
|
const ivec3 & |
start = {0, 0, 0} , |
|
|
const ivec3 & |
end = {0, 0, 0} |
|
) |
| |
|
virtual |
Computes the numerical flux at each cell. This will compute the net flux in the cell, ie.
- Parameters
-
[in] | conservedVariables | the conservedVariables to read from (eg. for Euler: ) |
[out] | waveSpeed | the maximum wave speed in each direction |
[in] | computeWaveSpeed | should we compute the wave speeds? |
[out] | output | the output to write to |
[in] | start | (positive) the first index to compute the flux for |
[in] | end | (negative) the offset to on the upper part of the grid |
- Note
- this will calculate the extra variables on the fly.
Implements alsfvm::numflux::NumericalFlux.
◆ getNumberOfGhostCells()
template<class Flux , class Equation , size_t dimension>
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/stable/alsfvm/include/alsfvm/numflux/NumericalFluxCUDA.hpp