DAFvSourceActuatorDisk.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 ActuatorDisk disk source
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAFvSourceActuatorDisk_H
12 #define DAFvSourceActuatorDisk_H
13 
14 #include "DAFvSource.H"
15 #include "addToRunTimeSelectionTable.H"
16 #include "DAGlobalVar.H"
17 
18 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
19 
20 namespace Foam
21 {
22 
23 /*---------------------------------------------------------------------------*\
24  Class DAFvSourceActuatorDisk Declaration
25 \*---------------------------------------------------------------------------*/
26 
28  : public DAFvSource
29 {
30 
31 protected:
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 
62  virtual void initFvSourcePars();
63 };
64 
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 
67 } // End namespace Foam
68 
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70 
71 #endif
72 
73 // ************************************************************************* //
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
DAFvSource.H
Foam::DAFvSourceActuatorDisk::~DAFvSourceActuatorDisk
virtual ~DAFvSourceActuatorDisk()
Definition: DAFvSourceActuatorDisk.H:54
DAGlobalVar.H
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::initFvSourcePars
virtual void initFvSourcePars()
Initialize the values for all types of fvSource in DAGlobalVar, including actuatorDiskPars,...
Definition: DAFvSourceActuatorDisk.C:431
Foam::DAFvSourceActuatorDisk
Definition: DAFvSourceActuatorDisk.H:27
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:57
Foam
Definition: checkGeometry.C:32
Foam::DAFvSourceActuatorDisk::calcFvSource
virtual void calcFvSource(volVectorField &fvSource)
compute the FvSource term
Definition: DAFvSourceActuatorDisk.C:35
Foam::DAFvSourceActuatorDisk::calcFvSourceCellIndices
void calcFvSourceCellIndices(HashTable< labelList > &fvSourceCellIndices)
calculate DAFvSourceActuatorDisk::fvSourceCellIndices_
Definition: DAFvSourceActuatorDisk.C:484