47 shouldWrite_ = shouldWrite;
59 return *dJdbFieldPtr_;
66 return bdJdbPtr_()[patchI];
73 return bdSdbMultPtr_()[patchI];
80 return bdndbMultPtr_()[patchI];
87 return bdxdbMultPtr_()[patchI];
94 return bdxdbDirectMultPtr_()[patchI];
104 if (!bdxdbDirectMultPtr_)
107 <<
"Unallocated boundaryEdgeMultiplier field" 110 return bEdgeContribution_()[patchI][edgeI];
122 return *bdSdbMultPtr_;
128 return *bdndbMultPtr_;
134 return *bdxdbMultPtr_;
141 return *bdxdbDirectMultPtr_;
147 if (!bdxdbDirectMultPtr_)
150 <<
"Unallocated boundaryEdgeMultiplier field" 154 return *bEdgeContribution_;
160 return *divDxDbMultPtr_;
166 return *gradDxDbMultPtr_;
172 return bool(dJdbPtr_);
178 return bool(dJdbFieldPtr_);
184 return bool(bdJdbPtr_);
190 return bool(bdSdbMultPtr_);
196 return bool(bdndbMultPtr_);
202 return bool(bdxdbMultPtr_);
208 return bool(bdxdbDirectMultPtr_);
214 return bool(bEdgeContribution_);
220 return bool(divDxDbMultPtr_);
226 return bool(gradDxDbMultPtr_);
232 return bool(integrationStartTimePtr_);
238 return bool(integrationEndTimePtr_);
244 computed_ = isComputed;
const scalarField & dJdbField() const
Contribution to sensitivities with a random number of designVars.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const vectorField3 & boundaryEdgeMultiplier() const
Multiplier located at patch boundary edges.
bool hasdxdbDirectMult() const noexcept
bool hasBoundarydJdb() const noexcept
bool hasdJdbField() const noexcept
void setWrite(const bool shouldWrite)
Should the objective be written to file upon calling write()?
bool hasdndbMult() const noexcept
Ostream & endl(Ostream &os)
Add newline and flush stream.
const boundaryVectorField & dndbMultiplier() const
Multiplier of delta(n dS)/delta b for all patches.
bool hasBoundaryEdgeContribution() const noexcept
const word objectiveName_
bool hasGradDxDbMult() const noexcept
bool hasdSdbMult() const noexcept
const boundaryVectorField & dxdbMultiplier() const
Multiplier of delta(x)/delta b for all patches.
const volScalarField & dJdb() const
Contribution to field sensitivities.
A class for handling words, derived from Foam::string.
bool hasdJdb() const noexcept
const boundaryVectorField & boundarydJdb() const
Contribution to surface sensitivities for all patches.
const volScalarField & divDxDbMultiplier() const
Multiplier of grad( delta(x)/delta b) for volume-based sensitivities.
const boundaryVectorField & dSdbMultiplier() const
Multiplier of delta(n dS)/delta b for all patches.
const boundaryVectorField & dxdbDirectMultiplier() const
Multiplier of delta(x)/delta b for all patches.
bool hasIntegrationStartTime() const noexcept
bool shouldWrite() const
Should the objective be written to file upon calling write()?
bool hasDivDxDbMult() const noexcept
void setComputed(const bool isComputed) noexcept
Set the computed status of the objective.
const volTensorField & gradDxDbMultiplier() const
Multiplier of grad( delta(x)/delta b) for volume-based sensitivities.
bool hasdxdbMult() const noexcept
bool hasIntegrationEndTime() const noexcept
const word & objectiveName() const
Return the objective name.