Go to the documentation of this file.
51 if (
dict.found(
"optionAdjoints"))
53 return dict.subDict(
"optionAdjoints");
71 allOk = (allOk && ok);
79 if (mesh_.time().timeIndex() == checkTimeIndex_)
92 Foam::fv::optionAdjointList::optionAdjointList
100 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
102 reset(optionAdjointsDict(
dict));
106 Foam::fv::optionAdjointList::optionAdjointList(
const fvMesh&
mesh)
110 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
134 const word&
name = iter().keyword();
149 return readOptionAdjoints(optionAdjointsDict(
dict));
159 this->operator[](i).writeData(os);
177 optionAdjoints.writeData(os);
points setSize(newPointi)
const dictionary & optionAdjointsDict(const dictionary &dict) const
A class for handling words, derived from Foam::string.
const word & name() const
Return const access to the source name.
virtual void checkApplied() const
Check that the source has been applied.
const fvMesh & mesh_
Reference to the mesh database.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const complex &c)
Return string representation of complex.
void checkApplied() const
Check that all sources have been applied.
Similar to fv::option but with additional functionality to contribute to the sensitivity deriavtives.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
bool readOptionAdjoints(const dictionary &dict)
Read optionAdjoints dictionary.
virtual bool read(const dictionary &dict)
Read source dictionary.
defineTypeNameAndDebug(option, 0)
void reset(const dictionary &dict)
Reset the source list.
static autoPtr< optionAdjoint > New(const word &name, const dictionary &dict, const fvMesh &mesh)
Return a reference to the selected fvOption model.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
const Time & time() const
Return the top-level database.
virtual bool writeData(Ostream &os) const
Write data to Ostream.
virtual bool read(const dictionary &dict)
Read dictionary.
label checkTimeIndex_
Time index to check that all defined sources have been applied.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label timeIndex() const
Return current time index.
bool good() const
Return true if next operation might succeed.