OpenLB 1.7
Loading...
Searching...
No Matches
offBoundaryPostProcessors2D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2012 Jonas Kratzke, Mathias J. Krause
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 OFF_BOUNDARY_POST_PROCESSORS_2D_H
25#define OFF_BOUNDARY_POST_PROCESSORS_2D_H
26
27#include "core/postProcessing.h"
28
29namespace olb {
30
31template<typename T, typename DESCRIPTOR>
33public:
34 ZeroVelocityBouzidiLinearPostProcessor2D(int x_, int y_, int iPop_, T dist_);
35 int extent() const override
36 {
37 return 1;
38 }
39 int extent(int whichDirection) const override
40 {
41 return 1;
42 }
43 void process(BlockLattice<T,DESCRIPTOR>& blockLattice) override;
45 int x0_, int x1_, int y0_, int y1_ ) override;
46private:
47 int x, y;
48 int xN, yN, xB, yB;
49 int iPop, opp, iPop2;
50 T q, dist;
51};
52
53template<typename T, typename DESCRIPTOR>
55public:
56 VelocityBouzidiLinearPostProcessor2D(int x_, int y_, int iPop_, T dist_);
57 int extent() const override
58 {
59 return 1;
60 }
61 int extent(int whichDirection) const override
62 {
63 return 1;
64 }
65 void process(BlockLattice<T,DESCRIPTOR>& blockLattice) override;
67 int x0_, int x1_, int y0_, int y1_ ) override;
68private:
69 int x, y;
70 int xN, yN, xB, yB;
71 int iPop, opp, iPop2;
72 T q, dist;
73 T ufrac;
74};
75
76template<typename T, typename DESCRIPTOR>
78public:
79 ZeroVelocityBounceBackPostProcessor2D(int x_, int y_, int iPop_, T dist_);
80 int extent() const override
81 {
82 return 1;
83 }
84 int extent(int whichDirection) const override
85 {
86 return 1;
87 }
88 void process(BlockLattice<T,DESCRIPTOR>& blockLattice) override;
90 int x0_, int x1_, int y0_, int y1_ ) override;
91private:
92 int x, y;
93 int xN, yN;
94 int iPop, opp;
95 T dist;
96};
97
98template<typename T, typename DESCRIPTOR>
100public:
101 VelocityBounceBackPostProcessor2D(int x_, int y_, int iPop_, T dist_);
102 int extent() const override
103 {
104 return 1;
105 }
106 int extent(int whichDirection) const override
107 {
108 return 1;
109 }
110 void process(BlockLattice<T,DESCRIPTOR>& blockLattice) override;
112 int x0_, int x1_, int y0_, int y1_ ) override;
113private:
114 int x, y;
115 int xN, yN;
116 int iPop, opp;
117 T dist;
118};
119
120
121template<typename T, typename DESCRIPTOR>
123public:
124 AntiBounceBackPostProcessor2D(int x_, int y_, int iPop_);
125 int extent() const override
126 {
127 return 1;
128 }
129 int extent(int whichDirection) const override
130 {
131 return 1;
132 }
133 void process(BlockLattice<T,DESCRIPTOR>& blockLattice) override;
135 int x0_, int x1_, int y0_, int y1_ ) override;
136private:
137 int x, y;
138 int xN, yN;
139 int iPop, opp;
140};
141
142template<typename T, typename DESCRIPTOR>
144public:
145 BoundaryStreamPostProcessor2D(int x_, int y_, const bool streamDirections[DESCRIPTOR::q]);
146 int extent() const override
147 {
148 return 1;
149 }
150 int extent(int whichDirection) const override
151 {
152 return 1;
153 }
154 void process(BlockLattice<T,DESCRIPTOR>& blockLattice) override;
156 int x0_, int x1_, int y0_, int y1_ ) override;
157private:
158 int x, y;
159 bool _streamDirections[DESCRIPTOR::q];
160};
161
162template<typename T, typename DESCRIPTOR>
164public:
165 ZeroVelocityBounceBackPostProcessorGenerator2D(int x_, int y_, int iPop_, T dist_);
166 PostProcessor2D<T,DESCRIPTOR>* generate() const override;
168private:
169 int x, y;
170 int iPop;
171 T dist;
172};
173
174template<typename T, typename DESCRIPTOR>
176public:
177 VelocityBounceBackPostProcessorGenerator2D(int x_, int y_, int iPop_, T dist_);
178 PostProcessor2D<T,DESCRIPTOR>* generate() const override;
180private:
181 int x, y;
182 int iPop;
183 T dist;
184};
185
186template<typename T, typename DESCRIPTOR>
188public:
189 AntiBounceBackPostProcessorGenerator2D(int x_, int y_, int iPop_);
190 PostProcessor2D<T,DESCRIPTOR>* generate() const override;
192private:
193 int x, y;
194 int iPop;
195};
196
197template<typename T, typename DESCRIPTOR>
199public:
200 BoundaryStreamPostProcessorGenerator2D(int x_, int y_, const bool _streamDirections[DESCRIPTOR::q]);
201 PostProcessor2D<T,DESCRIPTOR>* generate() const override;
203private:
204 int x, y;
205 bool _streamDirections[DESCRIPTOR::q];
206};
207
208template<typename T, typename DESCRIPTOR>
210public:
211 VelocityBouzidiLinearPostProcessorGenerator2D(int x_, int y_, int iPop_, T dist_);
212 PostProcessor2D<T,DESCRIPTOR>* generate() const override;
214private:
215 int x, y;
216 int iPop;
217 T dist;
218};
219
220template<typename T, typename DESCRIPTOR>
222public:
223 ZeroVelocityBouzidiLinearPostProcessorGenerator2D(int x_, int y_, int iPop_, T dist_);
224 PostProcessor2D<T,DESCRIPTOR>* generate() const override;
226private:
227 int x, y;
228 int iPop;
229 T dist;
230};
231
232}
233
234#endif
AntiBounceBackPostProcessor2D(int x_, int y_, int iPop_)
int extent(int whichDirection) const override
Extent of application area along a direction (0 or 1)
int extent() const override
Extent of application area (0 for purely local operations)
void process(BlockLattice< T, DESCRIPTOR > &blockLattice) override
Execute post-processing step.
void processSubDomain(BlockLattice< T, DESCRIPTOR > &blockLattice, int x0_, int x1_, int y0_, int y1_) override
Execute post-processing step on a sublattice.
PostProcessorGenerator2D< T, DESCRIPTOR > * clone() const override
PostProcessor2D< T, DESCRIPTOR > * generate() const override
Platform-abstracted block lattice for external access and inter-block interaction.
void processSubDomain(BlockLattice< T, DESCRIPTOR > &blockLattice, int x0_, int x1_, int y0_, int y1_) 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)
BoundaryStreamPostProcessor2D(int x_, int y_, const bool streamDirections[DESCRIPTOR::q])
int extent(int whichDirection) const override
Extent of application area along a direction (0 or 1)
PostProcessorGenerator2D< T, DESCRIPTOR > * clone() const override
BoundaryStreamPostProcessorGenerator2D(int x_, int y_, const bool _streamDirections[DESCRIPTOR::q])
PostProcessor2D< T, DESCRIPTOR > * generate() const override
Interface of 2D post-processing steps.
void process(BlockLattice< T, DESCRIPTOR > &blockLattice) override
Execute post-processing step.
int extent(int whichDirection) const override
Extent of application area along a direction (0 or 1)
VelocityBounceBackPostProcessor2D(int x_, int y_, int iPop_, T dist_)
int extent() const override
Extent of application area (0 for purely local operations)
void processSubDomain(BlockLattice< T, DESCRIPTOR > &blockLattice, int x0_, int x1_, int y0_, int y1_) override
Execute post-processing step on a sublattice.
PostProcessorGenerator2D< T, DESCRIPTOR > * clone() const override
PostProcessor2D< T, DESCRIPTOR > * generate() const override
VelocityBounceBackPostProcessorGenerator2D(int x_, int y_, int iPop_, T dist_)
int extent(int whichDirection) const override
Extent of application area along a direction (0 or 1)
void process(BlockLattice< T, DESCRIPTOR > &blockLattice) override
Execute post-processing step.
void processSubDomain(BlockLattice< T, DESCRIPTOR > &blockLattice, int x0_, int x1_, int y0_, int y1_) override
Execute post-processing step on a sublattice.
int extent() const override
Extent of application area (0 for purely local operations)
VelocityBouzidiLinearPostProcessor2D(int x_, int y_, int iPop_, T dist_)
PostProcessor2D< T, DESCRIPTOR > * generate() const override
PostProcessorGenerator2D< T, DESCRIPTOR > * clone() const override
VelocityBouzidiLinearPostProcessorGenerator2D(int x_, int y_, int iPop_, T dist_)
int extent(int whichDirection) const override
Extent of application area along a direction (0 or 1)
void process(BlockLattice< T, DESCRIPTOR > &blockLattice) override
Execute post-processing step.
int extent() const override
Extent of application area (0 for purely local operations)
void processSubDomain(BlockLattice< T, DESCRIPTOR > &blockLattice, int x0_, int x1_, int y0_, int y1_) override
Execute post-processing step on a sublattice.
ZeroVelocityBounceBackPostProcessor2D(int x_, int y_, int iPop_, T dist_)
PostProcessorGenerator2D< T, DESCRIPTOR > * clone() const override
PostProcessor2D< T, DESCRIPTOR > * generate() const override
ZeroVelocityBounceBackPostProcessorGenerator2D(int x_, int y_, int iPop_, T dist_)
int extent(int whichDirection) const override
Extent of application area along a direction (0 or 1)
void process(BlockLattice< T, DESCRIPTOR > &blockLattice) override
Execute post-processing step.
ZeroVelocityBouzidiLinearPostProcessor2D(int x_, int y_, int iPop_, T dist_)
void processSubDomain(BlockLattice< T, DESCRIPTOR > &blockLattice, int x0_, int x1_, int y0_, int y1_) override
Execute post-processing step on a sublattice.
int extent() const override
Extent of application area (0 for purely local operations)
PostProcessor2D< T, DESCRIPTOR > * generate() const override
PostProcessorGenerator2D< T, DESCRIPTOR > * clone() const override
ZeroVelocityBouzidiLinearPostProcessorGenerator2D(int x_, int y_, int iPop_, T dist_)
Top level namespace for all of OpenLB.
Interface for post-processing steps – header file.