www.cemf.ir
boundaryPeriodic.hpp
Go to the documentation of this file.
1 /*------------------------------- phasicFlow ---------------------------------
2  O C enter of
3  O O E ngineering and
4  O O M ultiscale modeling of
5  OOOOOOO F luid flow
6 ------------------------------------------------------------------------------
7  Copyright (C): www.cemf.ir
8  email: hamid.r.norouzi AT gmail.com
9 ------------------------------------------------------------------------------
10 Licence:
11  This file is part of phasicFlow code. It is a free software for simulating
12  granular and multiphase flows. You can redistribute it and/or modify it under
13  the terms of GNU General Public License v3 or any other later versions.
14 
15  phasicFlow is distributed to help others in their research in the field of
16  granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 -----------------------------------------------------------------------------*/
20 
21 #ifndef __boundaryPeriodic_hpp__
22 #define __boundaryPeriodic_hpp__
23 
24 
25 #include "boundaryBase.hpp"
26 
27 namespace pFlow
28 {
29 
31 :
32  public boundaryBase
33 {
34 private:
35 
37 
39 
40 public:
41 
42  TypeInfo("boundary<periodic>");
43 
45  const dictionary &dict,
46  const plane &bplane,
47  internalPoints &internal,
48  boundaryList &bndrs,
49  uint32 thisIndex);
50 
51 
52  ~boundaryPeriodic() override= default;
53 
54  add_vCtor
55  (
59  );
60 
61  real neighborLength()const override;
62 
63  realx3 boundaryExtensionLength()const override;
64 
65  bool beforeIteration(
66  uint32 step,
67  const timeInfo& ti,
68  bool updateIter,
69  bool iterBeforeUpdate ,
70  bool& callAgain
71  ) final ;
72 
73  bool iterate(const timeInfo& ti) final;
74 
75  bool afterIteration(const timeInfo& ti)final;
76 
77 };
78 
79 }
80 
81 #endif
pFlow::boundaryPeriodic::TypeInfo
TypeInfo("boundary<periodic>")
pFlow::internalPoints
Definition: internalPoints.hpp:38
pFlow::boundaryPeriodic::afterIteration
bool afterIteration(const timeInfo &ti) final
Definition: boundaryPeriodic.cpp:130
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::plane
Definition: plane.hpp:30
pFlow::boundaryPeriodic::boundaryExtensionLength
realx3 boundaryExtensionLength() const override
The extention length (in vector form) for the boundary as required by each boundary type.
Definition: boundaryPeriodic.cpp:47
pFlow::boundaryPeriodic
Definition: boundaryPeriodic.hpp:30
boundaryBase.hpp
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::boundaryList
Definition: boundaryList.hpp:35
pFlow::boundaryPeriodic::add_vCtor
add_vCtor(boundaryBase, boundaryPeriodic, dictionary)
pFlow::timeInfo
Definition: timeInfo.hpp:28
pFlow
Definition: demGeometry.hpp:27
pFlow::boundaryPeriodic::neighborLength
real neighborLength() const override
The distance length from boundary plane where neighbor particles still exist in that distance.
Definition: boundaryPeriodic.cpp:42
pFlow::boundaryBase
Definition: boundaryBase.hpp:42
pFlow::boundaryPeriodic::iterate
bool iterate(const timeInfo &ti) final
Definition: boundaryPeriodic.cpp:125
pFlow::boundaryPeriodic::extensionLength_
real extensionLength_
Definition: boundaryPeriodic.hpp:38
pFlow::boundaryPeriodic::mirrorBoundaryIndex_
uint32 mirrorBoundaryIndex_
Definition: boundaryPeriodic.hpp:36
pFlow::triple< real >
pFlow::boundaryPeriodic::boundaryPeriodic
boundaryPeriodic(const dictionary &dict, const plane &bplane, internalPoints &internal, boundaryList &bndrs, uint32 thisIndex)
Definition: boundaryPeriodic.cpp:27
pFlow::dictionary
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
Definition: dictionary.hpp:67
pFlow::boundaryPeriodic::beforeIteration
bool beforeIteration(uint32 step, const timeInfo &ti, bool updateIter, bool iterBeforeUpdate, bool &callAgain) final
Definition: boundaryPeriodic.cpp:53
pFlow::boundaryPeriodic::~boundaryPeriodic
~boundaryPeriodic() override=default