OpenLB 1.7
Loading...
Searching...
No Matches
superCalcF3D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2012-2017 Lukas Baron, Tim Dornieden, Mathias J. Krause,
4 * Albert Mink, 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_3D_H
26#define SUPER_CALC_F_3D_H
27
29#include "superBaseF3D.h"
31
32#include <memory>
33
34/* Note: Throughout the whole source code directory genericFunctions, the
35 * template parameters for i/o dimensions are:
36 * F: S^m -> T^n (S=source, T=target)
37 */
38
39namespace olb {
40
41
43
57template <typename T, typename W, template<typename> class F>
58class SuperCalcF3D : public SuperF3D<T,W> {
59protected:
62public:
65
68
69 bool operator() (W output[], const int input[]) override;
70};
71
73template <typename T, typename W = T>
75
77template <typename T, typename W = T>
79
81template <typename T, typename W = T>
83
85template <typename T, typename W = T>
87
89template <typename T, typename W = T>
91
97template <typename T, typename W>
98std::shared_ptr<SuperF3D<T,W>> operator+(std::shared_ptr<SuperF3D<T,W>> lhs, std::shared_ptr<SuperF3D<T,W>> rhs);
99template <typename T, typename W>
100std::shared_ptr<SuperF3D<T,W>> operator+(std::shared_ptr<SuperF3D<T,W>> lhs, W rhs);
101template <typename T, typename W>
102std::shared_ptr<SuperF3D<T,W>> operator+(W lhs, std::shared_ptr<SuperF3D<T,W>> rhs);
103
104template <typename T, typename W>
105std::shared_ptr<SuperF3D<T,W>> operator-(std::shared_ptr<SuperF3D<T,W>> lhs, std::shared_ptr<SuperF3D<T,W>> rhs);
106template <typename T, typename W>
107std::shared_ptr<SuperF3D<T,W>> operator-(std::shared_ptr<SuperF3D<T,W>> lhs, W rhs);
108template <typename T, typename W>
109std::shared_ptr<SuperF3D<T,W>> operator-(W lhs, std::shared_ptr<SuperF3D<T,W>> rhs);
110
111template <typename T, typename W>
112std::shared_ptr<SuperF3D<T,W>> operator*(std::shared_ptr<SuperF3D<T,W>> lhs, std::shared_ptr<SuperF3D<T,W>> rhs);
113template <typename T, typename W>
114std::shared_ptr<SuperF3D<T,W>> operator*(std::shared_ptr<SuperF3D<T,W>> lhs, W rhs);
115template <typename T, typename W>
116std::shared_ptr<SuperF3D<T,W>> operator*(W lhs, std::shared_ptr<SuperF3D<T,W>> rhs);
117
118template <typename T, typename W>
119std::shared_ptr<SuperF3D<T,W>> operator/(std::shared_ptr<SuperF3D<T,W>> lhs, std::shared_ptr<SuperF3D<T,W>> rhs);
120template <typename T, typename W>
121std::shared_ptr<SuperF3D<T,W>> operator/(std::shared_ptr<SuperF3D<T,W>> lhs, W rhs);
122template <typename T, typename W>
123std::shared_ptr<SuperF3D<T,W>> operator/(W lhs, std::shared_ptr<SuperF3D<T,W>> rhs);
124
126
127
128} // end namespace olb
129
130#endif
Smart pointer for managing the various ways of passing functors around.
Definition functorPtr.h:60
Arithmetic operations for SuperF3D functors.
bool operator()(W output[], const int input[]) override
has to be implemented for 'every' derived class
SuperCalcF3D(FunctorPtr< SuperF3D< T, W > > &&f, FunctorPtr< SuperF3D< T, W > > &&g)
FunctorPtr< SuperF3D< T, W > > _g
FunctorPtr< SuperF3D< T, W > > _f
represents all functors that operate on a SuperStructure<T,3> 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