These are state variables, state residuals, and partial derivatives | |
volVectorField & | U_ |
volVectorField | URes_ |
volScalarField & | p_ |
volScalarField | pRes_ |
surfaceScalarField & | phi_ |
surfaceScalarField | phiRes_ |
autoPtr< volScalarField > | TResPtr_ |
volVectorField & | fvSource_ |
fvSource term More... | |
DATurbulenceModel & | daTurb_ |
DATurbulenceModel object. More... | |
pimpleControl | pimple_ |
pimpleControl object which will be initialized in this class More... | |
label | hasFvSource_ = 0 |
whether to has fvSource term More... | |
label | hasTField_ = 0 |
whether to include the temperature field More... | |
scalar | Pr_ |
scalar | Prt_ |
TypeName ("DAPimpleDyMFoam") | |
DAResidualPimpleDyMFoam (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex) | |
virtual | ~DAResidualPimpleDyMFoam () |
virtual void | clear () |
clear the members More... | |
virtual void | calcResiduals (const dictionary &options) |
compute residual More... | |
virtual void | updateIntermediateVariables () |
update any intermediate variables that are dependent on state variables and are used in calcResiduals More... | |
virtual void | correctBoundaryConditions () |
update the boundary condition for all the states in the selected solver More... | |
virtual void | calcPCMatWithFvMatrix (Mat PCMat) |
calculating the adjoint preconditioner matrix using fvMatrix More... | |
Additional Inherited Members | |
![]() | |
TypeName ("DAResidual") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, DAResidual, dictionary,(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex),(modelType, mesh, daOption, daModel, daIndex)) | |
DAResidual (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex) | |
virtual | ~DAResidual () |
void | masterFunction (const dictionary &options, const Vec xvVec, const Vec wVec, Vec resVec) |
the master function that compute the residual vector given the state and point vectors More... | |
bool | writeData (Ostream &os) const |
virtual function for regIOobject More... | |
![]() | |
static autoPtr< DAResidual > | New (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex) |
![]() | |
const fvMesh & | mesh_ |
fvMesh More... | |
const DAOption & | daOption_ |
DAOption object. More... | |
const DAModel & | daModel_ |
DAModel object. More... | |
const DAIndex & | daIndex_ |
DAIndex. More... | |
DAField | daField_ |
DAField object. More... | |
Definition at line 28 of file DAResidualPimpleDyMFoam.H.
DAResidualPimpleDyMFoam | ( | const word | modelType, |
const fvMesh & | mesh, | ||
const DAOption & | daOption, | ||
const DAModel & | daModel, | ||
const DAIndex & | daIndex | ||
) |
Definition at line 19 of file DAResidualPimpleDyMFoam.C.
References allOptions, DAOption::getAllOptions(), DAResidualPimpleDyMFoam::hasFvSource_, DAResidualPimpleDyMFoam::hasTField_, DAUtility::isFieldReadable(), mesh, DAResidualPimpleDyMFoam::Pr_, DAResidualPimpleDyMFoam::Prt_, and DAResidualPimpleDyMFoam::TResPtr_.
|
inlinevirtual |
Definition at line 78 of file DAResidualPimpleDyMFoam.H.
TypeName | ( | "DAPimpleDyMFoam" | ) |
|
virtual |
clear the members
Implements DAResidual.
Definition at line 76 of file DAResidualPimpleDyMFoam.C.
References DAResidualPimpleDyMFoam::hasTField_, DAResidualPimpleDyMFoam::phiRes_, DAResidualPimpleDyMFoam::pRes_, DAResidualPimpleDyMFoam::TResPtr_, and DAResidualPimpleDyMFoam::URes_.
|
virtual |
compute residual
Implements DAResidual.
Definition at line 94 of file DAResidualPimpleDyMFoam.C.
References alphaEff(), alphat, DAFvSource::calcFvSource(), DAResidual::daOption_, DAResidualPimpleDyMFoam::daTurb_, DATurbulenceModel::divDevReff(), DAResidualPimpleDyMFoam::fvSource_, DAOption::getOption(), DAResidualPimpleDyMFoam::hasFvSource_, DAResidualPimpleDyMFoam::hasTField_, HbyA, HbyAPtr, DAResidual::mesh_, normalizePhiResiduals, normalizeResiduals, DATurbulenceModel::nu(), DAResidualPimpleDyMFoam::p_, DAResidualPimpleDyMFoam::phi_, phiHbyA, DAResidualPimpleDyMFoam::phiRes_, DAResidualPimpleDyMFoam::Pr_, pRefCell, pRefValue, DAResidualPimpleDyMFoam::pRes_, rAtU(), rAU(), T, TEqn(), DAResidualPimpleDyMFoam::TResPtr_, DAResidualPimpleDyMFoam::U_, UEqn, DAResidualPimpleDyMFoam::URes_, and useConstrainHbyA.
|
virtual |
update any intermediate variables that are dependent on state variables and are used in calcResiduals
Implements DAResidual.
Definition at line 474 of file DAResidualPimpleDyMFoam.C.
|
virtual |
update the boundary condition for all the states in the selected solver
Implements DAResidual.
Definition at line 484 of file DAResidualPimpleDyMFoam.C.
References DAResidualPimpleDyMFoam::hasTField_, DAResidual::mesh_, DAResidualPimpleDyMFoam::p_, T, and DAResidualPimpleDyMFoam::U_.
|
virtual |
calculating the adjoint preconditioner matrix using fvMatrix
Reimplemented from DAResidual.
Definition at line 219 of file DAResidualPimpleDyMFoam.C.
References alphaEff(), alphat, assignValueCheckAD, D, DAResidual::daIndex_, DAResidual::daOption_, DAResidualPimpleDyMFoam::daTurb_, DATurbulenceModel::divDevReff(), forAll(), DAResidualPimpleDyMFoam::fvSource_, DAOption::getAllOptions(), DAIndex::getGlobalAdjointStateIndex(), DAOption::getOption(), DAResidualPimpleDyMFoam::hasTField_, HbyA, HbyAPtr, DAResidual::mesh_, DAIndex::nLocalInternalFaces, DATurbulenceModel::nu(), DAResidualPimpleDyMFoam::p_, DAResidualPimpleDyMFoam::phi_, phiHbyA, DAResidualPimpleDyMFoam::Pr_, pRefCell, pRefValue, rAtU(), rAU(), T, TEqn(), DAResidualPimpleDyMFoam::U_, UEqn, and useConstrainHbyA.
|
protected |
Definition at line 34 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcPCMatWithFvMatrix(), DAResidualPimpleDyMFoam::calcResiduals(), and DAResidualPimpleDyMFoam::correctBoundaryConditions().
|
protected |
Definition at line 35 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcResiduals(), and DAResidualPimpleDyMFoam::clear().
|
protected |
Definition at line 37 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcPCMatWithFvMatrix(), DAResidualPimpleDyMFoam::calcResiduals(), and DAResidualPimpleDyMFoam::correctBoundaryConditions().
|
protected |
Definition at line 38 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcResiduals(), and DAResidualPimpleDyMFoam::clear().
|
protected |
Definition at line 40 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcPCMatWithFvMatrix(), and DAResidualPimpleDyMFoam::calcResiduals().
|
protected |
Definition at line 41 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcResiduals(), and DAResidualPimpleDyMFoam::clear().
|
protected |
Definition at line 43 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcResiduals(), DAResidualPimpleDyMFoam::clear(), and DAResidualPimpleDyMFoam::DAResidualPimpleDyMFoam().
|
protected |
fvSource term
Definition at line 47 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcPCMatWithFvMatrix(), and DAResidualPimpleDyMFoam::calcResiduals().
|
protected |
DATurbulenceModel object.
Definition at line 50 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcPCMatWithFvMatrix(), and DAResidualPimpleDyMFoam::calcResiduals().
|
protected |
pimpleControl object which will be initialized in this class
Definition at line 53 of file DAResidualPimpleDyMFoam.H.
|
protected |
whether to has fvSource term
Definition at line 56 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcResiduals(), and DAResidualPimpleDyMFoam::DAResidualPimpleDyMFoam().
|
protected |
whether to include the temperature field
Definition at line 59 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcPCMatWithFvMatrix(), DAResidualPimpleDyMFoam::calcResiduals(), DAResidualPimpleDyMFoam::clear(), DAResidualPimpleDyMFoam::correctBoundaryConditions(), and DAResidualPimpleDyMFoam::DAResidualPimpleDyMFoam().
|
protected |
Definition at line 61 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::calcPCMatWithFvMatrix(), DAResidualPimpleDyMFoam::calcResiduals(), and DAResidualPimpleDyMFoam::DAResidualPimpleDyMFoam().
|
protected |
Definition at line 63 of file DAResidualPimpleDyMFoam.H.
Referenced by DAResidualPimpleDyMFoam::DAResidualPimpleDyMFoam().