OpenLB 1.7
Loading...
Searching...
No Matches
interpolationF3D.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, Benjamin Förster, 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_3D_H
26#define INTERPOLATION_F_3D_H
27
28#include "analyticalF.h"
34
35namespace olb {
36
37
39template <typename T, typename W = T>
41protected:
46public:
47 SpecialAnalyticalFfromBlockF3D(BlockF3D<W>& f, Cuboid3D<T>& cuboid, Vector<T,3> delta, T scale = 1.);
48 bool operator() (W output[], const T physC[]) override;
49};
50
52template <typename T, typename W = T>
53class AnalyticalFfromBlockF3D final : public AnalyticalF3D<T,W> {
54protected:
57public:
59 bool operator() (W output[], const T physC[]) override;
60};
61
63template <typename T, typename W = T>
64class AnalyticalFfromSuperF3D final : public AnalyticalF3D<T,W> {
65protected:
68
71
72 std::vector<std::unique_ptr<AnalyticalFfromBlockF3D<T,W>>> _blockF;
73public:
75 bool communicateToAll=false,
76 bool communicateOverlap=true);
77 bool operator() (W output[], const T physC[]) override;
78
80 int getBlockFSize() const;
83};
84
85
86} // end namespace olb
87
88#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.
AnalyticalFfromBlockF3D(BlockF3D< W > &f, Cuboid3D< T > &cuboid)
bool operator()(W output[], const T physC[]) override
trilinear interpolation on cubic lattice
Converts super functors to analytical functors.
CuboidGeometry3D< T > & _cuboidGeometry
AnalyticalFfromSuperF3D(SuperF3D< T, W > &f, bool communicateToAll=false, bool communicateOverlap=true)
bool operator()(W output[], const T physC[]) override
std::vector< std::unique_ptr< AnalyticalFfromBlockF3D< T, W > > > _blockF
AnalyticalFfromBlockF3D< T, W > & getBlockF(int iCloc)
represents all functors that operate on a cuboid in general, mother class of BlockLatticeF,...
A regular single 3D cuboid is the basic component of a 3D cuboid structure which defines the grid.
Definition cuboid3D.h:58
A cuboid geometry represents a voxel mesh.
Converts block functors to analytical functors (special)
SpecialAnalyticalFfromBlockF3D(BlockF3D< W > &f, Cuboid3D< T > &cuboid, Vector< T, 3 > delta, T scale=1.)
trilinear interpolation for rectangular lattice with dimensions delta[i]; if the cuboid is a plane (e...
bool operator()(W output[], const T physC[]) override
represents all functors that operate on a SuperStructure<T,3> in general
Plain old scalar vector.
Definition vector.h:47
The description of a vector of 3D cuboid – header file.
Top level namespace for all of OpenLB.
Representation of a parallel 2D geometry – header file.