DAJacConDummy.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6 \*---------------------------------------------------------------------------*/
7 
8 #include "DAJacConDummy.H"
9 
10 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
11 
12 namespace Foam
13 {
14 
15 defineTypeNameAndDebug(DAJacConDummy, 0);
16 addToRunTimeSelectionTable(DAJacCon, DAJacConDummy, dictionary);
17 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
18 
20  const word modelType,
21  const fvMesh& mesh,
22  const DAOption& daOption,
23  const DAModel& daModel,
24  const DAIndex& daIndex)
25  : DAJacCon(modelType, mesh, daOption, daModel, daIndex)
26 {
27 }
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
29 
30 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
31 
32 void DAJacConDummy::setupJacCon(const dictionary& options)
33 {
34  // no need to do anything
35 }
36 
37 void DAJacConDummy::initializeJacCon(const dictionary& options)
38 {
39  // no need to do anything
40 }
41 
43 {
44  /*
45  Description:
46  Clear all members to avoid memory leak because we will initalize
47  multiple objects of DAJacCon. Here we need to delete all members
48  in the parent and child classes
49  */
50 
51  // no need to do anything
52 }
53 
54 } // End namespace Foam
55 
56 // ************************************************************************* //
Foam::DAJacCon
Definition: DAJacCon.H:34
Foam::DAOption
Definition: DAOption.H:29
daOption
DAOption daOption(mesh, pyOptions_)
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAJacConDummy::clear
virtual void clear()
clear members in parent and child objects
Definition: DAJacConDummy.C:42
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAJacConDummy::setupJacCon
virtual void setupJacCon(const dictionary &options)
assign 1 to all non-zero elements for the Jacobian connecitivyt matrix
Definition: DAJacConDummy.C:32
Foam::DAModel
Definition: DAModel.H:59
Foam
Definition: multiFreqScalarFvPatchField.C:144
DAJacConDummy.H
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(DAFvSource, 0)
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(DAFvSource, DAFvSourceActuatorDisk, dictionary)
daModel
DAModel daModel(mesh, daOption)
Foam::DAJacConDummy::DAJacConDummy
DAJacConDummy(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition: DAJacConDummy.C:19
daIndex
DAIndex daIndex(mesh, daOption, daModel)
Foam::DAJacConDummy::initializeJacCon
virtual void initializeJacCon(const dictionary &options)
initialize the state Jacobian connectivity matrix
Definition: DAJacConDummy.C:37