KASKADE 7 development version
|
A weak function view that defines an advected function. More...
#include <advect.hh>
A weak function view that defines an advected function.
The function view's value is defined by advection along the velocity field \( v\) as \( \hat f(x) = f(y(\tau)) \), where \( y(t) \) satisfies
\[ \dot y = -v(y), \quad y(0) = x. \]
The integration is performed with \( n \) equidistant explicit Euler steps. The integration is stopped prematurely if the domain boundary is encountered.
Function | a weak function view (e.g. a finite element function) type |
Velocity | a vector-valued WeakFunctionView. The vector size has to be the spatial dimension of the grid. |
Public Types | |
using | GridView = typename Function::Space::GridView |
using | Cell = Kaskade::Cell< GridView > |
using | Position = GlobalPosition< GridView > |
Public Member Functions | |
AdvectedFunctionView (Function const &f_, Velocity const &v_, double tau_, int n_=1) | |
Constructor. More... | |
Function::ValueType | value (Cell const &cell, Position const &xi) const |
Related Functions | |
(Note that these are not member functions.) | |
template<class Function , class Velocity > | |
auto | makeAdvectedFunctionView (Function const &f, Velocity const &v, double tau, int n=1) |
Creates a weak function view for advecting FE functions. More... | |
using Kaskade::AdvectedFunctionView< Function, Velocity >::Cell = Kaskade::Cell<GridView> |
using Kaskade::AdvectedFunctionView< Function, Velocity >::GridView = typename Function::Space::GridView |
using Kaskade::AdvectedFunctionView< Function, Velocity >::Position = GlobalPosition<GridView> |
|
inline |
|
inline |