createAdjointSolid.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6 \*---------------------------------------------------------------------------*/
7 
8 // adjoint
9 
10 daModelPtr_.reset(new DAModel(mesh, daOptionPtr_()));
11 
12 word solverName = daOptionPtr_->getOption<word>("solverName");
13 daStateInfoPtr_.reset(DAStateInfo::New(solverName, mesh, daOptionPtr_(), daModelPtr_()));
14 stateInfo_ = daStateInfoPtr_->getStateInfo();
15 
16 daIndexPtr_.reset(new DAIndex(mesh, daOptionPtr_(), daModelPtr_()));
17 
18 daIndexPtr_->printIndices();
19 
20 daFieldPtr_.reset(new DAField(mesh, daOptionPtr_(), daModelPtr_(), daIndexPtr_()));
21 
22 daResidualPtr_.reset(DAResidual::New(solverName, mesh, daOptionPtr_(), daModelPtr_(), daIndexPtr_()));
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
solverName
word solverName
Definition: createAdjointSolid.H:12
stateInfo_
stateInfo_
Definition: createAdjointSolid.H:14