The Conjugate Gradient formula. More...
Protected Member Functions | |
void | allocateFields () |
void | readFromDict () |
![]() | |
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 () |
Protected Attributes | |
labelList | activeDesignVars_ |
scalarField | dxOld_ |
scalarField | sOld_ |
label | counter_ |
word | betaType_ |
![]() | |
const fvMesh & | mesh_ |
const dictionary | dict_ |
IOdictionary | optMethodIODict_ |
scalarField | objectiveDerivatives_ |
PtrList< scalarField > | constraintDerivatives_ |
scalar | objectiveValue_ |
scalarField | cValues_ |
scalarField | correction_ |
scalarField | cumulativeCorrection_ |
scalar | eta_ |
bool | initialEtaSet_ |
word | correctionFolder_ |
bool | globalSum_ |
Additional Inherited Members | |
![]() | |
static autoPtr< updateMethod > | New (const fvMesh &mesh, const dictionary &dict) |
The Conjugate Gradient formula.
Beta computed from Fletcher-Reeves or Polak-Ribiere approaches. Polak-Ribiere seems to misbehave. Not tested with line search.
Definition at line 53 of file conjugateGradient.H.
conjugateGradient | ( | const fvMesh & | mesh, |
const dictionary & | dict | ||
) |
Definition at line 79 of file conjugateGradient.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, and Foam::nl.
|
virtualdefault |
|
protected |
Definition at line 42 of file conjugateGradient.C.
References conjugateGradient::activeDesignVars_, conjugateGradient::dxOld_, Foam::identity(), updateMethod::objectiveDerivatives_, conjugateGradient::sOld_, and Foam::Zero.
|
protected |
Definition at line 56 of file conjugateGradient.C.
References Foam::identity(), and Foam::Zero.
TypeName | ( | "conjugateGradient" | ) |
|
virtual |
Implements updateMethod.
Definition at line 128 of file conjugateGradient.C.
References beta(), Foam::endl(), forAll, Foam::Info, Field::map(), Foam::max(), s, and Foam::Zero.
|
virtual |
Reimplemented from updateMethod.
Definition at line 186 of file conjugateGradient.C.
|
virtual |
Reimplemented from updateMethod.
Definition at line 196 of file conjugateGradient.C.
References updateMethod::write().
|
protected |
Definition at line 61 of file conjugateGradient.H.
Referenced by conjugateGradient::allocateFields().
|
protected |
Definition at line 62 of file conjugateGradient.H.
Referenced by conjugateGradient::allocateFields().
|
protected |
Definition at line 63 of file conjugateGradient.H.
Referenced by conjugateGradient::allocateFields().
|
protected |
Definition at line 64 of file conjugateGradient.H.
|
protected |
Definition at line 65 of file conjugateGradient.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.