Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
#include <alsfvm/numflux/NumericalFlux.hpp>
Public Member Functions | |
virtual | ~NumericalFlux () |
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})=0 |
virtual size_t | getNumberOfGhostCells ()=0 |
Base class for all numerical fluxes.
|
inlinevirtual |
|
pure virtual |
Computes the numerical flux at each cell. This will compute the net flux in the cell, ie.
[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 |
Implemented in alsfvm::numflux::NumericalFluxCPU< Flux, Equation, dimension >, and alsfvm::numflux::NumericalFluxCUDA< Flux, Equation, dimension >.
|
pure virtual |
Implemented in alsfvm::numflux::NumericalFluxCPU< Flux, Equation, dimension >, and alsfvm::numflux::NumericalFluxCUDA< Flux, Equation, dimension >.