www.cemf.ir
particleIdHandler.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 __particleIdHandler_hpp__
22 #define __particleIdHandler_hpp__
23 
24 
25 #include "pointFields.hpp"
26 
27 namespace pFlow
28 {
29 
31 :
32  public uint32PointField_D
33 {
34 
35 private:
36 
37  virtual
38  bool initialIdCheck()=0;
39 
40 public:
41 
43  ClassInfo("particleIdHandler");
44 
46 
48  (
52  (pStruct)
53  );
54 
55  ~particleIdHandler()override=default;
56 
57  virtual
58  Pair<uint32, uint32> getIdRange(uint32 nNewParticles)=0;
59 
60  virtual
61  uint32 maxId()const = 0;
62 
63 
64 
65  // heat change for possible insertion of particles
66  // overrdie from internalField
67  bool hearChanges
68  (
69  real t,
70  real dt,
71  uint32 iter,
72  const message& msg,
73  const anyList& varList
74  ) override;
75 
76  static
79 
80 };
81 
82 }
83 
84 #endif
pFlow::message
Definition: message.hpp:33
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::particleIdHandler::create_vCtor
create_vCtor(particleIdHandler, pointStructure,(pointStructure &pStruct),(pStruct))
pFlow::Pair
Kokkos::pair< T1, T2 > Pair
Pair of two variables.
Definition: KokkosTypes.hpp:85
pFlow::pointField::pStruct
const pointStructure & pStruct() const
Definition: pointField.hpp:134
pFlow::particleIdHandler::ClassInfo
ClassInfo("particleIdHandler")
class info
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::particleIdHandler
Definition: particleIdHandler.hpp:30
pFlow::particleIdHandler::getIdRange
virtual Pair< uint32, uint32 > getIdRange(uint32 nNewParticles)=0
pointFields.hpp
pFlow::particleIdHandler::~particleIdHandler
~particleIdHandler() override=default
pFlow
Definition: demGeometry.hpp:27
pFlow::pointField
Definition: pointField.hpp:33
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::anyList
Definition: anyList.hpp:35
pFlow::particleIdHandler::particleIdHandler
particleIdHandler(pointStructure &pStruct)
Definition: particleIdHandler.cpp:23
pFlow::particleIdHandler::maxId
virtual uint32 maxId() const =0
pFlow::particleIdHandler::initialIdCheck
virtual bool initialIdCheck()=0
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
pFlow::particleIdHandler::hearChanges
bool hearChanges(real t, real dt, uint32 iter, const message &msg, const anyList &varList) override
Definition: particleIdHandler.cpp:43
pFlow::particleIdHandler::create
static uniquePtr< particleIdHandler > create(pointStructure &pStruct)
Definition: particleIdHandler.cpp:74