38 namespace incompressible
63 <<
"includeObjectiveContribution set to true in both " 64 <<
"surfaceSensitivities and the parameterization options" <<
nl 65 <<
"This will lead to double contributions " <<
nl 66 <<
"Disabling the former" 93 dict.optionalSubDict(
"surfaceSensitivities"),
96 includeObjective_(true),
97 writeSensitivityMap_(true)
virtual bool readDict(const dictionary &dict)
Read dict if changed.
void setIncludeObjective(const bool includeObjective)
Set includeObjective bool.
virtual bool readDict(const dictionary &dict)
Read dictionary if changed.
defineTypeNameAndDebug(adjointEikonalSolver, 0)
virtual void accumulateDirectSensitivityIntegrand(const scalar dt)
Accumulate direct sensitivities.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void write(const word &baseName=word::null)
Write sensitivity map.
virtual void write(const word &baseName=word::null)
Write sensitivity maps.
constexpr char nl
The newline '\n' character (0x0a)
virtual void clearSensitivities()
Zero sensitivity fields and their constituents.
bool includeObjective_
Whether to include direct sensitivities or not.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Base class for adjoint solvers.
virtual void write(const word &baseName=word::null)
Write sensitivity fields.
virtual void clearSensitivities()
Zero sensitivity fields and their constituents.
void read()
Read controls and update solver pointers if necessary.
Macros for easy insertion into run-time selection tables.
bool read(const char *buf, int32_t &val)
Same as readInt32.
Base class for incompressibleAdjoint solvers.
const dictionary & dict() const
Return the construction dictionary.
void setIncludeSurfaceArea(const bool includeSurfaceArea)
Set includeSurfaceArea bool.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
Base class for Surface Integral-based sensitivity derivatives.
A class for handling words, derived from Foam::string.
virtual bool readDict(const dictionary &dict)
Read dict if changed.
virtual void accumulateIntegrand(const scalar dt)
Accumulate sensitivity integrands.
virtual void accumulateIntegrand(const scalar dt)
Accumulate sensitivity integrands.
void read()
Read options from dict.
#define WarningInFunction
Report a warning using Foam::Warning.
Mesh data needed to do the Finite Volume discretisation.
Calculation of adjoint based sensitivities at wall faces.
bool getIncludeObjective() const
Get access to the includeObjective bool.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
sensitivitySurface surfaceSensitivity_
Surface sensitivities.
virtual void clearSensitivities()
Zero sensitivity fields and their constituents.
const sensitivitySurface & getSurfaceSensitivities() const
Return reference to underlaying surface sensitivities.
bool writeSensitivityMap_
Write sensitivity map upon write.
virtual void accumulateBCSensitivityIntegrand(const scalar dt)
Accumulate sensitivities enamating from the boundary conditions.