|
Finite Volume Solver
prototype
A framework to build finite volume solvers for the AG Klein at the Freie Universität Berlin.
|
This is a wrapper class which dispatches a given base method object and dispatches SAMRAI typed patches. More...
#include <FluxMethodAdapter.hpp>
Public Types | |
| using | Equation = std::decay_t< decltype(std::declval< const BaseMethod & >().GetEquation())> |
| using | Conservative = ::fub::Conservative< Equation > |
| using | Complete = ::fub::Complete< Equation > |
Public Member Functions | |
| FluxMethodAdapter (Tag, const BaseMethod &base) | |
| FluxMethodAdapter (Tag, BaseMethod &&base) | |
| Duration | ComputeStableDt (IntegratorContext &context, int level, Direction dir) |
| Extracts the state variables patch data views including its ghost cells and compute a stable time step size in specified direction and refinement level. More... | |
| void | ComputeNumericFluxes (IntegratorContext &context, int level, Duration dt, Direction dir) |
| void | ComputeNumericFluxes (span< SAMRAI::pdat::SideData< double > * > fluxes, span< SAMRAI::pdat::CellData< double > const * > cells, double dx, Duration dt, Direction dir) |
| Duration | ComputeStableDt (span< SAMRAI::pdat::CellData< double > const * > data, double dx, Direction dir) |
This is a wrapper class which dispatches a given base method object and dispatches SAMRAI typed patches.
The base method is expected to act on View objects of equation states.
| using fub::samrai::FluxMethodAdapter< Tag, BaseMethod >::Complete = ::fub::Complete<Equation> |
| using fub::samrai::FluxMethodAdapter< Tag, BaseMethod >::Conservative = ::fub::Conservative<Equation> |
| using fub::samrai::FluxMethodAdapter< Tag, BaseMethod >::Equation = std::decay_t<decltype(std::declval<const BaseMethod&>().GetEquation())> |
|
inline |
|
inline |
| void fub::samrai::FluxMethodAdapter< Tag, BaseMethod >::ComputeNumericFluxes | ( | IntegratorContext & | context, |
| int | level, | ||
| fub::Duration | dt, | ||
| fub::Direction | dir | ||
| ) |
| void fub::samrai::FluxMethodAdapter< Tag, BaseMethod >::ComputeNumericFluxes | ( | span< SAMRAI::pdat::SideData< double > * > | fluxes, |
| span< SAMRAI::pdat::CellData< double > const * > | cells, | ||
| double | dx, | ||
| Duration | dt, | ||
| Direction | dir | ||
| ) |
| Duration fub::samrai::FluxMethodAdapter< Tag, BaseMethod >::ComputeStableDt | ( | IntegratorContext & | context, |
| int | level, | ||
| Direction | dir | ||
| ) |
Extracts the state variables patch data views including its ghost cells and compute a stable time step size in specified direction and refinement level.
| Duration fub::samrai::FluxMethodAdapter< Tag, BaseMethod >::ComputeStableDt | ( | span< SAMRAI::pdat::CellData< double > const * > | data, |
| double | dx, | ||
| Direction | dir | ||
| ) |