www.cemf.ir
stationary.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 __stationary_hpp__
22 #define __stationary_hpp__
23 
24 
25 #include "types.hpp"
26 #include "typeInfo.hpp"
27 #include "streams.hpp"
28 
29 namespace pFlow
30 {
31 
32 // forward
33 class dictionary;
34 
35 
41 {
42 public:
43 
44  TypeInfoNV("stationary");
45 
47  stationary()=default;
48 
50  explicit stationary(const dictionary& dict);
51 
52 
54  stationary(const stationary&) = default;
55 
56  stationary& operator=(const stationary&) = default;
57 
59  void setTime(real t)
60  {}
61 
64  {
65  return realx3(0);
66  }
67 
69  realx3 transferPoint(const realx3& p, real)const
70  {
71  return p;
72  }
73 
74  // - IO operation
75  FUNCTION_H
76  bool read(const dictionary& dict);
77 
79  bool write(dictionary& dict) const;
80 
82  bool read(iIstream& is);
83 
85  bool write(iOstream& os)const;
86 
87 };
88 
89 inline iOstream& operator <<(iOstream& os, const stationary& obj)
90 {
91 
92  return os;
93 }
94 
96 {
97 
98  return is;
99 }
100 
101 }
102 
103 
104 #endif
pFlow::stationary::setTime
INLINE_FUNCTION_HD void setTime(real t)
Definition: stationary.hpp:59
pFlow::stationary::operator=
stationary & operator=(const stationary &)=default
pFlow::real
float real
Definition: builtinTypes.hpp:45
types.hpp
pFlow::stationary::write
FUNCTION_H bool write(dictionary &dict) const
Definition: stationary.cpp:39
pFlow::stationary::linVelocityPoint
INLINE_FUNCTION_HD realx3 linVelocityPoint(const realx3 &) const
Definition: stationary.hpp:63
pFlow::realx3
triple< real > realx3
Definition: types.hpp:43
pFlow::stationary
stationary model for a wall
Definition: stationary.hpp:40
pFlow
Definition: demGeometry.hpp:27
FUNCTION_H
#define FUNCTION_H
Definition: pFlowMacros.hpp:62
pFlow::iIstream
Interface class for any input stream
Definition: iIstream.hpp:37
pFlow::stationary::stationary
FUNCTION_HD stationary()=default
pFlow::operator>>
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
Definition: AdamsBashforth3.hpp:41
pFlow::stationary::TypeInfoNV
TypeInfoNV("stationary")
pFlow::operator<<
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
Definition: AdamsBashforth3.hpp:57
FUNCTION_HD
#define FUNCTION_HD
Definition: pFlowMacros.hpp:61
streams.hpp
typeInfo.hpp
INLINE_FUNCTION_HD
#define INLINE_FUNCTION_HD
Definition: pFlowMacros.hpp:55
pFlow::triple< real >
pFlow::stationary::transferPoint
INLINE_FUNCTION_HD realx3 transferPoint(const realx3 &p, real) const
Definition: stationary.hpp:69
pFlow::iOstream
Interface class for any output stream.
Definition: iOstream.hpp:59
pFlow::stationary::read
FUNCTION_H bool read(const dictionary &dict)
Definition: stationary.cpp:33
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