
Public Member Functions | |
| DAPartDeriv (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAJacCon &daJacCon, const DAResidual &daResidual) | |
| virtual | ~DAPartDeriv () |
| void | clear () |
| clear members in parent and child objects More... | |
| void | initializePartDerivMat (const dictionary &options, Mat jacMat) |
| initialize partial derivative matrix More... | |
| void | calcPartDerivMat (const dictionary &options, const Vec xvVec, const Vec wVec, Mat jacMat) |
| compute the partial derivative matrix More... | |
| void | setNormStatePerturbVec (Vec *normStatePerturbVec) |
| setup the state normalization vector More... | |
Protected Member Functions | |
| void | perturbStates (const Vec jacConColors, const Vec normStatePerturbVec, const label colorI, const scalar delta, Vec wVec) |
| perturb state variables given a color index More... | |
| void | setPartDerivMat (const Vec resVec, const Vec coloredColumn, const label transposed, Mat jacMat, const scalar jacLowerBound=1e-30) const |
| set values for the partial derivative matrix More... | |
Protected Attributes | |
| const word | modelType_ |
| the name of the jacCon matrix More... | |
| const fvMesh & | mesh_ |
| fvMesh More... | |
| const DAOption & | daOption_ |
| DAOption object. More... | |
| const DAModel & | daModel_ |
| DAModel object. More... | |
| const DAIndex & | daIndex_ |
| DAIndex object. More... | |
| const DAJacCon & | daJacCon_ |
| DAJacCon object. More... | |
| const DAResidual & | daResidual_ |
| DAResidual object. More... | |
| const dictionary & | allOptions_ |
| all the DAFoam option More... | |
| HashTable< wordList > | stateInfo_ |
| the stateInfo_ list from DAStateInfo object More... | |
Definition at line 35 of file DAPartDeriv.H.
| DAPartDeriv | ( | const word | modelType, |
| const fvMesh & | mesh, | ||
| const DAOption & | daOption, | ||
| const DAModel & | daModel, | ||
| const DAIndex & | daIndex, | ||
| const DAJacCon & | daJacCon, | ||
| const DAResidual & | daResidual | ||
| ) |
Definition at line 17 of file DAPartDeriv.C.
References DAOption::getOption(), mesh, DAStateInfo::New(), solverName, and DAPartDeriv::stateInfo_.

|
inlinevirtual |
Definition at line 101 of file DAPartDeriv.H.
|
protected |
perturb state variables given a color index
Definition at line 42 of file DAPartDeriv.C.
References assignValueCheckAD.
Referenced by DAPartDeriv::calcPartDerivMat().

|
protected |
set values for the partial derivative matrix
Definition at line 109 of file DAPartDeriv.C.
Referenced by DAPartDeriv::calcPartDerivMat().

|
inline |
clear members in parent and child objects
Definition at line 108 of file DAPartDeriv.H.
| void initializePartDerivMat | ( | const dictionary & | options, |
| Mat | jacMat | ||
| ) |
initialize partial derivative matrix
Definition at line 317 of file DAPartDeriv.C.
References DAPartDeriv::daIndex_, DAPartDeriv::daJacCon_, DAPartDeriv::mesh_, DAIndex::nLocalAdjointStates, and DAJacCon::preallocatedRdW().
Referenced by DASolver::calcdRdWT().


| void calcPartDerivMat | ( | const dictionary & | options, |
| const Vec | xvVec, | ||
| const Vec | wVec, | ||
| Mat | jacMat | ||
| ) |
compute the partial derivative matrix
Definition at line 350 of file DAPartDeriv.C.
References assignValueCheckAD, DAJacCon::calcColoredColumns(), DAPartDeriv::daIndex_, DAPartDeriv::daJacCon_, DAPartDeriv::daOption_, DAPartDeriv::daResidual_, DAJacCon::getJacConColor(), DAJacCon::getNJacConColors(), DAOption::getOption(), DAOption::getSubDictOption(), DAResidual::masterFunction(), DAPartDeriv::mesh_, DAPartDeriv::modelType_, DAPartDeriv::perturbStates(), DAIndex::printMatChars(), DAPartDeriv::setNormStatePerturbVec(), and DAPartDeriv::setPartDerivMat().
Referenced by DASolver::calcdRdWT().


| void setNormStatePerturbVec | ( | Vec * | normStatePerturbVec | ) |
setup the state normalization vector
Definition at line 210 of file DAPartDeriv.C.
References DAPartDeriv::allOptions_, assignValueCheckAD, DAIndex::bFaceFaceI, DAIndex::bFacePatchI, DAPartDeriv::daIndex_, forAll(), DAIndex::getGlobalAdjointStateIndex(), DAPartDeriv::mesh_, DAIndex::nLocalAdjointStates, DAIndex::nLocalInternalFaces, and DAPartDeriv::stateInfo_.
Referenced by DAPartDeriv::calcPartDerivMat().


|
protected |
the name of the jacCon matrix
Definition at line 47 of file DAPartDeriv.H.
Referenced by DAPartDeriv::calcPartDerivMat().
|
protected |
fvMesh
Definition at line 50 of file DAPartDeriv.H.
Referenced by DAPartDeriv::calcPartDerivMat(), DAPartDeriv::initializePartDerivMat(), and DAPartDeriv::setNormStatePerturbVec().
|
protected |
DAOption object.
Definition at line 53 of file DAPartDeriv.H.
Referenced by DAPartDeriv::calcPartDerivMat().
|
protected |
DAModel object.
Definition at line 56 of file DAPartDeriv.H.
|
protected |
DAIndex object.
Definition at line 59 of file DAPartDeriv.H.
Referenced by DAPartDeriv::calcPartDerivMat(), DAPartDeriv::initializePartDerivMat(), and DAPartDeriv::setNormStatePerturbVec().
|
protected |
DAJacCon object.
Definition at line 62 of file DAPartDeriv.H.
Referenced by DAPartDeriv::calcPartDerivMat(), and DAPartDeriv::initializePartDerivMat().
|
protected |
DAResidual object.
Definition at line 65 of file DAPartDeriv.H.
Referenced by DAPartDeriv::calcPartDerivMat().
|
protected |
all the DAFoam option
Definition at line 68 of file DAPartDeriv.H.
Referenced by DAPartDeriv::setNormStatePerturbVec().
|
protected |
the stateInfo_ list from DAStateInfo object
Definition at line 71 of file DAPartDeriv.H.
Referenced by DAPartDeriv::DAPartDeriv(), and DAPartDeriv::setNormStatePerturbVec().