OpenLB 1.7
Loading...
Searching...
No Matches
extendedFiniteDifferenceBoundary3D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2007 Orestis Malaspinas, Jonas Latt
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 EXTENDED_FINITE_DIFFERENCE_BOUNDARY_3D_H
25#define EXTENDED_FINITE_DIFFERENCE_BOUNDARY_3D_H
26
27#include "core/postProcessing.h"
29
30
31namespace olb {
32
38template<typename T, typename DESCRIPTOR, int direction, int orientation>
40public:
41 ExtendedFdPlaneBoundaryPostProcessor3D (int x0_, int x1_, int y0_, int y1_, int z0_, int z1_);
42 int extent() const override
43 {
44 return 1;
45 }
46 int extent(int whichDirection) const override
47 {
48 return 1;
49 }
50 void process(BlockLattice<T,DESCRIPTOR>& blockLattice) override;
52 int x0_, int x1_, int y0_, int y1_, int z0_, int z1_) override;
53private:
54 template<int deriveDirection>
55 void interpolateGradients( BlockLattice<T,DESCRIPTOR> const& blockLattice,
56 T velDeriv[DESCRIPTOR::d], int iX, int iY, int iZ ) const;
57
58 template<int deriveDirection>
59 void interpolateGradients ( BlockLattice<T,DESCRIPTOR> const& blockLattice,
60 T& rhoDeriv, int iX, int iY, int iZ) const;
61private:
62 int x0, x1, y0, y1, z0, z1;
63};
64
65template<typename T, typename DESCRIPTOR, int direction, int orientation>
67 : public PostProcessorGenerator3D<T,DESCRIPTOR> {
68public:
69 ExtendedFdPlaneBoundaryProcessorGenerator3D(int x0_, int x1_, int y0_, int y1_, int z0_, int z1_);
72};
73
74}
75
76#endif
Platform-abstracted block lattice for external access and inter-block interaction.
This class computes the finite difference approximation to LB boundary conditions on a plane wall in ...
int extent(int whichDirection) const override
Extent of application area along a direction (0 or 1)
void processSubDomain(BlockLattice< T, DESCRIPTOR > &blockLattice, int x0_, int x1_, int y0_, int y1_, int z0_, int z1_) override
Execute post-processing step on a sublattice.
void process(BlockLattice< T, DESCRIPTOR > &blockLattice) override
Execute post-processing step.
int extent() const override
Extent of application area (0 for purely local operations)
ExtendedFdPlaneBoundaryPostProcessor3D(int x0_, int x1_, int y0_, int y1_, int z0_, int z1_)
PostProcessor3D< T, DESCRIPTOR > * generate() const override
ExtendedFdPlaneBoundaryProcessorGenerator3D(int x0_, int x1_, int y0_, int y1_, int z0_, int z1_)
PostProcessorGenerator3D< T, DESCRIPTOR > * clone() const override
Instantiation of Momenta tuples which define the computation and definition of momenta in a specific ...
Top level namespace for all of OpenLB.
Interface for post-processing steps – header file.