PhasicFlow
v0.1
www.cemf.ir
integration.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
#include "
integration.hpp
"
22
23
pFlow::integration::integration
24
(
25
const
word
&
baseName
,
26
repository
& owner,
27
const
pointStructure
&
pStruct
,
28
const
word
& method
29
)
30
:
31
owner_(owner),
32
baseName_(
baseName
),
33
pStruct_(
pStruct
)
34
{
35
CONSUME_PARAM
(method);
36
}
37
38
39
pFlow::uniquePtr<pFlow::integration>
40
pFlow::integration::create
(
41
const
word
&
baseName
,
42
repository
& owner,
43
const
pointStructure
&
pStruct
,
44
const
word
& method)
45
{
46
if
( wordvCtorSelector_.search(method) )
47
{
48
return
wordvCtorSelector_[method] (
baseName
,
owner
,
pStruct
, method);
49
}
50
else
51
{
52
printKeys
53
(
54
fatalError
<<
"Ctor Selector "
<< method <<
" dose not exist. \n"
55
<<
"Avaiable ones are: \n\n"
56
,
57
wordvCtorSelector_
58
);
59
fatalExit
;
60
}
61
return
nullptr
;
62
}
fatalExit
#define fatalExit
Definition:
error.hpp:57
pFlow::integration::pStruct
const auto & pStruct() const
Definition:
integration.hpp:72
pFlow::word
std::string word
Definition:
builtinTypes.hpp:63
pFlow::printKeys
iOstream & printKeys(iOstream &os, const wordHashMap< T > &m)
pFlow::integration::baseName
const word & baseName() const
Definition:
integration.hpp:89
pFlow::baseName
word baseName(const word &w, char sep='.')
Definition:
bTypesFunctions.cpp:156
pFlow::pointStructure
Definition:
pointStructure.hpp:44
fatalError
#define fatalError
Definition:
error.hpp:36
pFlow::integration::create
static uniquePtr< integration > create(const word &baseName, repository &owner, const pointStructure &pStruct, const word &method)
Definition:
integration.cpp:40
pFlow::integration::owner
repository & owner()
Definition:
integration.hpp:94
pStruct
auto & pStruct
Definition:
setPointStructure.hpp:24
pFlow::uniquePtr< pFlow::integration >
integration.hpp
pFlow::integration::integration
integration(const word &baseName, repository &owner, const pointStructure &pStruct, const word &method)
Definition:
integration.cpp:24
CONSUME_PARAM
#define CONSUME_PARAM(x)
Definition:
pFlowMacros.hpp:38
pFlow::repository
Definition:
repository.hpp:34
src
Integration
integration
integration.cpp
Generated by
1.8.17