DARegDbNearWallDist.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6 \*---------------------------------------------------------------------------*/
7 
8 #include "DARegDbNearWallDist.H"
9 
10 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
11 
12 namespace Foam
13 {
14 
15 // Constructors
16 DARegDbNearWallDist::DARegDbNearWallDist(
17  const fvMesh& mesh,
18  const nearWallDist& nearWallDist)
19  : regIOobject(
20  IOobject(
21  "DARegDbNearWallDist", // always use DARegDbNearWallDist for the db name
22  mesh.time().timeName(),
23  mesh, // register to mesh
24  IOobject::NO_READ,
25  IOobject::NO_WRITE,
26  true // always register object
27  )),
28  mesh_(mesh),
29  nearWallDist_(nearWallDist)
30 {
31 }
32 
34 {
35 }
36 
37 // this is a virtual function for regIOobject
38 bool DARegDbNearWallDist::writeData(Ostream& os) const
39 {
40  // do nothing
41  return true;
42 }
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 } // End namespace Foam
47 
48 // ************************************************************************* //
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DARegDbNearWallDist::~DARegDbNearWallDist
virtual ~DARegDbNearWallDist()
Destructor.
Definition: DARegDbNearWallDist.C:33
Foam::DARegDbNearWallDist::writeData
bool writeData(Ostream &os) const
this is a virtual function for regIOobject
Definition: DARegDbNearWallDist.C:38
Foam
Definition: multiFreqScalarFvPatchField.C:144
DARegDbNearWallDist.H