OpenLB 1.7
Loading...
Searching...
No Matches
functorDsl2D.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_2D_H
25#define FUNCTOR_DSL_2D_H
26
29
30namespace olb {
31
32namespace functor_dsl {
33
35template<typename T, typename W>
36std::shared_ptr<SuperF2D<T,W>> lift(SuperF2D<T,W>& f);
37
39template<typename T, typename W>
40std::shared_ptr<SuperF2D<T,W>> lift(SuperF2D<T,W>* f);
41
43template<typename T, typename W>
44std::shared_ptr<AnalyticalF2D<T,W>> lift(AnalyticalF2D<T,W>& f);
45
47template<typename T, typename W>
48std::shared_ptr<AnalyticalF2D<T,W>> lift(AnalyticalF2D<T,W>* f);
49
51template<typename T, typename W>
52std::shared_ptr<SuperF2D<T,W>> pow(std::shared_ptr<SuperF2D<T,W>> baseF,
53 std::shared_ptr<SuperF2D<T,W>> exponentF);
54
56template<typename T, typename W, typename E>
57std::shared_ptr<SuperF2D<T,W>> pow(std::shared_ptr<SuperF2D<T,W>> baseF,
58 E exponent);
59
61template<typename T, typename W, typename B>
62std::shared_ptr<SuperF2D<T,W>> pow(B base,
63 std::shared_ptr<SuperF2D<T,W>> exponentF);
64
66template<int P, typename T, typename W>
67std::shared_ptr<SuperF2D<T,W>> norm(std::shared_ptr<SuperF2D<T,W>> f,
68 std::shared_ptr<SuperIndicatorF2D<T>> indicatorF);
69
71template<typename T, typename W, typename DESCRIPTOR>
72std::shared_ptr<SuperF2D<T,W>> restrictF(std::shared_ptr<AnalyticalF2D<T,W>> f,
74
76template<typename T,typename DESCRIPTOR, typename FIELD>
77std::enable_if_t<DESCRIPTOR::d == 2, std::shared_ptr<SuperF2D<T>>>
79
80}
81
82}
83
84#endif
AnalyticalF are applications from DD to XD, where X is set by the constructor.
represents all functors that operate on a SuperStructure<T,2> in general
Super class maintaining block lattices for a cuboid decomposition.
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.