OpenLB 1.7
Loading...
Searching...
No Matches
analyticCalcF.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2012-2018 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 ANALYTICAL_CALC_F_H
26#define ANALYTICAL_CALC_F_H
27
28
29#include "analyticalBaseF.h"
32
33namespace olb {
34
35
37template <unsigned D, typename T, typename S, template<typename> class F>
38class AnalyticCalcF : public AnalyticalF<D,T,S> {
39protected:
42public:
45
48
49 bool operator() (T output[], const S input[]) override;
50};
51
53template <unsigned D, typename T, typename S>
55
56template <typename T, typename S>
58template <typename T, typename S>
60template <typename T, typename S>
62
64template <unsigned D, typename T, typename S>
66
67template <typename T, typename S>
69template <typename T, typename S>
71template <typename T, typename S>
73
75template <unsigned D, typename T, typename S>
77
78template <typename T, typename S>
80template <typename T, typename S>
82template <typename T, typename S>
84
86template <unsigned D, typename T, typename S>
88
89template <typename T, typename S>
91template <typename T, typename S>
93template <typename T, typename S>
95
96template <unsigned D, typename T, typename S>
97std::shared_ptr<AnalyticalF<D,T,S>> operator+(std::shared_ptr<AnalyticalF<D,T,S>> lhs, std::shared_ptr<AnalyticalF<D,T,S>> rhs);
98template <unsigned D, typename T, typename S>
99std::shared_ptr<AnalyticalF<D,T,S>> operator+(std::shared_ptr<AnalyticalF<D,T,S>> lhs, T rhs);
100template <unsigned D, typename T, typename S>
101std::shared_ptr<AnalyticalF<D,T,S>> operator+(T lhs, std::shared_ptr<AnalyticalF<D,T,S>> rhs);
102
103template <unsigned D, typename T, typename S>
104std::shared_ptr<AnalyticalF<D,T,S>> operator-(std::shared_ptr<AnalyticalF<D,T,S>> lhs, std::shared_ptr<AnalyticalF<D,T,S>> rhs);
105template <unsigned D, typename T, typename S>
106std::shared_ptr<AnalyticalF<D,T,S>> operator-(std::shared_ptr<AnalyticalF<D,T,S>> lhs, T rhs);
107template <unsigned D, typename T, typename S>
108std::shared_ptr<AnalyticalF<D,T,S>> operator-(T lhs, std::shared_ptr<AnalyticalF<D,T,S>> rhs);
109
110template <unsigned D, typename T, typename S>
111std::shared_ptr<AnalyticalF<D,T,S>> operator*(std::shared_ptr<AnalyticalF<D,T,S>> lhs, std::shared_ptr<AnalyticalF<D,T,S>> rhs);
112template <unsigned D, typename T, typename S>
113std::shared_ptr<AnalyticalF<D,T,S>> operator*(std::shared_ptr<AnalyticalF<D,T,S>> lhs, T rhs);
114template <unsigned D, typename T, typename S>
115std::shared_ptr<AnalyticalF<D,T,S>> operator*(T lhs, std::shared_ptr<AnalyticalF<D,T,S>> rhs);
116
117template <unsigned D, typename T, typename S>
118std::shared_ptr<AnalyticalF<D,T,S>> operator/(std::shared_ptr<AnalyticalF<D,T,S>> lhs, std::shared_ptr<AnalyticalF<D,T,S>> rhs);
119template <unsigned D, typename T, typename S>
120std::shared_ptr<AnalyticalF<D,T,S>> operator/(std::shared_ptr<AnalyticalF<D,T,S>> lhs, T rhs);
121template <unsigned D, typename T, typename S>
122std::shared_ptr<AnalyticalF<D,T,S>> operator/(T lhs, std::shared_ptr<AnalyticalF<D,T,S>> rhs);
123
124
125} // end namespace olb
126
127#endif
arithmetic helper class for analytical functors
AnalyticCalcF(FunctorPtr< AnalyticalF< D, T, S > > &&f, FunctorPtr< AnalyticalF< D, T, S > > &&g)
FunctorPtr< AnalyticalF< D, T, S > > _g
bool operator()(T output[], const S input[]) override
has to be implemented for 'every' derived class
FunctorPtr< AnalyticalF< D, T, S > > _f
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.
Definition functorPtr.h:60
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