24#ifndef FUNCTOR_DSL_2D_HH
25#define FUNCTOR_DSL_2D_HH
34namespace functor_dsl {
36template<
typename T,
typename W>
42template<
typename T,
typename W>
48template<
typename T,
typename W>
54template<
typename T,
typename W>
60template<
typename T,
typename W>
64 return std::shared_ptr<SuperF2D<T,W>>(
70template<
typename T,
typename W,
typename E>
74 static_assert(std::is_arithmetic<E>::value,
75 "Exponent must be an arithmetic value");
76 return std::shared_ptr<SuperF2D<T,W>>(
80template<
typename T,
typename W,
typename B>
81std::shared_ptr<SuperF2D<T,W>>
pow(B base,
84 static_assert(std::is_arithmetic<B>::value,
85 "Base must be an arithmetic value");
86 return std::shared_ptr<SuperF2D<T,W>>(
90template<
int P,
typename T,
typename W>
94 return std::shared_ptr<SuperF2D<T,W>>(
96 std::move(indicatorF))
100template<
typename T,
typename W,
typename DESCRIPTOR>
104 return std::shared_ptr<SuperF2D<T,W>>(
108template<
typename T,
typename DESCRIPTOR,
typename FIELD>
109std::enable_if_t<DESCRIPTOR::d == 2, std::shared_ptr<SuperF2D<T>>>
112 return std::make_shared<SuperLatticeField2D<T,DESCRIPTOR,FIELD>>(sLattice);
AnalyticalF are applications from DD to XD, where X is set by the constructor.
Smart pointer for managing the various ways of passing functors around.
Arithmetic operations for SuperF2D functors.
represents all functors that operate on a SuperStructure<T,2> in general
Functor used to convert analytical functions to lattice functions.
Super class maintaining block lattices for a cuboid decomposition.
Functor that returns the Lp norm over omega of the the euklid norm of the input functor.
std::enable_if_t< DESCRIPTOR::d==2, std::shared_ptr< SuperF2D< T > > > field(SuperLattice< T, DESCRIPTOR > &sLattice)
Returns external field functor.
std::shared_ptr< SuperF2D< T, W > > lift(SuperF2D< T, W > &f)
Lifts functor reference to std::shared_ptr functor arithmetic.
std::shared_ptr< SuperF2D< T, W > > pow(std::shared_ptr< SuperF2D< T, W > > baseF, std::shared_ptr< SuperF2D< T, W > > exponentF)
Returns baseF raised to the power of exponentF.
std::shared_ptr< SuperF2D< T, W > > norm(std::shared_ptr< SuperF2D< T, W > > f, std::shared_ptr< SuperIndicatorF2D< T > > indicatorF)
Returns Lp norm for a functor f on the subset described by indicatorF.
std::shared_ptr< SuperF2D< T, W > > restrictF(std::shared_ptr< AnalyticalF2D< T, W > > f, SuperLattice< T, DESCRIPTOR > &sLattice)
Returns restriction of a analytical functor f to the lattice sLattice.
Top level namespace for all of OpenLB.