OpenLB 1.8.1
Loading...
Searching...
No Matches
interpolationF2D.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 INTERPOLATION_F_2D_H
26#define INTERPOLATION_F_2D_H
27
28#include "analyticalF.h"
34
35namespace olb {
36
38template <typename T, typename W = T>
39class SpecialAnalyticalFfromBlockF2D final : public AnalyticalF2D<T,W> {
40protected:
45public:
46 SpecialAnalyticalFfromBlockF2D(BlockF2D<W>& f, Cuboid2D<T>& cuboid, Vector<T,2> delta, T scale = 1.);
47 bool operator() (W output[], const T physC[]) override;
48};
49
51template <typename T, typename W = T>
52class AnalyticalFfromBlockF2D final : public AnalyticalF2D<T,W> {
53protected:
56public:
58 bool operator() (W output[], const T physC[]) override;
59};
60
62template <typename T, typename W = T>
63class AnalyticalFfromSuperF2D final : public AnalyticalF2D<T,W> {
64protected:
67
70
71 std::vector<std::unique_ptr<AnalyticalFfromBlockF2D<T,W>>> _blockF;
72public:
74 bool communicateToAll=false,
75 bool communicateOverlap=true);
76 bool operator() (T output[], const T physC[]) override;
77
79 int getBlockFSize() const;
82};
83
84
85} // end namespace olb
86
87#endif
Representation of the 2D block geometry view – header file.
AnalyticalF are applications from DD to XD, where X is set by the constructor.
Converts block functors to analytical functors.
bool operator()(W output[], const T physC[]) override
AnalyticalFfromBlockF2D(BlockF2D< W > &f, Cuboid2D< T > &cuboid)
Converts super functions to analytical functions.
CuboidDecomposition< T, 2 > & _cuboidDecomposition
AnalyticalFfromSuperF2D(SuperF2D< T > &f, bool communicateToAll=false, bool communicateOverlap=true)
AnalyticalFfromBlockF2D< T, W > & getBlockF(int iCloc)
std::vector< std::unique_ptr< AnalyticalFfromBlockF2D< T, W > > > _blockF
bool operator()(T output[], const T physC[]) override
represents all functors that operate on a cuboid in general, mother class of BlockLatticeF,...
Definition aliases.h:173
Decomposition of a physical volume into a set of disjoint cuboids.
bool operator()(W output[], const T physC[]) override
SpecialAnalyticalFfromBlockF2D(BlockF2D< W > &f, Cuboid2D< T > &cuboid, Vector< T, 2 > delta, T scale=1.)
Bilinear interpolation for rectangular lattice with dimensions delta[i]; This functor performs biline...
represents all functors that operate on a SuperStructure<T,2> in general
Definition aliases.h:183
Plain old scalar vector.
Top level namespace for all of OpenLB.
AnalyticalF< 2, T, S > AnalyticalF2D
Representation of a parallel 2D geometry – header file.