Public Member Functions | |
TypeName ("partialVolume") | |
Runtime type information. More... | |
objectivePartialVolume (const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName) | |
from components More... | |
virtual | ~objectivePartialVolume ()=default |
Destructor. More... | |
scalar | J () |
Return the objective function value. More... | |
void | update_dxdbDirectMultiplier () |
void | update_dSdbMultiplier () |
void | write () const |
Write objective function history. More... | |
Public Member Functions inherited from objectiveIncompressible | |
TypeName ("incompressible") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, objectiveIncompressible, dictionary,(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName),(mesh, dict, adjointSolverName, primalSolverName)) | |
objectiveIncompressible (const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName) | |
Construct from components. More... | |
virtual | ~objectiveIncompressible ()=default |
Destructor. More... | |
const volVectorField & | dJdv () |
Contribution to field adjoint momentum eqs. More... | |
const volScalarField & | dJdp () |
Contribution to field adjoint continuity eq. More... | |
const volScalarField & | dJdT () |
Contribution to field adjoint energy eq. More... | |
const volScalarField & | dJdTMvar1 () |
Contribution to field adjoint turbulence model variable 1. More... | |
const volScalarField & | dJdTMvar2 () |
Contribution to field adjoint turbulence model variable 2. More... | |
const fvPatchVectorField & | boundarydJdv (const label) |
Objective partial deriv wrt velocity for a specific patch. More... | |
const fvPatchScalarField & | boundarydJdvn (const label) |
Objective partial deriv wrt normal velocity for a specific patch. More... | |
const fvPatchVectorField & | boundarydJdvt (const label) |
Objective partial deriv wrt tangent velocity for a specific patch. More... | |
const fvPatchVectorField & | boundarydJdp (const label) |
const fvPatchScalarField & | boundarydJdT (const label) |
Objective partial deriv wrt temperature for a specific patch. More... | |
const fvPatchScalarField & | boundarydJdTMvar1 (const label) |
const fvPatchScalarField & | boundarydJdTMvar2 (const label) |
const boundaryVectorField & | boundarydJdv () |
Objective partial deriv wrt velocity for all patches. More... | |
const boundaryScalarField & | boundarydJdvn () |
Objective partial deriv wrt normal velocity for all patches. More... | |
const boundaryVectorField & | boundarydJdvt () |
Objective partial deriv wrt tangent velocity for all patches. More... | |
const boundaryVectorField & | boundarydJdp () |
Objective partial deriv wrt pressure (times normal) for all patches. More... | |
const boundaryScalarField & | boundarydJdT () |
Objective partial deriv wrt temperature for all patches. More... | |
const boundaryScalarField & | boundarydJdTMvar1 () |
Objective partial deriv wrt turbulence model var 1 for all patches. More... | |
const boundaryScalarField & | boundarydJdTMvar2 () |
Objective partial deriv wrt turbulence model var 2 for all patches. More... | |
virtual void | update () |
Update objective function derivatives. More... | |
virtual void | nullify () |
Update objective function derivatives. More... | |
virtual void | update_dJdv () |
Update vol and boundary fields and derivatives. More... | |
virtual void | update_dJdp () |
virtual void | update_dJdT () |
virtual void | update_dJdTMvar1 () |
virtual void | update_dJdTMvar2 () |
virtual void | update_dJdb () |
virtual void | update_divDxDbMultiplier () |
Update div( dx/db multiplier). Volume-based sensitivity term. More... | |
virtual void | update_gradDxDbMultiplier () |
Update grad( dx/db multiplier). Volume-based sensitivity term. More... | |
virtual void | update_boundarydJdv () |
virtual void | update_boundarydJdvn () |
virtual void | update_boundarydJdvt () |
virtual void | update_boundarydJdp () |
virtual void | update_boundarydJdT () |
virtual void | update_boundarydJdTMvar1 () |
virtual void | update_boundarydJdTMvar2 () |
virtual void | update_boundarydJdb () |
Update objective function derivative term. More... | |
virtual void | update_dndbMultiplier () |
Update d (normal) / db multiplier. Surface-based sensitivity term. More... | |
virtual void | update_dxdbMultiplier () |
Update d (x) / db multiplier. Surface-based sensitivity term. More... | |
virtual void | update_meanValues () |
bool | hasdJdv () const |
Inline functions for checking whether pointers are set or not. More... | |
bool | hasdJdp () const |
bool | hasdJdT () const |
bool | hasdJdTMVar1 () const |
bool | hasdJdTMVar2 () const |
bool | hasBoundarydJdv () const |
bool | hasBoundarydJdvn () const |
bool | hasBoundarydJdvt () const |
bool | hasBoundarydJdp () const |
bool | hasBoundarydJdT () const |
bool | hasBoundarydJdTMVar1 () const |
bool | hasBoundarydJdTMVar2 () const |
Public Member Functions inherited from objective | |
TypeName ("objective") | |
Runtime type information. More... | |
declareRunTimeNewSelectionTable (autoPtr, objective, objective,(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName),(mesh, dict, adjointSolverName, primalSolverName)) | |
objective (const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName) | |
Construct from components. More... | |
virtual | ~objective ()=default |
Destructor. More... | |
virtual bool | readDict (const dictionary &dict) |
scalar | JCycle () const |
void | accumulateJMean (solverControl &solverControl) |
Accumulate contribution for the mean objective value. More... | |
void | accumulateJMean () |
Accumulate contribution for the mean objective value. More... | |
scalar | weight () const |
Return the objective function weight. More... | |
bool | isWithinIntegrationTime () const |
Check whether this is an objective integration time. More... | |
void | incrementIntegrationTimes (const scalar timeSpan) |
Increment integration times. More... | |
const volScalarField & | dJdb () |
Contribution to field sensitivities. More... | |
const fvPatchVectorField & | boundarydJdb (const label) |
Contribution to surface sensitivities for a specific patch. More... | |
const fvPatchVectorField & | dSdbMultiplier (const label) |
Multiplier of delta(n dS)/delta b. More... | |
const fvPatchVectorField & | dndbMultiplier (const label) |
Multiplier of delta(n dS)/delta b. More... | |
const fvPatchVectorField & | dxdbMultiplier (const label) |
Multiplier of delta(x)/delta b. More... | |
const fvPatchVectorField & | dxdbDirectMultiplier (const label) |
Multiplier of delta(x)/delta b. More... | |
const vectorField & | boundaryEdgeMultiplier (const label patchI, const label edgeI) |
Multiplier located at patch boundary edges. More... | |
const fvPatchTensorField & | boundarydJdStress (const label) |
Objective partial deriv wrt stress tensor. More... | |
const boundaryVectorField & | boundarydJdb () |
Contribution to surface sensitivities for all patches. More... | |
const boundaryVectorField & | dSdbMultiplier () |
Multiplier of delta(n dS)/delta b for all patches. More... | |
const boundaryVectorField & | dndbMultiplier () |
Multiplier of delta(n dS)/delta b for all patches. More... | |
const boundaryVectorField & | dxdbMultiplier () |
Multiplier of delta(x)/delta b for all patches. More... | |
const boundaryVectorField & | dxdbDirectMultiplier () |
Multiplier of delta(x)/delta b for all patches. More... | |
const vectorField3 & | boundaryEdgeMultiplier () |
Multiplier located at patch boundary edges. More... | |
const boundaryTensorField & | boundarydJdStress () |
Objective partial deriv wrt stress tensor. More... | |
const volScalarField & | divDxDbMultiplier () |
Multiplier of grad( delta(x)/delta b) for volume-based sensitivities. More... | |
const volTensorField & | gradDxDbMultiplier () |
Multiplier of grad( delta(x)/delta b) for volume-based sensitivities. More... | |
virtual void | updateNormalizationFactor () |
virtual void | update_boundaryEdgeContribution () |
Update boundary edge contributions. More... | |
virtual void | update_dJdStressMultiplier () |
Update dJ/dStress field. More... | |
virtual void | writeInstantaneousValue () const |
Write objective function history at each primal solver iteration. More... | |
virtual void | writeMeanValue () const |
Write mean objective function history. More... | |
const word & | objectiveName () const |
bool | hasdJdb () const |
bool | hasBoundarydJdb () const |
bool | hasdSdbMult () const |
bool | hasdndbMult () const |
bool | hasdxdbMult () const |
bool | hasdxdbDirectMult () const |
bool | hasBoundaryEdgeContribution () const |
bool | hasBoundarydJdStress () const |
bool | hasDivDxDbMult () const |
bool | hasGradDxDbMult () const |
bool | hasIntegrationStartTime () const |
bool | hasIntegrationEndTime () const |
Additional Inherited Members | |
Static Public Member Functions inherited from objectiveIncompressible | |
static autoPtr< objectiveIncompressible > | New (const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName) |
Return a reference to the selected turbulence model. More... | |
Static Public Member Functions inherited from objective | |
static autoPtr< objective > | New (const fvMesh &mesh, const dictionary &dict, const word &objectiveType, const word &adjointSolverName, const word &primalSolverName) |
Return a reference to the selected turbulence model. More... | |
Protected Member Functions inherited from objective | |
const dictionary & | dict () const |
Return objective dictionary. More... | |
void | setObjectiveFilePtr () const |
Set the output file ptr. More... | |
void | setInstantValueFilePtr () const |
Set the output file ptr for the instantaneous value. More... | |
void | setMeanValueFilePtr () const |
Set the output file ptr for the mean value. More... | |
Protected Attributes inherited from objectiveIncompressible | |
const incompressibleVars & | vars_ |
autoPtr< volVectorField > | dJdvPtr_ |
autoPtr< volScalarField > | dJdpPtr_ |
autoPtr< volScalarField > | dJdTPtr_ |
autoPtr< volScalarField > | dJdTMvar1Ptr_ |
First turbulence model variable. More... | |
autoPtr< volScalarField > | dJdTMvar2Ptr_ |
Second turbulence model variable. More... | |
autoPtr< boundaryVectorField > | bdJdvPtr_ |
autoPtr< boundaryScalarField > | bdJdvnPtr_ |
Adjoint outlet pressure. More... | |
autoPtr< boundaryVectorField > | bdJdvtPtr_ |
Adjoint outlet velocity. More... | |
autoPtr< boundaryVectorField > | bdJdpPtr_ |
Adjoint (intlet,wall) velocity. More... | |
autoPtr< boundaryScalarField > | bdJdTPtr_ |
Adjoint outlet temperature. More... | |
autoPtr< boundaryScalarField > | bdJdTMvar1Ptr_ |
Adjoint outlet turbulence model var 1. More... | |
autoPtr< boundaryScalarField > | bdJdTMvar2Ptr_ |
Adjoint outlet turbulence model var 2. More... | |
Protected Attributes inherited from objective | |
const fvMesh & | mesh_ |
dictionary | dict_ |
const word | adjointSolverName_ |
const word | primalSolverName_ |
const word | objectiveName_ |
bool | computeMeanFields_ |
bool | nullified_ |
scalar | J_ |
scalar | JMean_ |
scalar | weight_ |
autoPtr< scalar > | integrationStartTimePtr_ |
autoPtr< scalar > | integrationEndTimePtr_ |
autoPtr< volScalarField > | dJdbPtr_ |
autoPtr< boundaryVectorField > | bdJdbPtr_ |
Term from material derivative. More... | |
autoPtr< boundaryVectorField > | bdSdbMultPtr_ |
Term multiplying delta(n dS)/delta b. More... | |
autoPtr< boundaryVectorField > | bdndbMultPtr_ |
Term multiplying delta(n)/delta b. More... | |
autoPtr< boundaryVectorField > | bdxdbMultPtr_ |
Term multiplying delta(x)/delta b at the boundary. More... | |
autoPtr< boundaryVectorField > | bdxdbDirectMultPtr_ |
autoPtr< vectorField3 > | bEdgeContribution_ |
autoPtr< boundaryTensorField > | bdJdStressPtr_ |
For use with discrete-like sensitivities. More... | |
autoPtr< volScalarField > | divDxDbMultPtr_ |
Multiplier of d(Volume)/db. More... | |
autoPtr< volTensorField > | gradDxDbMultPtr_ |
Emerging from volume objectives that include spatial derivatives. More... | |
fileName | objFunctionFolder_ |
Output file variables. More... | |
autoPtr< OFstream > | objFunctionFilePtr_ |
File to keep the objective values after the end of the primal solver. More... | |
autoPtr< OFstream > | instantValueFilePtr_ |
autoPtr< OFstream > | meanValueFilePtr_ |
Definition at line 55 of file objectivePartialVolume.H.
objectivePartialVolume | ( | const fvMesh & | mesh, |
const dictionary & | dict, | ||
const word & | adjointSolverName, | ||
const word & | primalSolverName | ||
) |
from components
Definition at line 57 of file objectivePartialVolume.C.
References dict, forAllConstIters(), Foam::gSum(), Foam::oneThird, and Foam::foamVersion::patch.
|
virtualdefault |
Destructor.
TypeName | ( | "partialVolume" | ) |
Runtime type information.
|
virtual |
Return the objective function value.
Implements objectiveIncompressible.
Definition at line 98 of file objectivePartialVolume.C.
References fvMesh::boundary(), forAllConstIters(), Foam::gSum(), objective::J_, objective::mesh_, Foam::oneThird, Foam::foamVersion::patch, and Foam::Zero.
|
virtual |
Update d (x) / db multiplier. Surface and volume-based sensitivity term
Reimplemented from objectiveIncompressible.
Definition at line 114 of file objectivePartialVolume.C.
References objective::bdxdbDirectMultPtr_, fvMesh::boundary(), forAllConstIter, objective::mesh_, Foam::oneThird, and Foam::foamVersion::patch.
|
virtual |
Update d (normal dS) / db multiplier. Surface and volume-based sensitivity term
Reimplemented from objectiveIncompressible.
Definition at line 128 of file objectivePartialVolume.C.
References objective::bdSdbMultPtr_, fvMesh::boundary(), forAllConstIter, objective::mesh_, Foam::oneThird, and Foam::foamVersion::patch.
|
virtual |
Write objective function history.
Reimplemented from objectiveIncompressible.
Definition at line 140 of file objectivePartialVolume.C.
References IOstream::defaultPrecision(), Foam::endl(), objective::J_, UPstream::master(), objective::mesh_, objective::objFunctionFilePtr_, objective::setObjectiveFilePtr(), Foam::setw(), fvMesh::time(), and dimensioned< Type >::value().