OpenLB 1.7
Loading...
Searching...
No Matches
functorDsl3D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2018 Adrian Kummerlaender
4 * E-mail contact: info@openlb.net
5 * The most recent release of OpenLB can be downloaded at
6 * <http://www.openlb.net/>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program; if not, write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22*/
23
24#ifndef FUNCTOR_DSL_3D_H
25#define FUNCTOR_DSL_3D_H
26
30
31namespace olb {
32
34
66namespace functor_dsl {
67
69template<typename T, typename W>
70std::shared_ptr<SuperF3D<T,W>> lift(SuperF3D<T,W>& f);
71
73template<typename T, typename W>
74std::shared_ptr<SuperF3D<T,W>> lift(SuperF3D<T,W>* f);
75
77template<typename T, typename W>
78std::shared_ptr<AnalyticalF3D<T,W>> lift(AnalyticalF3D<T,W>& f);
79
81template<typename T, typename W>
82std::shared_ptr<AnalyticalF3D<T,W>> lift(AnalyticalF3D<T,W>* f);
83
85template<typename T, typename W>
86std::shared_ptr<SuperF3D<T,W>> pow(std::shared_ptr<SuperF3D<T,W>> baseF,
87 std::shared_ptr<SuperF3D<T,W>> exponentF);
88
90template<typename T, typename W, typename E>
91std::shared_ptr<SuperF3D<T,W>> pow(std::shared_ptr<SuperF3D<T,W>> baseF,
92 E exponent);
93
95template<typename T, typename W, typename B>
96std::shared_ptr<SuperF3D<T,W>> pow(B base,
97 std::shared_ptr<SuperF3D<T,W>> exponentF);
98
100template<int P, typename T, typename W>
101std::shared_ptr<SuperF3D<T,W>> norm(std::shared_ptr<SuperF3D<T,W>> f,
102 std::shared_ptr<SuperIndicatorF3D<T>> indicatorF);
103
105template<typename T, typename W, typename DESCRIPTOR>
106std::shared_ptr<SuperF3D<T,W>> restrictF(std::shared_ptr<AnalyticalF3D<T,W>> f,
107 SuperLattice<T, DESCRIPTOR>& sLattice);
108
110template<typename T,typename DESCRIPTOR, typename FIELD>
111std::enable_if_t<DESCRIPTOR::d == 3, std::shared_ptr<SuperF3D<T>>>
112field(SuperLattice<T,DESCRIPTOR>& sLattice);
113
114}
115
116}
117
118#endif
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.