Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
#include <alsfvm/numflux/NumericalFluxCPU.hpp>
Public Member Functions | |
NumericalFluxCPU (const grid::Grid &grid, alsfvm::shared_ptr< reconstruction::Reconstruction > &reconstruction, const alsfvm::shared_ptr< simulator::SimulatorParameters > &simulatorParameters, 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 () |
The class to compute numerical flux on the CPU The template argument Flux is used to choose the concrete flux The template argument dimension is to choose the correct dimension (1 up to and including 3 is supported).
alsfvm::numflux::NumericalFluxCPU< Flux, Equation, dimension >::NumericalFluxCPU | ( | const grid::Grid & | grid, |
alsfvm::shared_ptr< reconstruction::Reconstruction > & | reconstruction, | ||
const alsfvm::shared_ptr< simulator::SimulatorParameters > & | simulatorParameters, | ||
alsfvm::shared_ptr< DeviceConfiguration > & | deviceConfiguration | ||
) |
|
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 |
Implements alsfvm::numflux::NumericalFlux.
|
virtual |
Implements alsfvm::numflux::NumericalFlux.