OpenLB 1.7
Loading...
Searching...
No Matches
superCalcF2D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2014-2017 Albert Mink, Mathias J. Krause,
4 * Adrian Kummerlaender
5 * E-mail contact: info@openlb.net
6 * The most recent release of OpenLB can be downloaded at
7 * <http://www.openlb.net/>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this program; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
23*/
24
25#ifndef SUPER_CALC_F_2D_H
26#define SUPER_CALC_F_2D_H
27
29#include "superBaseF2D.h"
31
32/* Note: Throughout the whole source code directory genericFunctions, the
33 * template parameters for i/o dimensions are:
34 * F: S^m -> T^n (S=source, T=target)
35 */
36
37namespace olb {
38
39
41
54template <typename T, typename W, template<typename> class F>
55class SuperCalcF2D : public SuperF2D<T,W> {
56protected:
59public:
62
65
66 bool operator() (W output[], const int input[]) override;
67};
68
70template <typename T, typename W>
72
74template <typename T, typename W>
76
78template <typename T, typename W>
80
82template <typename T, typename W>
84
86template <typename T, typename W = T>
88
94template <typename T, typename W>
95std::shared_ptr<SuperF2D<T,W>> operator+(std::shared_ptr<SuperF2D<T,W>> lhs, std::shared_ptr<SuperF2D<T,W>> rhs);
96template <typename T, typename W>
97std::shared_ptr<SuperF2D<T,W>> operator+(std::shared_ptr<SuperF2D<T,W>> lhs, W rhs);
98template <typename T, typename W>
99std::shared_ptr<SuperF2D<T,W>> operator+(W lhs, std::shared_ptr<SuperF2D<T,W>> rhs);
100
101template <typename T, typename W>
102std::shared_ptr<SuperF2D<T,W>> operator-(std::shared_ptr<SuperF2D<T,W>> lhs, std::shared_ptr<SuperF2D<T,W>> rhs);
103template <typename T, typename W>
104std::shared_ptr<SuperF2D<T,W>> operator-(std::shared_ptr<SuperF2D<T,W>> lhs, W rhs);
105template <typename T, typename W>
106std::shared_ptr<SuperF2D<T,W>> operator-(W lhs, std::shared_ptr<SuperF2D<T,W>> rhs);
107
108template <typename T, typename W>
109std::shared_ptr<SuperF2D<T,W>> operator*(std::shared_ptr<SuperF2D<T,W>> lhs, std::shared_ptr<SuperF2D<T,W>> rhs);
110template <typename T, typename W>
111std::shared_ptr<SuperF2D<T,W>> operator*(std::shared_ptr<SuperF2D<T,W>> lhs, W rhs);
112template <typename T, typename W>
113std::shared_ptr<SuperF2D<T,W>> operator*(W lhs, std::shared_ptr<SuperF2D<T,W>> rhs);
114
115template <typename T, typename W>
116std::shared_ptr<SuperF2D<T,W>> operator/(std::shared_ptr<SuperF2D<T,W>> lhs, std::shared_ptr<SuperF2D<T,W>> rhs);
117template <typename T, typename W>
118std::shared_ptr<SuperF2D<T,W>> operator/(std::shared_ptr<SuperF2D<T,W>> lhs, W rhs);
119template <typename T, typename W>
120std::shared_ptr<SuperF2D<T,W>> operator/(W lhs, std::shared_ptr<SuperF2D<T,W>> rhs);
121
123
124
125} // end namespace olb
126
127#endif
Smart pointer for managing the various ways of passing functors around.
Definition functorPtr.h:60
Arithmetic operations for SuperF2D functors.
FunctorPtr< SuperF2D< T, W > > _g
SuperCalcF2D(FunctorPtr< SuperF2D< T, W > > &&f, FunctorPtr< SuperF2D< T, W > > &&g)
bool operator()(W output[], const int input[]) override
has to be implemented for 'every' derived class
FunctorPtr< SuperF2D< T, W > > _f
represents all functors that operate on a SuperStructure<T,2> in general
Top level namespace for all of OpenLB.
constexpr meta::enable_if_arithmetic_t< U, Vector< T, D > > operator-(U a, const ScalarVector< T, D, IMPL > &b) any_platform
Definition vector.h:297
constexpr meta::enable_if_arithmetic_t< U, Vector< T, D > > operator+(U a, const ScalarVector< T, D, IMPL > &b) any_platform
Definition vector.h:265
constexpr meta::enable_if_arithmetic_t< U, Vector< decltype(T{} *U{}), D > > operator*(U a, const ScalarVector< T, D, IMPL > &b) any_platform
Definition vector.h:329
constexpr meta::enable_if_arithmetic_t< U, Vector< T, D > > operator/(const ScalarVector< T, D, IMPL > &a, U b) any_platform
Definition vector.h:357