Public Member Functions | Protected Attributes | List of all members
constraintProjection Class Reference

Update design variables using Rosen's projection method. More...

Inheritance diagram for constraintProjection:
Inheritance graph
[legend]
Collaboration diagram for constraintProjection:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("constraintProjection")
 
 constraintProjection (const fvMesh &mesh, const dictionary &dict)
 
virtual ~constraintProjection ()=default
 
void computeCorrection ()
 
- Public Member Functions inherited from constrainedOptimisationMethod
 TypeName ("constrainedOptimisationMethod")
 
 declareRunTimeSelectionTable (autoPtr, constrainedOptimisationMethod, dictionary,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
 
 constrainedOptimisationMethod (const fvMesh &mesh, const dictionary &dict)
 
virtual ~constrainedOptimisationMethod ()=default
 
- Public Member Functions inherited from updateMethod
 TypeName ("updateMethod")
 
 declareRunTimeSelectionTable (autoPtr, updateMethod, dictionary,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
 
 updateMethod (const fvMesh &mesh, const dictionary &dict)
 
virtual ~updateMethod ()=default
 
void setObjectiveDeriv (const scalarField &derivs)
 
void setConstraintDeriv (const PtrList< scalarField > &derivs)
 
void setObjectiveValue (const scalar value)
 
void setConstraintValues (const scalarField &values)
 
void setStep (const scalar eta)
 
void setGlobalSum (const bool useGlobalSum)
 
scalarFieldreturnCorrection ()
 
void writeCorrection ()
 
virtual scalar computeMeritFunction ()
 
virtual scalar meritFunctionDirectionalDerivative ()
 
boolinitialEtaSet ()
 
virtual void updateOldCorrection (const scalarField &oldCorrection)
 
virtual void write ()
 

Protected Attributes

bool useCorrection_
 
- Protected Attributes inherited from updateMethod
const fvMeshmesh_
 
const dictionary dict_
 
IOdictionary optMethodIODict_
 
scalarField objectiveDerivatives_
 
PtrList< scalarFieldconstraintDerivatives_
 
scalar objectiveValue_
 
scalarField cValues_
 
scalarField correction_
 
scalarField cumulativeCorrection_
 
scalar eta_
 
bool initialEtaSet_
 
word correctionFolder_
 
bool globalSum_
 

Additional Inherited Members

- Static Public Member Functions inherited from updateMethod
static autoPtr< updateMethodNew (const fvMesh &mesh, const dictionary &dict)
 
- Protected Member Functions inherited from updateMethod
const scalarField leftMult (const scalarField &, const SquareMatrix< scalar > &)
 
const scalarField rightMult (const SquareMatrix< scalar > &, const scalarField &)
 
SquareMatrix< scalar > outerProd (const scalarField &, const scalarField &)
 
SquareMatrix< scalar > inv (SquareMatrix< scalar > A)
 
scalar globalSum (const scalarField &field)
 
scalar globalSum (tmp< scalarField > &tfield)
 
dictionary coeffsDict ()
 

Detailed Description

Update design variables using Rosen's projection method.

Can handle multiple constraints. Optionally includes a non-linearity correction

Source files

Definition at line 52 of file constraintProjection.H.

Constructor & Destructor Documentation

◆ constraintProjection()

constraintProjection ( const fvMesh mesh,
const dictionary dict 
)

Definition at line 49 of file constraintProjection.C.

◆ ~constraintProjection()

virtual ~constraintProjection ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "constraintProjection"  )

◆ computeCorrection()

void computeCorrection ( )
virtual

Member Data Documentation

◆ useCorrection_

bool useCorrection_
protected

Definition at line 61 of file constraintProjection.H.

Referenced by constraintProjection::computeCorrection().


The documentation for this class was generated from the following files: