www.cemf.ir
subDomain.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 __subDomain_hpp__
22 #define __subDomain_hpp__
23 
24 #include "domain.hpp"
25 
26 
27 namespace pFlow
28 {
29 
30 class subDomain
31 {
32 protected:
33 
36 
39 
40 
43 
44 
45 
46 public:
47 
48  // - type info
49  TypeInfo("subDomain");
50 
51 
53  const domain& gDomain,
54  const domain& thisD,
55  const dictionary& bDicts)
56  :
57  globalDomain_(gDomain),
58  thisDomain_(thisD),
59  boundaryDict_(bDicts)
60  {}
61 
62  const auto& thisDomain()const
63  {
64  return thisDomain_;
65  }
66 
67  const dictionary& leftDict()const
68  {
69  return boundaryDict_.subDict("left");
70  }
71 
72  const dictionary& rightDict()const
73  {
74  return boundaryDict_.subDict("right");
75  }
76 
77  const dictionary& bottomDict()const
78  {
79  return boundaryDict_.subDict("bottom");;
80  }
81 
82  const dictionary& topDict()const
83  {
84  return boundaryDict_.subDict("top");;
85  }
86 
87  const dictionary& rearDict()const
88  {
89  return boundaryDict_.subDict("rear");;
90  }
91 
92  const dictionary& frontDict()const
93  {
94  return boundaryDict_.subDict("front");;
95  }
96 
97 }; // subDomain
98 
99 
100 
101 }
102 
103 
104 #endif //__subDomain_hpp__
pFlow::subDomain::thisDomain
const auto & thisDomain() const
Definition: subDomain.hpp:62
pFlow::subDomain::thisDomain_
domain thisDomain_
the actual limits of this processor domain
Definition: subDomain.hpp:42
pFlow::subDomain::leftDict
const dictionary & leftDict() const
Definition: subDomain.hpp:67
domain.hpp
pFlow::subDomain::topDict
const dictionary & topDict() const
Definition: subDomain.hpp:82
pFlow::subDomain::TypeInfo
TypeInfo("subDomain")
pFlow::subDomain::rightDict
const dictionary & rightDict() const
Definition: subDomain.hpp:72
pFlow
Definition: demGeometry.hpp:27
pFlow::subDomain::globalDomain_
const domain & globalDomain_
the actual limits of global domain
Definition: subDomain.hpp:35
pFlow::subDomain::boundaryDict_
const dictionary & boundaryDict_
dictionary of boundaries
Definition: subDomain.hpp:38
pFlow::dictionary::subDict
dictionary & subDict(const word &keyword)
ref to a subdictioanry fatalExit if not found
Definition: dictionary.cpp:560
pFlow::subDomain
Definition: subDomain.hpp:30
pFlow::subDomain::bottomDict
const dictionary & bottomDict() const
Definition: subDomain.hpp:77
pFlow::domain
Definition: domain.hpp:31
pFlow::subDomain::subDomain
subDomain(const domain &gDomain, const domain &thisD, const dictionary &bDicts)
Definition: subDomain.hpp:52
pFlow::subDomain::frontDict
const dictionary & frontDict() const
Definition: subDomain.hpp:92
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::subDomain::rearDict
const dictionary & rearDict() const
Definition: subDomain.hpp:87