![]() |
KASKADE 7 development version
|
*/ More...
#include <advect.hh>
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. | |
| Function::ValueType | value (Cell const &cell, Position const &xi) const |
Related Symbols | |
(Note that these are not member symbols.) | |
| 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. | |
*/
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. |
| 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 |
Constructor.
| f | the function to be advected |
| v | the velocity field |
| tau | the integration length |
| n | the number of Euler integration steps (>= 1) |
Definition at line 140 of file advect.hh.
Referenced by makeAdvectedFunctionView().
|
inline |