DAInputFvSourcePar.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 regression parameters
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAInputFvSourcePar_H
12 #define DAInputFvSourcePar_H
13 
14 #include "DAInput.H"
15 #include "addToRunTimeSelectionTable.H"
16 #include "DAGlobalVar.H"
17 #include "DAFvSource.H"
18 
19 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
20 
21 namespace Foam
22 {
23 
24 /*---------------------------------------------------------------------------*\
25  Class DAInputFvSourcePar Declaration
26 \*---------------------------------------------------------------------------*/
27 
29  : public DAInput
30 {
31 
32 protected:
34 
36 
37  labelList indices_;
38 
39 public:
40  TypeName("fvSourcePar");
41  // Constructors
42 
43  //- Construct from components
45  const word inputName,
46  const word inputType,
47  fvMesh& mesh,
48  const DAOption& daOption,
49  const DAModel& daModel,
50  const DAIndex& daIndex);
51 
52  //- Destructor
54  {
55  }
56 
57  virtual void run(const scalarList& input);
58 
59  virtual label size()
60  {
61  return indices_.size();
62  }
63 
64  virtual label distributed()
65  {
66  return 0;
67  }
68 };
69 
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 
72 } // End namespace Foam
73 
74 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 
76 #endif
77 
78 // ************************************************************************* //
Foam::DAInputFvSourcePar
Definition: DAInputFvSourcePar.H:28
Foam::DAInputFvSourcePar::fvSourceName_
word fvSourceName_
Definition: DAInputFvSourcePar.H:35
Foam::DAOption
Definition: DAOption.H:29
Foam::DAInputFvSourcePar::size
virtual label size()
Definition: DAInputFvSourcePar.H:59
DAFvSource.H
DAGlobalVar.H
Foam::DAInputFvSourcePar::indices_
labelList indices_
Definition: DAInputFvSourcePar.H:37
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAInputFvSourcePar::~DAInputFvSourcePar
virtual ~DAInputFvSourcePar()
Definition: DAInputFvSourcePar.H:53
Foam::DAIndex
Definition: DAIndex.H:32
DAInput.H
Foam::DAModel
Definition: DAModel.H:57
Foam::DAInputFvSourcePar::TypeName
TypeName("fvSourcePar")
Foam
Definition: checkGeometry.C:32
Foam::DAInputFvSourcePar::DAInputFvSourcePar
DAInputFvSourcePar(const word inputName, const word inputType, fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition: DAInputFvSourcePar.C:19
Foam::DAInput
Definition: DAInput.H:30
Foam::DAInputFvSourcePar::fvSourceType_
word fvSourceType_
Definition: DAInputFvSourcePar.H:33
Foam::DAInputFvSourcePar::distributed
virtual label distributed()
Definition: DAInputFvSourcePar.H:64
Foam::DAInputFvSourcePar::run
virtual void run(const scalarList &input)
Definition: DAInputFvSourcePar.C:75