DAFvSourceUniformPressureGradient.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 uniform pressure gradient
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAFvSourceUniformPressureGradient_H
12 #define DAFvSourceUniformPressureGradient_H
13 
14 #include "DAFvSource.H"
15 #include "addToRunTimeSelectionTable.H"
16 
17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 
19 namespace Foam
20 {
21 
22 /*---------------------------------------------------------------------------*\
23  Class DAFvSourceUniformPressureGradient Declaration
24 \*---------------------------------------------------------------------------*/
25 
27  : public DAFvSource
28 {
29 
30 protected:
31 
32 public:
33  TypeName("uniformPressureGradient");
34  // Constructors
35 
36  //- Construct from components
38  const word modelType,
39  const fvMesh& mesh,
40  const DAOption& daOption,
41  const DAModel& daModel,
42  const DAIndex& daIndex);
43 
44  //- Destructor
46  {
47  }
48 
50  virtual void calcFvSource(volVectorField& fvSource);
51 };
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 } // End namespace Foam
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 #endif
60 
61 // ************************************************************************* //
Foam::DAFvSource
Definition: DAFvSource.H:34
Foam::DAFvSourceUniformPressureGradient::DAFvSourceUniformPressureGradient
DAFvSourceUniformPressureGradient(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition: DAFvSourceUniformPressureGradient.C:19
Foam::DAFvSourceUniformPressureGradient::calcFvSource
virtual void calcFvSource(volVectorField &fvSource)
compute the FvSource term
Definition: DAFvSourceUniformPressureGradient.C:30
Foam::DAFvSourceUniformPressureGradient::~DAFvSourceUniformPressureGradient
virtual ~DAFvSourceUniformPressureGradient()
Definition: DAFvSourceUniformPressureGradient.H:45
Foam::DAFvSourceUniformPressureGradient::TypeName
TypeName("uniformPressureGradient")
Foam::DAOption
Definition: DAOption.H:29
daOption
DAOption daOption(mesh, pyOptions_)
DAFvSource.H
fvSource
volScalarField & fvSource
Definition: createRefsHeatTransfer.H:7
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAModel
Definition: DAModel.H:59
Foam
Definition: multiFreqScalarFvPatchField.C:144
daModel
DAModel daModel(mesh, daOption)
daIndex
DAIndex daIndex(mesh, daOption, daModel)
Foam::DAFvSourceUniformPressureGradient
Definition: DAFvSourceUniformPressureGradient.H:26