Alsvinn  0.5.3
The fast FVM simulator with UQ support
Public Member Functions | List of all members
alsfvm::reconstruction::ReconstructionCUDA< ReconstructionType, Equation > Class Template Reference

#include <alsfvm/reconstruction/ReconstructionCUDA.hpp>

Inheritance diagram for alsfvm::reconstruction::ReconstructionCUDA< ReconstructionType, Equation >:
alsfvm::reconstruction::Reconstruction

Public Member Functions

 ReconstructionCUDA (const simulator::SimulatorParameters &simulatorParameters)
 
virtual void performReconstruction (const volume::Volume &inputVariables, size_t direction, size_t indicatorVariable, volume::Volume &leftOut, volume::Volume &rightOut, const ivec3 &start={0, 0, 0}, const ivec3 &end={0, 0, 0})
 
virtual size_t getNumberOfGhostCells ()
 getNumberOfGhostCells returns the number of ghost cells we need for this computation More...
 
- Public Member Functions inherited from alsfvm::reconstruction::Reconstruction
virtual ~Reconstruction ()
 

Detailed Description

template<class ReconstructionType, class Equation>
class alsfvm::reconstruction::ReconstructionCUDA< ReconstructionType, Equation >

This is meant to do arbitrary reconstruction on the CPU, given a suitable template argument

Constructor & Destructor Documentation

◆ ReconstructionCUDA()

template<class ReconstructionType , class Equation >
alsfvm::reconstruction::ReconstructionCUDA< ReconstructionType, Equation >::ReconstructionCUDA ( const simulator::SimulatorParameters simulatorParameters)

Member Function Documentation

◆ getNumberOfGhostCells()

template<class ReconstructionType , class Equation >
virtual size_t alsfvm::reconstruction::ReconstructionCUDA< ReconstructionType, Equation >::getNumberOfGhostCells ( )
virtual

getNumberOfGhostCells returns the number of ghost cells we need for this computation

Returns
order.

Implements alsfvm::reconstruction::Reconstruction.

◆ performReconstruction()

template<class ReconstructionType , class Equation >
virtual void alsfvm::reconstruction::ReconstructionCUDA< ReconstructionType, Equation >::performReconstruction ( const volume::Volume inputVariables,
size_t  direction,
size_t  indicatorVariable,
volume::Volume leftOut,
volume::Volume rightOut,
const ivec3 start = {0, 0, 0},
const ivec3 end = {0, 0, 0} 
)
virtual

Performs reconstruction.

Parameters
[in]inputVariablesthe variables to reconstruct.
[in]directionthe direction:
direction explanation
0 x-direction
1 y-direction
2 z-direction
[in]indicatorVariablethe variable number to use for stencil selection. We will determine the stencil based on inputVariables->getScalarMemoryArea(indicatorVariable).
[out]leftOutat the end, will contain the left interpolated values for all grid cells in the interior.
[out]rightOutat the end, will contain the right interpolated values for all grid cells in the interior.
[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::reconstruction::Reconstruction.


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