Go to the documentation of this file.
47 objectiveIncompressible,
58 const word& adjointSolverName,
59 const word& primalSolverName
64 target_(
dict.get<scalar>(
"target"))
73 J_ = force_ - target_;
86 if (objFunctionFilePtr_.empty())
88 setObjectiveFilePtr();
90 <<
setw(3) <<
"#" <<
" "
91 <<
setw(width) <<
"J" <<
" "
92 <<
setw(width) <<
"Force" <<
" "
98 <<
setw(width) <<
J_ <<
" "
99 <<
setw(width) << force_ <<
" "
A class for handling words, derived from Foam::string.
scalar J()
Return the objective function value.
static constexpr const zero Zero
Global zero (0)
addToRunTimeSelectionTable(objectiveIncompressible, objectiveForce, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
objectiveForceTarget(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName)
Construct from components.
defineTypeNameAndDebug(objectiveForce, 0)
scalar J_
Objective function value and weight.
Istream and Ostream manipulators taking arguments.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
Omanip< int > setw(const int i)
static bool master(const label communicator=0)
Am I the master process.
static unsigned int defaultPrecision()
Return the default precision.
scalar J()
Return the objective function value.
const Time & time() const
Return the top-level database.
virtual bool write(const bool valid=true) const
Write objective value.