www.cemf.ir
generalBoundary.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 "generalBoundary.hpp"
22 #include "pointStructure.hpp"
23 
25 (
26  const boundaryBase& boundary,
27  const pointStructure& pStruct,
28  const word& dataType,
29  const word& option
30 )
31 :
32  observer(&boundary, defaultMessage_),
33  boundary_(boundary),
34  pStruct_(pStruct),
35  isBoundaryMaster_(boundary.isBoundaryMaster())
36 {}
37 
38 
40 {
41  return pStruct_.time();
42 }
pFlow::observer
Definition: observer.hpp:33
pFlow::generalBoundary::generalBoundary
generalBoundary(const boundaryBase &boundary, const pointStructure &pStruct, const word &dataType, const word &option)
Definition: generalBoundary.cpp:25
pFlow::pointStructure::time
Time & time() override
Definition: pointStructure.hpp:128
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pFlow::generalBoundary::pStruct_
const pointStructure & pStruct_
Definition: generalBoundary.hpp:46
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::generalBoundary::time
const Time & time() const
Definition: generalBoundary.cpp:39
pFlow::boundaryBase::isBoundaryMaster
bool isBoundaryMaster() const
Definition: boundaryBase.hpp:294
pFlow::boundaryBase
Definition: boundaryBase.hpp:42
pStruct
auto & pStruct
Definition: setPointStructure.hpp:24
generalBoundary.hpp
pointStructure.hpp
pFlow::Time
Definition: Time.hpp:37