OpenLB 1.7
Loading...
Searching...
No Matches
reductionF2D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2012 Lukas Baron, Tim Dornieden, Mathias J. Krause,
4 * Albert Mink
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 REDUCTION_F_2D_H
26#define REDUCTION_F_2D_H
27
29#include "superBaseF2D.h"
32
33namespace olb {
34
35
36template< typename T, typename DESCRIPTOR> class SuperLattice;
37
39
45template <typename T, typename DESCRIPTOR>
46class SuperLatticeFfromAnalyticalF2D final : public SuperLatticeF2D<T,DESCRIPTOR> {
47protected:
49public:
56 bool operator() (T output[], const int input[]) override;
57};
58
59
61
64template <typename T, typename DESCRIPTOR>
65class BlockLatticeFfromAnalyticalF2D final : public BlockLatticeF2D<T,DESCRIPTOR> {
66protected:
69public:
77 Cuboid2D<T>& cuboid);
78 bool operator() (T output[], const int input[]) override;
79};
80
81
82} // end namespace olb
83
84#endif
AnalyticalF are applications from DD to XD, where X is set by the constructor.
represents all functors that operate on a DESCRIPTOR in general, e.g. getVelocity(),...
Block level functor for conversion of analytical to lattice functors.
bool operator()(T output[], const int input[]) override
has to be implemented for 'every' derived class
BlockLatticeFfromAnalyticalF2D(AnalyticalF2D< T, T > &f, BlockLattice< T, DESCRIPTOR > &lattice, Cuboid2D< T > &cuboid)
Platform-abstracted block lattice for external access and inter-block interaction.
A regular single 2D cuboid is the basic component of a 2D cuboid structure which defines the grid.
Definition cuboid2D.h:54
Smart pointer for managing the various ways of passing functors around.
Definition functorPtr.h:60
represents all functors that operate on a SuperLattice in general, e.g. getVelocity(),...
Functor used to convert analytical functions to lattice functions.
FunctorPtr< AnalyticalF2D< T, T > > _f
SuperLatticeFfromAnalyticalF2D(FunctorPtr< AnalyticalF2D< T, T > > &&f, SuperLattice< T, DESCRIPTOR > &sLattice)
bool operator()(T output[], const int input[]) override
Super class maintaining block lattices for a cuboid decomposition.
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.