PhasicFlow
v0.1
www.cemf.ir
InsertionRegion.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 __InsertionRegion_hpp__
22
#define __InsertionRegion_hpp__
23
24
25
#include "
insertionRegion.hpp
"
26
#include "
dictionary.hpp
"
27
28
namespace
pFlow
29
{
30
31
template
<
typename
ShapeType>
32
class
InsertionRegion
33
:
34
public
insertionRegion
35
{
36
protected
:
37
// - type of particle shapes
38
const
ShapeType&
shapes_
;
39
40
static
bool
checkForContact
(
41
const
realx3Vector
& pos,
42
const
realVector
& diams,
43
const
realx3
& p,
44
const
real
& d);
45
46
public
:
47
48
// - type info
49
TypeInfoTemplateNV
(
"insertionRegion"
, ShapeType);
50
51
InsertionRegion
(
const
dictionary
& dict,
const
ShapeType& shapes);
52
53
InsertionRegion
(
const
InsertionRegion<ShapeType>
& ) =
default
;
54
55
InsertionRegion
(
InsertionRegion<ShapeType>
&&) =
default
;
56
57
InsertionRegion<ShapeType>
&
operator=
(
const
InsertionRegion<ShapeType>
& ) =
default
;
58
59
InsertionRegion<ShapeType>
&
operator=
(
InsertionRegion<ShapeType>
&&) =
default
;
60
61
62
auto
clone
()
const
63
{
64
return
makeUnique<InsertionRegion<ShapeType>>(*this);
65
}
66
67
auto
clonePtr
()
const
68
{
69
return
new
InsertionRegion<ShapeType>
(*
this
);
70
}
71
72
73
bool
insertParticles
74
(
75
real
currentTime,
76
real
dt,
77
wordVector
& names,
78
realx3Vector
& pos,
79
bool
& insertionOccured
80
);
81
82
//bool read(const dictionary& dict);
83
84
//bool write(dictionary& dict)const;
85
86
};
87
88
89
90
}
// pFlow
91
92
93
#include "
InsertionRegion.cpp
"
94
95
#endif
pFlow::InsertionRegion::operator=
InsertionRegion< ShapeType > & operator=(const InsertionRegion< ShapeType > &)=default
pFlow::InsertionRegion::shapes_
const ShapeType & shapes_
Definition:
InsertionRegion.hpp:38
pFlow::real
float real
Definition:
builtinTypes.hpp:46
pFlow::InsertionRegion::insertParticles
bool insertParticles(real currentTime, real dt, wordVector &names, realx3Vector &pos, bool &insertionOccured)
Definition:
InsertionRegion.cpp:55
pFlow::InsertionRegion::checkForContact
static bool checkForContact(const realx3Vector &pos, const realVector &diams, const realx3 &p, const real &d)
Definition:
InsertionRegion.cpp:23
pFlow::InsertionRegion
Definition:
InsertionRegion.hpp:32
pFlow::insertionRegion
Definition:
insertionRegion.hpp:34
pFlow
Definition:
demComponent.hpp:28
pFlow::InsertionRegion::clone
auto clone() const
Definition:
InsertionRegion.hpp:62
dictionary.hpp
insertionRegion.hpp
pFlow::InsertionRegion::clonePtr
auto clonePtr() const
Definition:
InsertionRegion.hpp:67
InsertionRegion.cpp
pFlow::InsertionRegion::InsertionRegion
InsertionRegion(const dictionary &dict, const ShapeType &shapes)
Definition:
InsertionRegion.cpp:41
pFlow::triple< real >
pFlow::InsertionRegion::TypeInfoTemplateNV
TypeInfoTemplateNV("insertionRegion", ShapeType)
pFlow::Vector< realx3 >
pFlow::dictionary
Definition:
dictionary.hpp:38
src
Particles
Insertion
InsertionRegion
InsertionRegion.hpp
Generated by
1.8.17