OpenLB 1.7
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
37
39template <typename T, typename W = T>
40class AnalyticalFfromBlockF2D final : public AnalyticalF2D<T,W> {
41protected:
44public:
46 bool operator() (W output[], const T physC[]) override;
47};
48
50template <typename T, typename W = T>
51class AnalyticalFfromSuperF2D final : public AnalyticalF2D<T,W> {
52protected:
55
58
59 std::vector<std::unique_ptr<AnalyticalFfromBlockF2D<T,W>>> _blockF;
60public:
62 bool communicateToAll=false,
63 bool communicateOverlap=true);
64 bool operator() (T output[], const T physC[]) override;
65
67 int getBlockFSize() const;
70};
71
72
73} // end namespace olb
74
75#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.
CuboidGeometry2D< T > & _cuboidGeometry
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,...
A regular single 2D cuboid is the basic component of a 2D cuboid structure which defines the grid.
Definition cuboid2D.h:54
A cuboid structure represents the grid of a considered domain.
represents all functors that operate on a SuperStructure<T,2> in general
The description of a vector of 2D cuboid – header file.
Top level namespace for all of OpenLB.
Representation of a parallel 2D geometry – header file.