Finite Volume Solver
prototype
A framework to build finite volume solvers for the AG Klein at the Freie Universität Berlin.
|
This class descibes the 2-dimensional advection equation with constant transport velocity. More...
#include <Advection.hpp>
Public Types | |
using | ConservativeDepths = AdvectionVariables< ScalarDepth > |
using | CompleteDepths = ConservativeDepths |
using | Complete = ::fub::Complete< Advection2d > |
using | Conservative = ::fub::Conservative< Advection2d > |
using | CompleteArray = ::fub::CompleteArray< Advection2d > |
using | ConservativeArray = ::fub::ConservativeArray< Advection2d > |
Public Member Functions | |
Advection2d (const std::array< double, 2 > &v) noexcept | |
Constructs an equation object with velocity v . More... | |
void | Flux (Conservative &flux, const Complete &state, Direction dir) const noexcept |
Computes the linear transport flux in the specified direction. More... | |
void | Flux (ConservativeArray &flux, const CompleteArray &state, Direction dir) const noexcept |
Computes the linear transport flux in the specified direction (Array version). More... | |
Static Public Member Functions | |
static constexpr int | Rank () |
Returns 2, which is the space dimension for this equation. More... | |
Public Attributes | |
std::array< double, 2 > | velocity |
This member variable stores the constant transport velocity. More... | |
This class descibes the 2-dimensional advection equation with constant transport velocity.
using fub::Advection2d::Complete = ::fub::Complete<Advection2d> |
|
inlinenoexcept |
Constructs an equation object with velocity v
.
|
noexcept |
Computes the linear transport flux in the specified direction.
[out] | flux | The conservative state which will store the results. |
[in] | state | The input state. |
[in] | dir | The split direction of this flux. |
|
noexcept |
Computes the linear transport flux in the specified direction (Array version).
[out] | flux | The conservative state which will store the results. |
[in] | state | The input state. |
[in] | dir | The split direction of this flux. |
|
inlinestaticconstexpr |
Returns 2, which is the space dimension for this equation.
std::array<double, 2> fub::Advection2d::velocity |
This member variable stores the constant transport velocity.