ASL  0.1.7
Advanced Simulation Library
aslLBGKBC.h
Go to the documentation of this file.
1 /*
2  * Advanced Simulation Library <http://asl.org.il>
3  *
4  * Copyright 2015 Avtech Scientific <http://avtechscientific.com>
5  *
6  *
7  * This file is part of Advanced Simulation Library (ASL).
8  *
9  * ASL is free software: you can redistribute it and/or modify it
10  * under the terms of the GNU Affero General Public License as
11  * published by the Free Software Foundation, version 3 of the License.
12  *
13  * ASL 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 Affero General Public License for more details.
17  *
18  * You should have received a copy of the GNU Affero General Public License
19  * along with ASL. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 
24 #ifndef ASLLBGKBC_H
25 #define ASLLBGKBC_H
26 
27 #include "aslBCond.h"
28 #include "acl/aclMath/aclVectorOfElementsDef.h"
29 
30 namespace acl{
31  class Kernel;
32  typedef std::shared_ptr<acl::Kernel> SPKernel;
33  class KernelMerger;
34  typedef std::shared_ptr<acl::KernelMerger> SPKernelMerger;
35 }
36 
37 namespace asl
38 {
39  class LBGK;
40  typedef std::shared_ptr<LBGK> SPLBGK;
41  class PositionFunction;
42  typedef std::shared_ptr<PositionFunction> SPPositionFunction;
43 
44 
45  class BCLBGKCommon:public BCond
46  {
47  protected:
48  SPLBGK num;
49  std::vector<acl::SPKernel> kernels;
51 
52  AVec<int> directionGroupsShifts;
53  AVec<int> directionGroupsSizes;
54 
56  public:
58  virtual void execute();
59  };
60 
62 
67  class BCNoSlip: public BCLBGKCommon
68  {
69  public:
71  virtual void init();
72  };
73 
75 
79  class BCConstantPressure: public BCLBGKCommon
80  {
81  protected:
83  public:
85  virtual void init();
86  };
87 
89 
99  class BCConstantVelocity: public BCLBGKCommon
100  {
101  protected:
103  public:
105  virtual void init();
106  };
107 
109 
117  {
118  protected:
121  public:
123  const acl::VectorOfElements & p,
124  const acl::VectorOfElements & v);
125  virtual void init();
126  };
127 
129 
133  class BCNoSlipMap:public BCondWithMap
134  {
135  protected:
136  std::unique_ptr<acl::Kernel> kernel;
137  SPLBGK num;
138  public:
141  virtual void execute();
142  virtual void init();
143  };
144 
146 
149  class BCVelocityMap:public BCondWithMap
150  {
151  protected:
152  std::unique_ptr<acl::Kernel> kernel;
153  SPLBGK num;
155 
156  public:
165  virtual void execute();
166  virtual void init();
167  };
168 
173  {
174  protected:
175  std::unique_ptr<acl::Kernel> kernel;
176  SPLBGK num;
179  public:
188  virtual void execute();
189  virtual void init();
190  };
191 
193 
201  {
202  protected:
203  std::unique_ptr<acl::Kernel> kernel;
204  SPLBGK num;
207  public:
213  virtual void execute();
214  virtual void init();
215  };
216 
218 
225  {
226  protected:
227  std::unique_ptr<acl::Kernel> kernel;
228  SPLBGK num;
232  public:
239  virtual void execute();
240  virtual void init();
241  };
242 
248  {
249  protected:
250  std::unique_ptr<acl::Kernel> kernel;
251  SPLBGK num;
253  public:
258  virtual void execute();
259  virtual void init();
260  };
261 
266  {
267  protected:
268  std::unique_ptr<acl::Kernel> kernel;
269  SPLBGK num;
271  public:
276  virtual void execute();
277  virtual void init();
278  };
279 
281  SPBCond generateBCNoSlip(SPLBGK nm, const std::vector<SlicesNames> & sl);
283  SPBCond generateBCConstantVelocity(SPLBGK nm, AVec<> v, const std::vector<SlicesNames> & sl);
285  SPBCond generateBCConstantPressure(SPLBGK nm, double p, const std::vector<SlicesNames> & sl);
288  double p,
289  AVec<> v,
290  const std::vector<SlicesNames> & sl);
295  double p,
296  AVec<> v,
312  SPAbstractDataWithGhostNodes computationalDomain);
319  double p0,
320  double limitingFactor,
324  double beta,
325  double p0,
326  double limitingFactor,
332 
337 
338 } //asl
339 
340 #endif //ASLBGKBC_H
asl::ComputeSurfaceForceMap::execute
virtual void execute()
Executes the numerical procedure.
asl::BCConstantPressureVelocityMap::execute
virtual void execute()
Executes the numerical procedure.
asl::ComputeSurfaceForceMap::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCTransportLimitedDepositionMap::init
virtual void init()
Builds the necesery internal data and kernels.
asl::ComputeSurfaceFluxMap::~ComputeSurfaceFluxMap
~ComputeSurfaceFluxMap()
asl::BCLBGKCommon
Definition: aslLBGKBC.h:46
asl::BCNoSlip::init
virtual void init()
Builds the necesery internal data and kernels.
asl::ComputeSurfaceForceMap::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslLBGKBC.h:268
asl::generateBCKineticsLimitedDeposition
SPNumMethod generateBCKineticsLimitedDeposition(SPLBGK nm, double beta, double p0, double limitingFactor, SPAbstractDataWithGhostNodes map)
asl::BCVelocityMap::BCVelocityMap
BCVelocityMap(SPLBGK nm, SPPositionFunction v, SPAbstractDataWithGhostNodes map)
asl::generateBCNoSlipVel
SPNumMethod generateBCNoSlipVel(SPLBGK nmU, SPAbstractDataWithGhostNodes map)
asl::SPNumMethod
std::shared_ptr< NumMethod > SPNumMethod
Definition: aslNumMethod.h:44
asl::BCKineticsLimitedDepositionMap::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslLBGKBC.h:227
asl::BCKineticsLimitedDepositionMap::limitingFactor
acl::VectorOfElements limitingFactor
Definition: aslLBGKBC.h:230
asl::SPBCond
std::shared_ptr< BCond > SPBCond
Definition: aslBCond.h:88
asl::BCKineticsLimitedDepositionMap::num
SPLBGK num
Definition: aslLBGKBC.h:228
asl::ComputeSurfaceFluxMap::num
SPLBGK num
Definition: aslLBGKBC.h:251
asl::BCConstantVelocity
Bondary condition corresponding wall with given velocity for uncompressible.
Definition: aslLBGKBC.h:100
asl::BCNoSlip::BCNoSlip
BCNoSlip(SPLBGK nm)
asl::SPDataWithGhostNodesACLData
std::shared_ptr< DataWithGhostNodesACLData > SPDataWithGhostNodesACLData
Definition: aslGenerators.h:47
asl::generateBCConstantPressureVelocity
SPBCond generateBCConstantPressureVelocity(SPLBGK nm, double p, AVec<> v, const std::vector< SlicesNames > &sl)
asl::ComputeSurfaceForceMap::forceField
SPDataWithGhostNodesACLData forceField
Definition: aslLBGKBC.h:270
asl::BCConstantVelocity::BCConstantVelocity
BCConstantVelocity(SPLBGK nm, const acl::VectorOfElements &v)
asl::ComputeSurfaceForceMap::num
SPLBGK num
Definition: aslLBGKBC.h:269
asl::BCKineticsLimitedDepositionMap
Set outflux corresponding to kinetics and transport limitations of the deposition rate.
Definition: aslLBGKBC.h:225
acl::SPKernel
std::shared_ptr< Kernel > SPKernel
Definition: aclKernelMerger.h:34
asl::ComputeSurfaceFluxMap::fluxField
SPDataWithGhostNodesACLData fluxField
Definition: aslLBGKBC.h:252
asl::BCTransportLimitedDepositionMap::num
SPLBGK num
Definition: aslLBGKBC.h:204
asl::BCNoSlipMap::execute
virtual void execute()
Executes the numerical procedure.
asl::BCKineticsLimitedDepositionMap::execute
virtual void execute()
Executes the numerical procedure.
asl::BCLBGKCommon::BCLBGKCommon
BCLBGKCommon(SPLBGK nm)
asl::BCConstantPressureVelocity::BCConstantPressureVelocity
BCConstantPressureVelocity(SPLBGK nm, const acl::VectorOfElements &p, const acl::VectorOfElements &v)
asl::BCLBGKCommon::sortDirections
void sortDirections()
asl::BCConstantPressureVelocityMap::init
virtual void init()
Builds the necesery internal data and kernels.
aslBCond.h
asl::ComputeSurfaceFluxMap::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCTransportLimitedDepositionMap::BCTransportLimitedDepositionMap
BCTransportLimitedDepositionMap(SPLBGK nm, acl::VectorOfElements p, acl::VectorOfElements lF, SPAbstractDataWithGhostNodes map)
asl::generateBCNoSlipRho
SPNumMethod generateBCNoSlipRho(SPLBGK nmU, SPAbstractDataWithGhostNodes map)
asl::ComputeSurfaceForceMap::~ComputeSurfaceForceMap
~ComputeSurfaceForceMap()
asl::BCNoSlipMap::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslLBGKBC.h:136
asl::BCKineticsLimitedDepositionMap::beta
acl::VectorOfElements beta
Definition: aslLBGKBC.h:231
asl::BCNoSlipMap::BCNoSlipMap
BCNoSlipMap(SPLBGK nm, SPAbstractDataWithGhostNodes map)
asl::generateComputeSurfaceForce
SPNumMethod generateComputeSurfaceForce(SPLBGK nm, SPDataWithGhostNodesACLData fF, SPAbstractDataWithGhostNodes map)
asl::BCConstantPressureVelocity
Bondary condition corresponding wall with given velocity for uncompressible.
Definition: aslLBGKBC.h:117
asl::BCTransportLimitedDepositionMap::limitingFactor
acl::VectorOfElements limitingFactor
Definition: aslLBGKBC.h:206
asl::BCConstantVelocity::init
virtual void init()
Builds the necesery internal data and kernels.
asl::SPLBGK
std::shared_ptr< LBGK > SPLBGK
Definition: aslLBGK.h:133
asl::BCKineticsLimitedDepositionMap::BCKineticsLimitedDepositionMap
BCKineticsLimitedDepositionMap(SPLBGK nm, acl::VectorOfElements p, acl::VectorOfElements lF, acl::VectorOfElements b, SPAbstractDataWithGhostNodes map)
asl::generateBCNoSlip
SPBCond generateBCNoSlip(SPLBGK nm, const std::vector< SlicesNames > &sl)
asl::BCNoSlipMap::num
SPLBGK num
Definition: aslLBGKBC.h:137
asl::ComputeSurfaceFluxMap::ComputeSurfaceFluxMap
ComputeSurfaceFluxMap(SPLBGK nm, SPDataWithGhostNodesACLData fF, SPAbstractDataWithGhostNodes map)
asl::BCLBGKCommon::num
SPLBGK num
Definition: aslLBGKBC.h:48
asl::generateBCVelocityVel
SPNumMethod generateBCVelocityVel(SPLBGK nm, SPPositionFunction v, SPAbstractDataWithGhostNodes map)
acl::VectorOfElements
The class represents several Element.
Definition: aclVectorOfElementsDef.h:92
asl::BCVelocityMap
Definition: aslLBGKBC.h:150
asl::BCVelocityMap::num
SPLBGK num
Definition: aslLBGKBC.h:153
asl::BCLBGKCommon::km
acl::SPKernelMerger km
Definition: aslLBGKBC.h:50
asl::BCConstantPressureVelocityMap::BCConstantPressureVelocityMap
BCConstantPressureVelocityMap(SPLBGK nm, acl::VectorOfElements p, acl::VectorOfElements v, SPAbstractDataWithGhostNodes map)
asl::BCKineticsLimitedDepositionMap::~BCKineticsLimitedDepositionMap
~BCKineticsLimitedDepositionMap()
asl::BCConstantPressureVelocity::init
virtual void init()
Builds the necesery internal data and kernels.
asl::generateComputeSurfaceFlux
SPNumMethod generateComputeSurfaceFlux(SPLBGK nm, SPDataWithGhostNodesACLData fF, SPAbstractDataWithGhostNodes map)
asl::BCConstantPressureVelocity::velocity
acl::VectorOfElements velocity
Definition: aslLBGKBC.h:120
asl::BCNoSlipMap::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCondWithMap::map
SPAbstractDataWithGhostNodes map
boundary description for the particular BC
Definition: aslBCond.h:111
asl::generateBCVelocity
SPNumMethod generateBCVelocity(SPLBGK nm, SPPositionFunction v, SPAbstractDataWithGhostNodes map)
asl::BCLBGKCommon::kernels
std::vector< acl::SPKernel > kernels
Definition: aslLBGKBC.h:49
asl::BCLBGKCommon::directionGroupsShifts
AVec< int > directionGroupsShifts
Definition: aslLBGKBC.h:52
asl::BCConstantPressure::pressure
acl::VectorOfElements pressure
Definition: aslLBGKBC.h:82
asl::generateBCConstantVelocity
SPBCond generateBCConstantVelocity(SPLBGK nm, AVec<> v, const std::vector< SlicesNames > &sl)
asl::BCondWithMap::computationalDomain
SPAbstractDataWithGhostNodes computationalDomain
Computational domain which contains all boundaries and the particular boundary as well.
Definition: aslBCond.h:114
asl::BCNoSlipMap
Bondary condition corresponding to a rigid wall ( )
Definition: aslLBGKBC.h:134
asl::BCTransportLimitedDepositionMap
Set outflux corresponding to transport limitation of the deposition rate.
Definition: aslLBGKBC.h:201
asl::BCTransportLimitedDepositionMap::p0
acl::VectorOfElements p0
Definition: aslLBGKBC.h:205
acl::SPKernelMerger
std::shared_ptr< acl::KernelMerger > SPKernelMerger
Definition: aslLBGKBC.h:33
asl::BCConstantPressureVelocityMap::~BCConstantPressureVelocityMap
~BCConstantPressureVelocityMap()
asl::BCTransportLimitedDepositionMap::~BCTransportLimitedDepositionMap
~BCTransportLimitedDepositionMap()
asl::ComputeSurfaceFluxMap::execute
virtual void execute()
Executes the numerical procedure.
asl::BCVelocityMap::BCVelocityMap
BCVelocityMap(SPLBGK nm, SPPositionFunction v, SPAbstractDataWithGhostNodes map, SPAbstractDataWithGhostNodes computationalDomain)
asl::BCConstantPressure::init
virtual void init()
Builds the necesery internal data and kernels.
asl::ComputeSurfaceForceMap::ComputeSurfaceForceMap
ComputeSurfaceForceMap(SPLBGK nm, SPDataWithGhostNodesACLData fF, SPAbstractDataWithGhostNodes map)
asl::BCNoSlipMap::~BCNoSlipMap
~BCNoSlipMap()
asl::BCTransportLimitedDepositionMap::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslLBGKBC.h:203
asl::ComputeSurfaceFluxMap
Definition: aslLBGKBC.h:248
asl::BCConstantPressureVelocityMap::BCConstantPressureVelocityMap
BCConstantPressureVelocityMap(SPLBGK nm, acl::VectorOfElements p, SPAbstractDataWithGhostNodes map)
asl::BCVelocityMap::velocity
SPPositionFunction velocity
Definition: aslLBGKBC.h:154
asl::BCConstantPressure::BCConstantPressure
BCConstantPressure(SPLBGK nm, const acl::VectorOfElements &p)
asl::BCVelocityMap::execute
virtual void execute()
Executes the numerical procedure.
asl::BCondWithMap
Virtual class describes general interface for boundary conditions.
Definition: aslBCond.h:101
asl::BCConstantPressureVelocityMap::num
SPLBGK num
Definition: aslLBGKBC.h:176
asl::BCTransportLimitedDepositionMap::execute
virtual void execute()
Executes the numerical procedure.
asl::SPPositionFunction
std::shared_ptr< PositionFunction > SPPositionFunction
Definition: aslPositionFunction.h:58
asl::BCConstantPressureVelocityMap::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslLBGKBC.h:175
asl::BCConstantVelocity::velocity
acl::VectorOfElements velocity
Definition: aslLBGKBC.h:102
asl::BCVelocityMap::init
virtual void init()
Builds the necesery internal data and kernels.
acl::map
std::shared_ptr< T > map(ElementData m)
Definition: aclMemBlock.h:68
asl::BCKineticsLimitedDepositionMap::p0
acl::VectorOfElements p0
Definition: aslLBGKBC.h:229
asl::ComputeSurfaceForceMap
Definition: aslLBGKBC.h:266
asl::BCLBGKCommon::directionGroupsSizes
AVec< int > directionGroupsSizes
Definition: aslLBGKBC.h:53
asl::BCVelocityMap::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslLBGKBC.h:152
asl::BCLBGKCommon::execute
virtual void execute()
Executes the numerical procedure.
asl::BCNoSlip
Bondary condition corresponding to a rigid wall ( )
Definition: aslLBGKBC.h:68
asl::ComputeSurfaceFluxMap::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslLBGKBC.h:250
asl::BCKineticsLimitedDepositionMap::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCVelocityMap::~BCVelocityMap
~BCVelocityMap()
asl::AVec<>
asl::BCConstantPressureVelocity::pressure
acl::VectorOfElements pressure
Definition: aslLBGKBC.h:119
asl
Advanced Simulation Library.
Definition: aslDataInc.h:31
acl
Advanced Computational Language.
Definition: acl.h:41
asl::generateBCConstantPressure
SPBCond generateBCConstantPressure(SPLBGK nm, double p, const std::vector< SlicesNames > &sl)
asl::generateBCTransportLimitedDeposition
SPNumMethod generateBCTransportLimitedDeposition(SPLBGK nm, double p0, double limitingFactor, SPAbstractDataWithGhostNodes map)
asl::BCConstantPressure
Bondary condition corresponding an in- or outflow boundary conditions with a given pressure.
Definition: aslLBGKBC.h:80
asl::BCConstantPressureVelocityMap::velocity
acl::VectorOfElements velocity
Definition: aslLBGKBC.h:178
asl::BCConstantPressureVelocityMap
Definition: aslLBGKBC.h:173
asl::BCConstantPressureVelocityMap::pressure
acl::VectorOfElements pressure
Definition: aslLBGKBC.h:177
asl::SPAbstractDataWithGhostNodes
std::shared_ptr< AbstractDataWithGhostNodes > SPAbstractDataWithGhostNodes
Definition: aslGenerators.h:50