www.cemf.ir
boundaryIntegration.hpp
Go to the documentation of this file.
1 
2 #ifndef __boundaryIntegration_hpp__
3 #define __boundaryIntegration_hpp__
4 
5 
6 #include "generalBoundary.hpp"
7 #include "virtualConstructor.hpp"
8 #include "pointFields.hpp"
9 
10 namespace pFlow
11 {
12 
13 class integration;
14 
16 :
17  public generalBoundary
18 {
19 private:
20 
22 
23 public:
24 
25  TypeInfo("boundaryIntegration<none>");
26 
28  const boundaryBase& boundary,
29  const pointStructure& pStruct,
30  const word& method,
31  integration& intgrtn);
32 
33  ~boundaryIntegration()override = default;
34 
38  (
39  const boundaryBase& boundary,
40  const pointStructure& pStruct,
41  const word& method,
42  integration& intgrtn
43  ),
44  (boundary, pStruct, method, intgrtn)
45  );
46 
47  add_vCtor(
51  );
52 
54  real t,
55  real dt,
56  uint32 iter,
57  const message &msg,
58  const anyList &varList) override
59  {
60  return true;
61  }
62 
63  const integration& Integration()const
64  {
65  return integration_;
66  }
67 
68  virtual
69  bool correct(real dt, const realx3PointField_D& y, const realx3PointField_D& dy)
70  {
71  return true;
72  }
73 
74  virtual
75  bool correctPStruct(real dt, const realx3PointField_D& vel)
76  {
77  return true;
78  }
79 
80  static
82  const boundaryBase& boundary,
83  const pointStructure& pStruct,
84  const word& method,
85  integration& intgrtn);
86 
87 };
88 
89 }
90 
91 #endif
pFlow::message
Definition: message.hpp:33
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::boundaryIntegration::create_vCtor
create_vCtor(boundaryIntegration, boundaryBase,(const boundaryBase &boundary, const pointStructure &pStruct, const word &method, integration &intgrtn),(boundary, pStruct, method, intgrtn))
pFlow::integration
Base class for integrating the first order ODE (IVP)
Definition: integration.hpp:51
pFlow::boundaryIntegration::Integration
const integration & Integration() const
Definition: boundaryIntegration.hpp:63
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pointFields.hpp
pFlow::boundaryIntegration::correct
virtual bool correct(real dt, const realx3PointField_D &y, const realx3PointField_D &dy)
Definition: boundaryIntegration.hpp:69
pFlow::generalBoundary::pStruct
const auto & pStruct() const
Definition: generalBoundary.hpp:138
pFlow::boundaryIntegration::boundaryIntegration
boundaryIntegration(const boundaryBase &boundary, const pointStructure &pStruct, const word &method, integration &intgrtn)
Definition: boundaryIntegration.cpp:5
pFlow
Definition: demGeometry.hpp:27
pFlow::pointField
Definition: pointField.hpp:33
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::anyList
Definition: anyList.hpp:35
pFlow::boundaryIntegration::add_vCtor
add_vCtor(boundaryIntegration, boundaryIntegration, boundaryBase)
pFlow::boundaryIntegration::hearChanges
bool hearChanges(real t, real dt, uint32 iter, const message &msg, const anyList &varList) override
Definition: boundaryIntegration.hpp:53
virtualConstructor.hpp
pFlow::boundaryBase
Definition: boundaryBase.hpp:42
pFlow::boundaryIntegration::TypeInfo
TypeInfo("boundaryIntegration<none>")
pFlow::boundaryIntegration::~boundaryIntegration
~boundaryIntegration() override=default
pFlow::boundaryIntegration::integration_
const integration & integration_
Definition: boundaryIntegration.hpp:21
pFlow::boundaryIntegration::correctPStruct
virtual bool correctPStruct(real dt, const realx3PointField_D &vel)
Definition: boundaryIntegration.hpp:75
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
generalBoundary.hpp
pFlow::boundaryIntegration
Definition: boundaryIntegration.hpp:15
pFlow::generalBoundary::boundary
const auto & boundary() const
Definition: generalBoundary.hpp:108
pFlow::boundaryIntegration::create
static uniquePtr< boundaryIntegration > create(const boundaryBase &boundary, const pointStructure &pStruct, const word &method, integration &intgrtn)
Definition: boundaryIntegration.cpp:16
pFlow::generalBoundary
Definition: generalBoundary.hpp:38