24 template <
class Function>
29 auto df = f.
value(cell,xi);
30 static_assert(df.rows==df.cols,
"vorticity requires vector fields");
31 if constexpr (df.rows==2)
33 if constexpr (df.rows==3)
Function is the interface for evaluatable functions .
ValueType value(Cell const &cell, Dune::FieldVector< typename Cell::Geometry::ctype, Cell::dimension > const &localCoordinate) const
auto vorticity(Function const &f)
Creates a weak function view representing the vorticity of a 2D or 3D vector field.
auto makeWeakFunctionView(Functor const &g)
A convenience function turning callables (e.g., lambda functions) into weak function views.