DAInputVolCoord.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v4
5 
6  Description:
7  Child class for volume coordinate input
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAInputVolCoord_H
12 #define DAInputVolCoord_H
13 
14 #include "DAInput.H"
15 #include "addToRunTimeSelectionTable.H"
16 #include "mixedFvPatchFields.H"
17 
18 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
19 
20 namespace Foam
21 {
22 
23 /*---------------------------------------------------------------------------*\
24  Class DAInputVolCoord Declaration
25 \*---------------------------------------------------------------------------*/
26 
28  : public DAInput
29 {
30 
31 protected:
32 public:
33  TypeName("volCoord");
34  // Constructors
35 
36  //- Construct from components
38  const word inputName,
39  const word inputType,
40  fvMesh& mesh,
41  const DAOption& daOption,
42  const DAModel& daModel,
43  const DAIndex& daIndex);
44 
45  //- Destructor
46  virtual ~DAInputVolCoord()
47  {
48  }
49 
50  virtual void run(const scalarList& input);
51 
52  virtual label size()
53  {
54  return daIndex_.nLocalXv;
55  }
56 
57  virtual label distributed()
58  {
59  return 1;
60  }
61 };
62 
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 
65 } // End namespace Foam
66 
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69 #endif
70 
71 // ************************************************************************* //
Foam::DAInput::daIndex_
const DAIndex & daIndex_
DAIndex object.
Definition: DAInput.H:57
Foam::DAIndex::nLocalXv
label nLocalXv
local Xv size (point size*3)
Definition: DAIndex.H:92
Foam::DAOption
Definition: DAOption.H:29
Foam::DAInputVolCoord::run
virtual void run(const scalarList &input)
Definition: DAInputVolCoord.C:36
Foam::DAInputVolCoord::TypeName
TypeName("volCoord")
Foam::DAInputVolCoord::size
virtual label size()
Definition: DAInputVolCoord.H:52
Foam::DAInputVolCoord::DAInputVolCoord
DAInputVolCoord(const word inputName, const word inputType, fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition: DAInputVolCoord.C:19
Foam::DAInputVolCoord::distributed
virtual label distributed()
Definition: DAInputVolCoord.H:57
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAInputVolCoord::~DAInputVolCoord
virtual ~DAInputVolCoord()
Definition: DAInputVolCoord.H:46
Foam::DAIndex
Definition: DAIndex.H:32
DAInput.H
Foam::DAModel
Definition: DAModel.H:57
Foam
Definition: checkGeometry.C:32
Foam::DAInput
Definition: DAInput.H:30
Foam::DAInputVolCoord
Definition: DAInputVolCoord.H:27