206 void setStep(
const scalar eta);
240 virtual void write();
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
A templated (N x N) square matrix of objects of <Type>, containing N*N elements, derived from Matrix.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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.
A class for managing temporary objects.
Abstract base class for optimisation methods.
void setConstraintValues(const scalarField &values)
Set constraints derivative.
scalarField objectiveDerivatives_
Derivatives of the objective functions.
static autoPtr< updateMethod > New(const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected turbulence model.
virtual scalar meritFunctionDirectionalDerivative()
scalarField correction_
Design variables correction.
bool globalSum_
Whether to use gSum or sum in the inner products.
scalar globalSum(const scalarField &field)
Compute either global or local sum, based on globalSum flag.
scalarField cValues_
Constraint values.
scalar objectiveValue_
Objective value.
dictionary coeffsDict()
Return optional dictionary with parameters specific to each method.
PtrList< scalarField > constraintDerivatives_
Derivatives of the constraints.
void setStep(const scalar eta)
Set step for optimisation methods.
const scalarField leftMult(const scalarField &, const SquareMatrix< scalar > &)
scalarField & returnCorrection()
Return the correction of the design variables.
TypeName("updateMethod")
Runtime type information.
SquareMatrix< scalar > inv(SquareMatrix< scalar > A)
bool initialEtaSet_
Is initially set?
const scalarField rightMult(const SquareMatrix< scalar > &, const scalarField &)
void setObjectiveValue(const scalar value)
Set constraints derivative.
void setConstraintDeriv(const PtrList< scalarField > &derivs)
Set constraints derivative.
virtual scalar computeMeritFunction()
virtual ~updateMethod()=default
Destructor.
virtual void write()
Write useful quantities to files.
declareRunTimeSelectionTable(autoPtr, updateMethod, dictionary,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
IOdictionary optMethodIODict_
Used to output values useful for continuation runs.
scalarField cumulativeCorrection_
virtual void updateOldCorrection(const scalarField &oldCorrection)
scalar eta_
Step multiplying the correction.
bool & initialEtaSet()
Return whether initial eta was set.
word correctionFolder_
Folder storing the corrections to file.
SquareMatrix< scalar > outerProd(const scalarField &, const scalarField &)
void setObjectiveDeriv(const scalarField &derivs)
Set objective derivative.
virtual void computeCorrection()=0
Return the correction of the design variables.
void setGlobalSum(const bool useGlobalSum)
Set globalSum variable.
A class for handling words, derived from Foam::string.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.