These are state variables, state residuals, and partial derivatives | |
volVectorField & | U_ |
volVectorField | URes_ |
volScalarField & | p_ |
volScalarField | pRes_ |
surfaceScalarField & | phi_ |
surfaceScalarField | phiRes_ |
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... | |
word | mode_ = "None" |
whether the hybrid adjoint or time accurate adjoint is active More... | |
TypeName ("DAPimpleFoam") | |
DAResidualPimpleFoam (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex) | |
virtual | ~DAResidualPimpleFoam () |
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... | |
Additional Inherited Members | |
Public Member Functions inherited from DAResidual | |
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... | |
Static Public Member Functions inherited from DAResidual | |
static autoPtr< DAResidual > | New (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex) |
Protected Attributes inherited from DAResidual | |
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 DAResidualPimpleFoam.H.
DAResidualPimpleFoam | ( | const word | modelType, |
const fvMesh & | mesh, | ||
const DAOption & | daOption, | ||
const DAModel & | daModel, | ||
const DAIndex & | daIndex | ||
) |
Definition at line 19 of file DAResidualPimpleFoam.C.
References allOptions, daOption(), DAResidualPimpleFoam::hasFvSource_, and DAResidualPimpleFoam::mode_.
|
inlinevirtual |
Definition at line 72 of file DAResidualPimpleFoam.H.
TypeName | ( | "DAPimpleFoam" | ) |
|
virtual |
clear the members
Implements DAResidual.
Definition at line 48 of file DAResidualPimpleFoam.C.
References DAResidualPimpleFoam::phiRes_, DAResidualPimpleFoam::pRes_, and DAResidualPimpleFoam::URes_.
|
virtual |
compute residual
Implements DAResidual.
Definition at line 61 of file DAResidualPimpleFoam.C.
References adjustPhi(), DAFvSource::calcFvSource(), DAResidualPimpleFoam::daTurb_, DATurbulenceModel::divDevReff(), DAResidualPimpleFoam::fvSource_, DAResidualPimpleFoam::hasFvSource_, HbyA, DAResidual::mesh_, DAResidualPimpleFoam::mode_, normalizePhiResiduals, normalizeResiduals, DAResidualPimpleFoam::p_, DAResidualPimpleFoam::phi_, phiHbyA, DAResidualPimpleFoam::phiRes_, DAResidualPimpleFoam::pimple_, pRefCell, pRefValue, DAResidualPimpleFoam::pRes_, rAtU(), rAU(), DAResidualPimpleFoam::U_, UEqn, and DAResidualPimpleFoam::URes_.
|
virtual |
update any intermediate variables that are dependent on state variables and are used in calcResiduals
Implements DAResidual.
Definition at line 170 of file DAResidualPimpleFoam.C.
|
virtual |
update the boundary condition for all the states in the selected solver
Implements DAResidual.
Definition at line 180 of file DAResidualPimpleFoam.C.
References DAResidualPimpleFoam::p_, and DAResidualPimpleFoam::U_.
|
protected |
Definition at line 34 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals(), and DAResidualPimpleFoam::correctBoundaryConditions().
|
protected |
Definition at line 35 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals(), and DAResidualPimpleFoam::clear().
|
protected |
Definition at line 37 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals(), and DAResidualPimpleFoam::correctBoundaryConditions().
|
protected |
Definition at line 38 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals(), and DAResidualPimpleFoam::clear().
|
protected |
Definition at line 40 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals().
|
protected |
Definition at line 41 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals(), and DAResidualPimpleFoam::clear().
|
protected |
fvSource term
Definition at line 45 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals().
|
protected |
DATurbulenceModel object.
Definition at line 48 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals().
|
protected |
pimpleControl object which will be initialized in this class
Definition at line 51 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals().
|
protected |
whether to has fvSource term
Definition at line 54 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals(), and DAResidualPimpleFoam::DAResidualPimpleFoam().
|
protected |
whether the hybrid adjoint or time accurate adjoint is active
Definition at line 57 of file DAResidualPimpleFoam.H.
Referenced by DAResidualPimpleFoam::calcResiduals(), and DAResidualPimpleFoam::DAResidualPimpleFoam().