Public Member Functions | |
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 () |
virtual void | clear ()=0 |
clear the members More... | |
virtual void | calcResiduals (const dictionary &options)=0 |
compute residuals More... | |
virtual void | updateIntermediateVariables ()=0 |
update any intermdiate variables that are dependent on state variables and are used in calcResiduals More... | |
virtual void | correctBoundaryConditions ()=0 |
update the boundary condition for all the states in the selected solver More... | |
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 | |
static autoPtr< DAResidual > | New (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex) |
Protected Attributes | |
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 35 of file DAResidual.H.
DAResidual | ( | const word | modelType, |
const fvMesh & | mesh, | ||
const DAOption & | daOption, | ||
const DAModel & | daModel, | ||
const DAIndex & | daIndex | ||
) |
Definition at line 22 of file DAResidual.C.
|
inlinevirtual |
Definition at line 98 of file DAResidual.H.
TypeName | ( | "DAResidual" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
DAResidual | , | ||
dictionary | , | ||
(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex) | , | ||
(modelType, mesh, daOption, daModel, daIndex) | |||
) |
|
static |
Definition at line 38 of file DAResidual.C.
References daIndex(), daModel(), daOption(), and mesh.
Referenced by ColoringSolid::run(), ColoringIncompressible::run(), and ColoringCompressible::run().
|
pure virtual |
clear the members
Implemented in DAResidualRhoSimpleFoam, DAResidualTurboFoam, DAResidualRhoSimpleCFoam, DAResidualSimpleTFoam, DAResidualSimpleFoam, DAResidualPimpleFoam, DAResidualPisoFoam, DAResidualSolidDisplacementFoam, DAResidualHeatTransferFoam, DAResidualScalarTransportFoam, DAResidualLaplacianFoam, and DAResidualDummy.
|
pure virtual |
compute residuals
Implemented in DAResidualRhoSimpleFoam, DAResidualTurboFoam, DAResidualRhoSimpleCFoam, DAResidualSimpleTFoam, DAResidualSimpleFoam, DAResidualPimpleFoam, DAResidualPisoFoam, DAResidualSolidDisplacementFoam, DAResidualHeatTransferFoam, DAResidualScalarTransportFoam, DAResidualLaplacianFoam, and DAResidualDummy.
Referenced by DAResidual::masterFunction().
|
pure virtual |
update any intermdiate variables that are dependent on state variables and are used in calcResiduals
Implemented in DAResidualRhoSimpleFoam, DAResidualTurboFoam, DAResidualRhoSimpleCFoam, DAResidualSimpleTFoam, DAResidualSimpleFoam, DAResidualPimpleFoam, DAResidualPisoFoam, DAResidualSolidDisplacementFoam, DAResidualHeatTransferFoam, DAResidualScalarTransportFoam, DAResidualLaplacianFoam, and DAResidualDummy.
Referenced by DAResidual::masterFunction(), and DAObjFunc::masterFunction().
|
pure virtual |
update the boundary condition for all the states in the selected solver
Implemented in DAResidualRhoSimpleFoam, DAResidualTurboFoam, DAResidualRhoSimpleCFoam, DAResidualSimpleTFoam, DAResidualSimpleFoam, DAResidualPimpleFoam, DAResidualPisoFoam, DAResidualSolidDisplacementFoam, DAResidualHeatTransferFoam, DAResidualScalarTransportFoam, DAResidualLaplacianFoam, and DAResidualDummy.
Referenced by DAResidual::masterFunction(), and DAObjFunc::masterFunction().
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
Definition at line 81 of file DAResidual.C.
References DAResidual::calcResiduals(), DAModel::correctBoundaryConditions(), DAResidual::correctBoundaryConditions(), DAResidual::daField_, daModel(), DAResidual::daModel_, DAField::ofResField2ResVec(), DAField::pointVec2OFMesh(), DAField::specialBCTreatment(), DAField::stateVec2OFField(), and DAResidual::updateIntermediateVariables().
Referenced by DAPartDerivdRdAOA::calcPartDerivMat(), DAPartDerivdRdW::calcPartDerivMat(), DAPartDerivdRdFFD::calcPartDerivMat(), DAPartDerivdRdBC::calcPartDerivMat(), DAPartDerivdRdACTL::calcPartDerivMat(), DAPartDerivdRdACTD::calcPartDerivMat(), and DAPartDerivdRdACTP::calcPartDerivMat().
|
protected |
fvMesh
Definition at line 47 of file DAResidual.H.
Referenced by DAResidualPimpleFoam::calcResiduals(), DAResidualPisoFoam::calcResiduals(), DAResidualSimpleFoam::calcResiduals(), DAResidualSimpleTFoam::calcResiduals(), DAResidualRhoSimpleCFoam::calcResiduals(), DAResidualTurboFoam::calcResiduals(), DAResidualRhoSimpleFoam::calcResiduals(), DAResidualHeatTransferFoam::DAResidualHeatTransferFoam(), DAResidualLaplacianFoam::DAResidualLaplacianFoam(), and DAResidualScalarTransportFoam::DAResidualScalarTransportFoam().
|
protected |
DAOption object.
Definition at line 50 of file DAResidual.H.
Referenced by DAResidualRhoSimpleCFoam::calcResiduals(), DAResidualTurboFoam::calcResiduals(), DAResidualRhoSimpleCFoam::DAResidualRhoSimpleCFoam(), DAResidualRhoSimpleFoam::DAResidualRhoSimpleFoam(), DAResidualTurboFoam::DAResidualTurboFoam(), and DAResidualSolidDisplacementFoam::updateDAndGradD().
|
protected |
DAModel object.
Definition at line 53 of file DAResidual.H.
Referenced by DAResidual::masterFunction().
|
protected |
Definition at line 56 of file DAResidual.H.
|
protected |
DAField object.
Definition at line 59 of file DAResidual.H.
Referenced by DAResidual::masterFunction().