24#ifndef FUNCTOR_DSL_3D_HH
25#define FUNCTOR_DSL_3D_HH
35namespace functor_dsl {
37template<
typename T,
typename W>
43template<
typename T,
typename W>
49template<
typename T,
typename W>
55template<
typename T,
typename W>
61template<
typename T,
typename W>
65 return std::shared_ptr<SuperF3D<T,W>>(
71template<
typename T,
typename W,
typename E>
75 static_assert(std::is_arithmetic<E>::value,
76 "Exponent must be an arithmetic value");
77 return std::shared_ptr<SuperF3D<T,W>>(
81template<
typename T,
typename W,
typename B>
82std::shared_ptr<SuperF3D<T,W>>
pow(B base,
85 static_assert(std::is_arithmetic<B>::value,
86 "Base must be an arithmetic value");
87 return std::shared_ptr<SuperF3D<T,W>>(
91template<
int P,
typename T,
typename W>
95 return std::shared_ptr<SuperF3D<T,W>>(
97 std::move(indicatorF))
101template<
typename T,
typename W,
typename DESCRIPTOR>
105 return std::shared_ptr<SuperF3D<T,W>>(
109template<
typename T,
typename DESCRIPTOR,
typename FIELD>
110std::enable_if_t<DESCRIPTOR::d == 3, std::shared_ptr<SuperF3D<T>>>
113 return std::make_shared<SuperLatticeField3D<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 SuperF3D functors.
represents all functors that operate on a SuperStructure<T,3> in general
Base indicator functor (discrete)
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.