44 #ifndef conjugateGradient_H 45 #define conjugateGradient_H virtual void updateOldCorrection(const scalarField &oldCorrection)
Update old correction. For use when eta has been changed externally.
void computeCorrection()
Compute design variables correction.
label nConstraints() const
Get the number of constraints.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Abstract base class for optimisation methods.
The Conjugate Gradient formula.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
A class for handling words, derived from Foam::string.
virtual bool writeData(Ostream &os) const
Write useful quantities to files.
TypeName("conjugateGradient")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Mesh data needed to do the Finite Volume discretisation.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual ~conjugateGradient()=default
Destructor.