OpenLB 1.7
Loading...
Searching...
No Matches
blockGeometryFaces2D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2018 Adrian Kummerlaender
4 * E-mail contact: info@openlb.net
5 * The most recent release of OpenLB can be downloaded at
6 * <http://www.openlb.net/>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program; if not, write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22*/
23
24#ifndef BLOCK_GEOMETRY_FACES_2D_H
25#define BLOCK_GEOMETRY_FACES_2D_H
26
27#include "blockBaseF2D.h"
29
30namespace olb {
31
32
33template <typename T>
34class BlockGeometryFaces2D final : public BlockF2D<T> {
35private:
36 BlockIndicatorF2D<T>& _indicatorF;
37 T _latticeL;
38public:
39 BlockGeometryFaces2D(BlockIndicatorF2D<T>& indicatorF, T latticeL);
40 bool operator() (T output[], const int input[]) override;
41};
42
43template <typename T, bool HLBM=false>
44class BlockGeometryFacesIndicator2D final : public GenericF<T,int> {
45private:
46 BlockGeometry<T,2>& _blockGeometry;
48 int _material;
49 T _latticeL;
50public:
53 int material, T deltaX);
54 bool operator() (T output[], const int input[]) override;
55};
56
57}
58
59#endif
represents all functors that operate on a cuboid in general, mother class of BlockLatticeF,...
bool operator()(T output[], const int input[]) override
has to be implemented for 'every' derived class
BlockGeometryFaces2D(BlockIndicatorF2D< T > &indicatorF, T latticeL)
bool operator()(T output[], const int input[]) override
has to be implemented for 'every' derived class
BlockGeometryFacesIndicator2D(BlockGeometry< T, 2 > &blockGeometry, SmoothIndicatorF2D< T, T, HLBM > &indicator, int material, T deltaX)
Representation of a block geometry.
Base block indicator functor (discrete)
GenericF is a base class, that can represent continuous as well as discrete functions.
Definition genericF.h:50
Top level namespace for all of OpenLB.