DAFvSourceActuatorDisk.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6  Description:
7  Child class for ActuatorDisk disk source
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAFvSourceActuatorDisk_H
12 #define DAFvSourceActuatorDisk_H
13 
14 #include "DAFvSource.H"
15 #include "addToRunTimeSelectionTable.H"
16 
17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 
19 namespace Foam
20 {
21 
22 /*---------------------------------------------------------------------------*\
23  Class DAFvSourceActuatorDisk Declaration
24 \*---------------------------------------------------------------------------*/
25 
27  : public DAFvSource
28 {
29 
30 protected:
31 
33  HashTable<labelList> fvSourceCellIndices_;
34 
36  void calcFvSourceCellIndices(HashTable<labelList>& fvSourceCellIndices);
37 
40 
41 public:
42  TypeName("actuatorDisk");
43  // Constructors
44 
45  //- Construct from components
47  const word modelType,
48  const fvMesh& mesh,
49  const DAOption& daOption,
50  const DAModel& daModel,
51  const DAIndex& daIndex);
52 
53  //- Destructor
55  {
56  }
57 
59  virtual void calcFvSource(volVectorField& fvSource);
60 };
61 
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 } // End namespace Foam
65 
66 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 
68 #endif
69 
70 // ************************************************************************* //
Foam::DAFvSource
Definition: DAFvSource.H:34
Foam::DAFvSourceActuatorDisk::printInterval_
label printInterval_
print interval for primal and adjoint
Definition: DAFvSourceActuatorDisk.H:39
Foam::DAOption
Definition: DAOption.H:29
daOption
DAOption daOption(mesh, pyOptions_)
DAFvSource.H
Foam::DAFvSourceActuatorDisk::~DAFvSourceActuatorDisk
virtual ~DAFvSourceActuatorDisk()
Definition: DAFvSourceActuatorDisk.H:54
fvSource
volScalarField & fvSource
Definition: createRefsHeatTransfer.H:7
Foam::DAFvSourceActuatorDisk::fvSourceCellIndices_
HashTable< labelList > fvSourceCellIndices_
HashTable that contains lists of cell indices that are within the actuator disk space.
Definition: DAFvSourceActuatorDisk.H:33
Foam::DAFvSourceActuatorDisk
Definition: DAFvSourceActuatorDisk.H:26
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAFvSourceActuatorDisk::DAFvSourceActuatorDisk
DAFvSourceActuatorDisk(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition: DAFvSourceActuatorDisk.C:19
Foam::DAFvSourceActuatorDisk::TypeName
TypeName("actuatorDisk")
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAModel
Definition: DAModel.H:59
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DAFvSourceActuatorDisk::calcFvSource
virtual void calcFvSource(volVectorField &fvSource)
compute the FvSource term
Definition: DAFvSourceActuatorDisk.C:39
Foam::DAFvSourceActuatorDisk::calcFvSourceCellIndices
void calcFvSourceCellIndices(HashTable< labelList > &fvSourceCellIndices)
calculate DAFvSourceActuatorDisk::fvSourceCellIndices_
Definition: DAFvSourceActuatorDisk.C:449
daModel
DAModel daModel(mesh, daOption)
daIndex
DAIndex daIndex(mesh, daOption, daModel)