Go to the documentation of this file.
39 #ifndef updateMethod_H
40 #define updateMethod_H
206 void setStep(
const scalar eta);
240 virtual void write();
scalarField & returnCorrection()
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const scalarField rightMult(const SquareMatrix< scalar > &, const scalarField &)
declareRunTimeSelectionTable(autoPtr, updateMethod, dictionary,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
A class for handling words, derived from Foam::string.
void setGlobalSum(const bool useGlobalSum)
void setConstraintValues(const scalarField &values)
A class for managing temporary objects.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
virtual scalar meritFunctionDirectionalDerivative()
PtrList< scalarField > constraintDerivatives_
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
SquareMatrix< scalar > outerProd(const scalarField &, const scalarField &)
virtual scalar computeMeritFunction()
void setConstraintDeriv(const PtrList< scalarField > &derivs)
virtual ~updateMethod()=default
virtual void updateOldCorrection(const scalarField &oldCorrection)
Generic templated field type.
Abstract base class for optimisation methods.
virtual void computeCorrection()=0
static autoPtr< updateMethod > New(const fvMesh &mesh, const dictionary &dict)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
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.
void setStep(const scalar eta)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void setObjectiveValue(const scalar value)
Macros to ease declaration of run-time selection tables.
scalar globalSum(const scalarField &field)
const scalarField leftMult(const scalarField &, const SquareMatrix< scalar > &)
SquareMatrix< scalar > inv(SquareMatrix< scalar > A)
void setObjectiveDeriv(const scalarField &derivs)
scalarField cumulativeCorrection_
scalarField objectiveDerivatives_
IOdictionary optMethodIODict_