Public Member Functions | |
TypeName ("DAPartDeriv") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, DAPartDeriv, dictionary,(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAJacCon &daJacCon, const DAResidual &daResidual),(modelType, mesh, daOption, daModel, daIndex, daJacCon, daResidual)) | |
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... | |
virtual void | initializePartDerivMat (const dictionary &options, Mat jacMat)=0 |
initialize partial derivative matrix More... | |
virtual void | calcPartDerivMat (const dictionary &options, const Vec xvVec, const Vec wVec, Mat jacMat)=0 |
compute the partial derivative matrix More... | |
void | setdXvdFFDMat (const Mat dXvdFFDMat) |
setup dXvdFFD matrix More... | |
void | setNormStatePerturbVec (Vec *normStatePerturbVec) |
setup the state normalization vector More... | |
Static Public Member Functions | |
static autoPtr< DAPartDeriv > | New (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAJacCon &daJacCon, const DAResidual &daResidual) |
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 | perturbBC (const dictionary options, const scalar delta) |
perturb the values in the boundary condition 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... | |
void | perturbAOA (const dictionary options, const scalar delta) |
perturb the angle of attack 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... | |
Mat | dXvdFFDMat_ |
volume mesh coordinates wrt the ffd point coordinate partials More... | |
Definition at line 36 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 22 of file DAPartDeriv.C.
References daModel(), daOption(), mesh, DAStateInfo::New(), solverName, and DAPartDeriv::stateInfo_.
|
inlinevirtual |
Definition at line 152 of file DAPartDeriv.H.
|
protected |
perturb state variables given a color index
Definition at line 98 of file DAPartDeriv.C.
References assignValueCheckAD.
Referenced by DAPartDerivdRdW::calcPartDerivMat(), and DAPartDerivdFdW::calcPartDerivMat().
|
protected |
perturb the values in the boundary condition
Definition at line 266 of file DAPartDeriv.C.
References forAll(), and DAPartDeriv::mesh_.
Referenced by DAPartDerivdRdBC::calcPartDerivMat(), and DAPartDerivdFdBC::calcPartDerivMat().
|
protected |
set values for the partial derivative matrix
Definition at line 165 of file DAPartDeriv.C.
Referenced by DAPartDerivdRdW::calcPartDerivMat(), and DAPartDerivdFdW::calcPartDerivMat().
|
protected |
perturb the angle of attack
Definition at line 375 of file DAPartDeriv.C.
References forAll(), and DAPartDeriv::mesh_.
Referenced by DAPartDerivdRdAOA::calcPartDerivMat(), and DAPartDerivdFdAOA::calcPartDerivMat().
TypeName | ( | "DAPartDeriv" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
DAPartDeriv | , | ||
dictionary | , | ||
(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAJacCon &daJacCon, const DAResidual &daResidual) | , | ||
(modelType, mesh, daOption, daModel, daIndex, daJacCon, daResidual) | |||
) |
|
static |
Definition at line 47 of file DAPartDeriv.C.
References daIndex(), daModel(), daOption(), and mesh.
Referenced by DASolver::calcdFdACT(), DASolver::calcdFdAOA(), DASolver::calcdFdBC(), DASolver::calcdFdFFD(), DASolver::calcdFdW(), DASolver::calcdRdACT(), DASolver::calcdRdAOA(), DASolver::calcdRdBC(), DASolver::calcdRdFFD(), and DASolver::calcdRdWT().
|
inline |
clear members in parent and child objects
Definition at line 159 of file DAPartDeriv.H.
References DAPartDeriv::dXvdFFDMat_.
|
pure virtual |
initialize partial derivative matrix
Implemented in DAPartDerivdFdACTD, DAPartDerivdFdW, DAPartDerivdRdACTD, DAPartDerivdRdACTL, DAPartDerivdRdACTP, DAPartDerivdFdAOA, DAPartDerivdFdBC, DAPartDerivdFdFFD, DAPartDerivdRdAOA, DAPartDerivdRdBC, DAPartDerivdRdFFD, and DAPartDerivdRdW.
|
pure virtual |
compute the partial derivative matrix
Implemented in DAPartDerivdFdACTD, DAPartDerivdFdW, DAPartDerivdRdACTD, DAPartDerivdRdACTL, DAPartDerivdRdACTP, DAPartDerivdFdAOA, DAPartDerivdFdBC, DAPartDerivdFdFFD, DAPartDerivdRdAOA, DAPartDerivdRdBC, DAPartDerivdRdFFD, and DAPartDerivdRdW.
void setdXvdFFDMat | ( | const Mat | dXvdFFDMat | ) |
setup dXvdFFD matrix
Definition at line 498 of file DAPartDeriv.C.
References DAPartDeriv::dXvdFFDMat_.
Referenced by PYDAFOAM::solveAdjoint().
void setNormStatePerturbVec | ( | Vec * | normStatePerturbVec | ) |
setup the state normalization vector
Definition at line 511 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 DAPartDerivdRdW::calcPartDerivMat(), and DAPartDerivdFdW::calcPartDerivMat().
|
protected |
the name of the jacCon matrix
Definition at line 48 of file DAPartDeriv.H.
Referenced by DAPartDerivdFdFFD::calcPartDerivMat(), DAPartDerivdRdW::calcPartDerivMat(), DAPartDerivdRdFFD::calcPartDerivMat(), DAPartDerivdRdACTP::calcPartDerivMat(), DAPartDerivdRdACTL::calcPartDerivMat(), DAPartDerivdRdACTD::calcPartDerivMat(), and DAPartDerivdFdW::calcPartDerivMat().
|
protected |
fvMesh
Definition at line 51 of file DAPartDeriv.H.
Referenced by DAPartDerivdFdFFD::calcPartDerivMat(), DAPartDerivdRdFFD::calcPartDerivMat(), DAPartDerivdRdW::calcPartDerivMat(), DAPartDerivdFdAOA::calcPartDerivMat(), DAPartDerivdFdBC::calcPartDerivMat(), DAPartDerivdRdACTL::calcPartDerivMat(), DAPartDerivdRdACTP::calcPartDerivMat(), DAPartDerivdFdACTD::calcPartDerivMat(), DAPartDerivdFdW::calcPartDerivMat(), DAPartDerivdRdACTD::calcPartDerivMat(), DAPartDerivdRdBC::initializePartDerivMat(), DAPartDerivdRdFFD::initializePartDerivMat(), DAPartDerivdFdFFD::initializePartDerivMat(), DAPartDerivdRdAOA::initializePartDerivMat(), DAPartDerivdRdW::initializePartDerivMat(), DAPartDerivdFdBC::initializePartDerivMat(), DAPartDerivdFdAOA::initializePartDerivMat(), DAPartDerivdRdACTD::initializePartDerivMat(), DAPartDerivdRdACTP::initializePartDerivMat(), DAPartDerivdRdACTL::initializePartDerivMat(), DAPartDerivdFdW::initializePartDerivMat(), DAPartDerivdFdACTD::initializePartDerivMat(), DAPartDeriv::perturbAOA(), DAPartDeriv::perturbBC(), and DAPartDeriv::setNormStatePerturbVec().
|
protected |
DAOption object.
Definition at line 54 of file DAPartDeriv.H.
Referenced by DAPartDerivdFdFFD::calcPartDerivMat(), DAPartDerivdRdAOA::calcPartDerivMat(), DAPartDerivdRdBC::calcPartDerivMat(), DAPartDerivdRdFFD::calcPartDerivMat(), DAPartDerivdRdW::calcPartDerivMat(), DAPartDerivdFdAOA::calcPartDerivMat(), DAPartDerivdFdBC::calcPartDerivMat(), DAPartDerivdFdACTD::calcPartDerivMat(), DAPartDerivdRdACTD::calcPartDerivMat(), DAPartDerivdFdW::calcPartDerivMat(), DAPartDerivdRdACTL::calcPartDerivMat(), and DAPartDerivdRdACTP::calcPartDerivMat().
|
protected |
DAModel object.
Definition at line 57 of file DAPartDeriv.H.
Referenced by DAPartDerivdFdFFD::calcPartDerivMat(), DAPartDerivdFdAOA::calcPartDerivMat(), DAPartDerivdFdBC::calcPartDerivMat(), DAPartDerivdFdACTD::calcPartDerivMat(), and DAPartDerivdFdW::calcPartDerivMat().
|
protected |
DAIndex object.
Definition at line 60 of file DAPartDeriv.H.
Referenced by DAPartDerivdFdFFD::calcPartDerivMat(), DAPartDerivdRdW::calcPartDerivMat(), DAPartDerivdFdAOA::calcPartDerivMat(), DAPartDerivdFdBC::calcPartDerivMat(), DAPartDerivdFdW::calcPartDerivMat(), DAPartDerivdFdACTD::calcPartDerivMat(), DAPartDerivdRdFFD::initializePartDerivMat(), DAPartDerivdRdW::initializePartDerivMat(), DAPartDerivdRdAOA::initializePartDerivMat(), DAPartDerivdRdBC::initializePartDerivMat(), DAPartDerivdRdACTL::initializePartDerivMat(), DAPartDerivdRdACTP::initializePartDerivMat(), DAPartDerivdRdACTD::initializePartDerivMat(), DAPartDerivdFdW::initializePartDerivMat(), and DAPartDeriv::setNormStatePerturbVec().
|
protected |
DAJacCon object.
Definition at line 63 of file DAPartDeriv.H.
Referenced by DAPartDerivdRdW::calcPartDerivMat(), DAPartDerivdFdW::calcPartDerivMat(), and DAPartDerivdRdW::initializePartDerivMat().
|
protected |
DAResidual object.
Definition at line 66 of file DAPartDeriv.H.
Referenced by DAPartDerivdFdFFD::calcPartDerivMat(), DAPartDerivdRdAOA::calcPartDerivMat(), DAPartDerivdRdBC::calcPartDerivMat(), DAPartDerivdRdFFD::calcPartDerivMat(), DAPartDerivdRdW::calcPartDerivMat(), DAPartDerivdFdAOA::calcPartDerivMat(), DAPartDerivdFdBC::calcPartDerivMat(), DAPartDerivdFdACTD::calcPartDerivMat(), DAPartDerivdRdACTD::calcPartDerivMat(), DAPartDerivdFdW::calcPartDerivMat(), DAPartDerivdRdACTL::calcPartDerivMat(), and DAPartDerivdRdACTP::calcPartDerivMat().
|
protected |
all the DAFoam option
Definition at line 69 of file DAPartDeriv.H.
Referenced by DAPartDeriv::setNormStatePerturbVec().
|
protected |
the stateInfo_ list from DAStateInfo object
Definition at line 72 of file DAPartDeriv.H.
Referenced by DAPartDeriv::DAPartDeriv(), and DAPartDeriv::setNormStatePerturbVec().
|
protected |
volume mesh coordinates wrt the ffd point coordinate partials
Definition at line 101 of file DAPartDeriv.H.
Referenced by DAPartDerivdFdFFD::calcPartDerivMat(), DAPartDerivdRdFFD::calcPartDerivMat(), DAPartDeriv::clear(), and DAPartDeriv::setdXvdFFDMat().