DARegDbSinglePhaseTransportModel.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6  Description:
7  Register singlePhaseTransportModel to Foam::fvMesh
8 
9  Example:
10 
11  To register a singlePhaseTransportModel object to fvMesh:
12 
13  singlePhaseTransportModel laminarTransport(U, phi);
14  DARegDbSinglePhaseTransportModel sg(mesh,laminarTransport);
15 
16  Then, to get the registered nearWallDist object from fvMesh:
17 
18  const DARegDbSinglePhaseTransportModel& sg1=
19  mesh.thisDb().lookupObject<DARegDbSinglePhaseTransportModel>(
20  "DARegDbSinglePhaseTransportModel");
21  const singlePhaseTransportModel& lt1 = sg1.getObject();
22 
23 \*---------------------------------------------------------------------------*/
24 
25 #ifndef DARegDbSinglePhaseTransportModel_H
26 #define DARegDbSinglePhaseTransportModel_H
27 
28 #include "fvOptions.H"
29 #include "singlePhaseTransportModel.H"
30 
31 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35 
36 /*---------------------------------------------------------------------------*\
37  Class DARegDbSinglePhaseTransportModel Declaration
38 \*---------------------------------------------------------------------------*/
39 
41  : public regIOobject
42 {
43 
44 private:
47 
49  void operator=(const DARegDbSinglePhaseTransportModel&);
50 
52  const fvMesh& mesh_;
53 
55  const singlePhaseTransportModel& singlePhaseTransportModel_;
56 
57 public:
60  const fvMesh& mesh,
61  const singlePhaseTransportModel& singlePhaseTransportModel);
62 
65 
67  const singlePhaseTransportModel& getObject() const
68  {
69  return singlePhaseTransportModel_;
70  }
71 
73  bool writeData(Ostream& os) const;
74 };
75 
76 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
77 
78 } // End namespace Foam
79 
80 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
81 
82 #endif
83 
84 // ************************************************************************* //
Foam::DARegDbSinglePhaseTransportModel::getObject
const singlePhaseTransportModel & getObject() const
return fluidThermo
Definition: DARegDbSinglePhaseTransportModel.H:67
Foam::DARegDbSinglePhaseTransportModel::writeData
bool writeData(Ostream &os) const
this is a virtual function for regIOobject
Definition: DARegDbSinglePhaseTransportModel.C:38
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DARegDbSinglePhaseTransportModel::~DARegDbSinglePhaseTransportModel
virtual ~DARegDbSinglePhaseTransportModel()
Destructor.
Definition: DARegDbSinglePhaseTransportModel.C:33
Foam::DARegDbSinglePhaseTransportModel
Definition: DARegDbSinglePhaseTransportModel.H:40