www.cemf.ir
stationaryWall.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 __stationaryWall_hpp__
22 #define __stationaryWall_hpp__
23 
24 
25 #include "MotionModel.hpp"
26 #include "stationary.hpp"
27 #include "fileDictionary.hpp"
28 
29 namespace pFlow
30 {
31 
32 
54 :
55  public fileDictionary,
56  public MotionModel<stationaryWall, stationary>
57 {
58 protected:
59 
61 
62  bool impl_isMoving()const
63  {
64  return false;
65  }
66 
67  bool impl_move(uint32, real, real)const
68  {
69  return true;
70  }
71 
72  void impl_setTime(uint32 ,real ,real )const
73  {}
74 
75 public:
76 
77  TypeInfo("stationaryWall");
78 
80 
82  const objectFile& objf,
83  const dictionary& dict,
84  repository* owner);
85 
86 
88 
89  bool write(iOstream& os, const IOPattern& iop)const override;
90 
91  static
93  {
94  return stationary();
95  }
96 };
97 
98 } // pFlow
99 
100 
101 #endif // __stationaryWall_hpp__
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::stationaryWall::stationaryWall
stationaryWall(const objectFile &objf, repository *owner)
Definition: stationaryWall.cpp:25
pFlow::stationaryWall::impl_isMoving
bool impl_isMoving() const
Definition: stationaryWall.hpp:62
pFlow::stationary
stationary model for a wall
Definition: stationary.hpp:40
pFlow
Definition: demGeometry.hpp:27
pFlow::stationaryWall::TypeInfo
TypeInfo("stationaryWall")
MotionModel.hpp
pFlow::stationaryWall::impl_move
bool impl_move(uint32, real, real) const
Definition: stationaryWall.hpp:67
pFlow::stationaryWall::noneComponent
static auto noneComponent()
Definition: stationaryWall.hpp:92
pFlow::dictionary::dict
virtual dictionary & dict()
ref to this dictionary, if it is a dictionary
Definition: dictionary.cpp:369
pFlow::IOPattern
Definition: IOPattern.hpp:32
pFlow::IOobject::owner
const repository * owner() const override
Definition: IOobject.hpp:76
pFlow::objectFile
Definition: objectFile.hpp:30
pFlow::stationaryWall::write
bool write(iOstream &os, const IOPattern &iop) const override
Definition: stationaryWall.cpp:57
pFlow::stationaryWall
stationary model for walls
Definition: stationaryWall.hpp:53
fileDictionary.hpp
pFlow::fileDictionary
Definition: fileDictionary.hpp:29
pFlow::stationaryWall::impl_setTime
void impl_setTime(uint32, real, real) const
Definition: stationaryWall.hpp:72
stationary.hpp
pFlow::MotionModel
Motion model abstract class (CRTP) for all the motion models.
Definition: MotionModel.hpp:39
pFlow::repository
Definition: repository.hpp:34
pFlow::fileDictionary::write
bool write(iOstream &os, const IOPattern &iop) const override
write to stream
Definition: fileDictionary.cpp:75
pFlow::iOstream
Interface class for any output stream.
Definition: iOstream.hpp:59
pFlow::dictionary
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
Definition: dictionary.hpp:67