DAInputPatchVelocity.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 velocity magnitude and angle of attach at a given patch
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAInputPatchVelocity_H
12 #define DAInputPatchVelocity_H
13 
14 #include "DAInput.H"
15 #include "addToRunTimeSelectionTable.H"
16 #include "mixedFvPatchFields.H"
17 #include "DAGlobalVar.H"
18 
19 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
20 
21 namespace Foam
22 {
23 
24 /*---------------------------------------------------------------------------*\
25  Class DAInputPatchVelocity Declaration
26 \*---------------------------------------------------------------------------*/
27 
29  : public DAInput
30 {
31 
32 protected:
33 public:
34  TypeName("patchVelocity");
35  // Constructors
36 
37  //- Construct from components
39  const word inputName,
40  const word inputType,
41  fvMesh& mesh,
42  const DAOption& daOption,
43  const DAModel& daModel,
44  const DAIndex& daIndex);
45 
46  //- Destructor
48  {
49  }
50 
51  virtual void run(const scalarList& input);
52 
53  virtual label size()
54  {
55  // [UMag, AoA]
56  return 2;
57  }
58 
59  virtual label distributed()
60  {
61  return 0;
62  }
63 };
64 
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 
67 } // End namespace Foam
68 
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70 
71 #endif
72 
73 // ************************************************************************* //
Foam::DAOption
Definition: DAOption.H:29
Foam::DAInputPatchVelocity::size
virtual label size()
Definition: DAInputPatchVelocity.H:53
Foam::DAInputPatchVelocity
Definition: DAInputPatchVelocity.H:28
DAGlobalVar.H
Foam::DAInputPatchVelocity::DAInputPatchVelocity
DAInputPatchVelocity(const word inputName, const word inputType, fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition: DAInputPatchVelocity.C:19
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAIndex
Definition: DAIndex.H:32
DAInput.H
Foam::DAInputPatchVelocity::TypeName
TypeName("patchVelocity")
Foam::DAModel
Definition: DAModel.H:57
Foam
Definition: checkGeometry.C:32
Foam::DAInput
Definition: DAInput.H:30
Foam::DAInputPatchVelocity::run
virtual void run(const scalarList &input)
Definition: DAInputPatchVelocity.C:36
Foam::DAInputPatchVelocity::~DAInputPatchVelocity
virtual ~DAInputPatchVelocity()
Definition: DAInputPatchVelocity.H:47
Foam::DAInputPatchVelocity::distributed
virtual label distributed()
Definition: DAInputPatchVelocity.H:59