PhasicFlow
v0.1
www.cemf.ir
peakableRegion.cpp
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
22
#include "
peakableRegion.hpp
"
23
#include "
dictionary.hpp
"
24
25
pFlow::peakableRegion::peakableRegion
26
(
27
const
word
& type,
const
dictionary
& dict
28
)
29
{
30
CONSUME_PARAM
(type);
31
CONSUME_PARAM
(dict);
32
}
33
34
35
pFlow::uniquePtr<pFlow::peakableRegion>
pFlow::peakableRegion::create
36
(
37
const
word
& type,
38
const
dictionary
& dict
39
)
40
{
41
word
regionType =
angleBracketsNames
(
"peakableRegion"
, type);
42
43
if
( wordvCtorSelector_.search(regionType) )
44
{
45
return
wordvCtorSelector_[regionType] (type, dict);
46
}
47
else
48
{
49
printKeys
50
(
51
fatalError
<<
"Ctor Selector "
<< regionType <<
" dose not exist. \n"
52
<<
"Avaiable ones are: \n\n"
53
,
54
wordvCtorSelector_
55
);
56
fatalExit
;
57
}
58
59
return
nullptr
;
60
}
fatalExit
#define fatalExit
Definition:
error.hpp:57
pFlow::peakableRegion::peakableRegion
peakableRegion(const word &type, const dictionary &dict)
Definition:
peakableRegion.cpp:26
pFlow::word
std::string word
Definition:
builtinTypes.hpp:63
pFlow::printKeys
iOstream & printKeys(iOstream &os, const wordHashMap< T > &m)
pFlow::angleBracketsNames
word angleBracketsNames(const word &w1, const word &w2)
Definition:
bTypesFunctions.cpp:131
dictionary.hpp
pFlow::peakableRegion::create
static uniquePtr< peakableRegion > create(const word &type, const dictionary &dict)
Definition:
peakableRegion.cpp:36
peakableRegion.hpp
fatalError
#define fatalError
Definition:
error.hpp:36
pFlow::uniquePtr< pFlow::peakableRegion >
CONSUME_PARAM
#define CONSUME_PARAM(x)
Definition:
pFlowMacros.hpp:38
pFlow::dictionary
Definition:
dictionary.hpp:38
src
phasicFlow
structuredData
peakableRegion
peakableRegion
peakableRegion.cpp
Generated by
1.8.17