www.cemf.ir
regularSimulationDomain.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 __regularSimulationDomain_hpp__
22 #define __regularSimulationDomain_hpp__
23 
24 #include "simulationDomain.hpp"
25 
26 namespace pFlow
27 {
28 
30 :
31  public simulationDomain
32 {
33 private:
34 
36 
38 
39  bool createBoundaryDicts() final;
40 
41  bool setThisDomain() final;
42 
43 public:
44 
45  TypeInfo("simulationDomain<regular>");
46 
47  explicit regularSimulationDomain(systemControl& control);
48 
49  ~regularSimulationDomain() final = default;
50 
52 
53  bool initialUpdateDomains(span<realx3> pointPos) final;
54 
55  uint32 initialNumberInThis() const final;
56 
57  uint32 numberToBeImported() const final;
58 
59  uint32 numberToBeExported() const final;
60 
64  bool domainActive() const final;
65 
67  const domain& thisDomain() const final;
68 
70  span<char> src,
71  span<char> dst,
72  size_t sizeOfElement
73  ) const final;
74 
80  const final;
81 
82  bool initialTransferBlockData(span<real> src, span<real> dst)
83  const final;
84 
86  const final;
87 
89  const final;
90 
91 };
92 
93 }
94 
95 #endif //__regularSimulationDomain_hpp__
pFlow::span
Definition: span.hpp:31
pFlow::regularSimulationDomain::domainActive
bool domainActive() const final
Is this domain active? Active mean, there is particle in it and boundaries and other entities of simu...
Definition: regularSimulationDomain.cpp:112
pFlow::regularSimulationDomain::initialUpdateDomains
bool initialUpdateDomains(span< realx3 > pointPos) final
Definition: regularSimulationDomain.cpp:81
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::regularSimulationDomain::thisDomain_
domain thisDomain_
Definition: regularSimulationDomain.hpp:35
pFlow::regularSimulationDomain::thisDomain
const domain & thisDomain() const final
return the simulation domain of this processor
Definition: regularSimulationDomain.cpp:118
pFlow::regularSimulationDomain::numberToBeExported
uint32 numberToBeExported() const final
Definition: regularSimulationDomain.cpp:106
pFlow::regularSimulationDomain::setThisDomain
bool setThisDomain() final
Definition: regularSimulationDomain.cpp:67
simulationDomain.hpp
pFlow::regularSimulationDomain
Definition: regularSimulationDomain.hpp:29
pFlow
Definition: demGeometry.hpp:27
pFlow::regularSimulationDomain::add_vCtor
add_vCtor(simulationDomain, regularSimulationDomain, systemControl)
pFlow::int32
int int32
Definition: builtinTypes.hpp:50
pFlow::regularSimulationDomain::initialTransferBlockData
bool initialTransferBlockData(span< char > src, span< char > dst, size_t sizeOfElement) const final
Definition: regularSimulationDomain.cpp:124
pFlow::regularSimulationDomain::createBoundaryDicts
bool createBoundaryDicts() final
Definition: regularSimulationDomain.cpp:25
pFlow::regularSimulationDomain::numberToBeImported
uint32 numberToBeImported() const final
Number of points to be imported after updating domains.
Definition: regularSimulationDomain.cpp:101
pFlow::regularSimulationDomain::TypeInfo
TypeInfo("simulationDomain<regular>")
pFlow::simulationDomain
Definition: simulationDomain.hpp:38
pFlow::domain
Definition: domain.hpp:31
pFlow::regularSimulationDomain::initialNumberInThis
uint32 initialNumberInThis() const final
Definition: regularSimulationDomain.cpp:89
pFlow::triple< real >
pFlow::regularSimulationDomain::initialNumPoints_
uint32 initialNumPoints_
Definition: regularSimulationDomain.hpp:37