Loading...
Searching...
No Matches
stepUpdate Class Referenceabstract

Abstract base class for step update methods used in line search. More...

#include <stepUpdate.H>

Inheritance diagram for stepUpdate:
Collaboration diagram for stepUpdate:

Public Member Functions

 TypeName ("stepUpdate")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, stepUpdate, dictionary,(const dictionary &dict),(dict))
 stepUpdate (const dictionary &dict)
 Construct from components.
virtual ~stepUpdate ()=default
 Destructor.
virtual void updateStep (scalar &step)=0
 Update the line search step.
virtual void setDeriv (const scalar deriv)
 Set objective derivative.
virtual void setNewMeritValue (const scalar value)
 Set new merit value.
virtual void setOldMeritValue (const scalar value)
 Set old merit value.

Static Public Member Functions

static autoPtr< stepUpdate > New (const dictionary &dict)
 Return a reference to the selected turbulence model.

Protected Member Functions

const dictionarycoeffsDict ()
 Optional coeffs dict.

Protected Attributes

const dictionary dict_

Detailed Description

Abstract base class for step update methods used in line search.

Source files

Definition at line 50 of file stepUpdate.H.

Constructor & Destructor Documentation

◆ stepUpdate()

stepUpdate ( const dictionary & dict)

Construct from components.

Definition at line 44 of file stepUpdate.C.

References dict, and dict_.

◆ ~stepUpdate()

virtual ~stepUpdate ( )
virtualdefault

Destructor.

Member Function Documentation

◆ coeffsDict()

const Foam::dictionary & coeffsDict ( )
protected

Optional coeffs dict.

Definition at line 36 of file stepUpdate.C.

References dict_, and Foam::type().

Referenced by bisection::bisection(), and quadratic::quadratic().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

TypeName ( "stepUpdate" )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr ,
stepUpdate ,
dictionary ,
(const dictionary &dict) ,
(dict)  )

References dict.

◆ New()

Foam::autoPtr< Foam::stepUpdate > New ( const dictionary & dict)
static

Return a reference to the selected turbulence model.

Definition at line 52 of file stepUpdate.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and Foam::Info.

Here is the call graph for this function:

◆ updateStep()

virtual void updateStep ( scalar & step)
pure virtual

Update the line search step.

Implemented in bisection, and quadratic.

◆ setDeriv()

void setDeriv ( const scalar deriv)
virtual

Set objective derivative.

Reimplemented in quadratic.

Definition at line 78 of file stepUpdate.C.

◆ setNewMeritValue()

void setNewMeritValue ( const scalar value)
virtual

Set new merit value.

Reimplemented in quadratic.

Definition at line 84 of file stepUpdate.C.

◆ setOldMeritValue()

void setOldMeritValue ( const scalar value)
virtual

Set old merit value.

Reimplemented in quadratic.

Definition at line 90 of file stepUpdate.C.

Member Data Documentation

◆ dict_

const dictionary dict_
protected

Definition at line 56 of file stepUpdate.H.

Referenced by coeffsDict(), and stepUpdate().


The documentation for this class was generated from the following files:
  • src/optimisation/adjointOptimisation/adjoint/optimisation/lineSearch/stepUpdate/stepUpdate/stepUpdate.H
  • src/optimisation/adjointOptimisation/adjoint/optimisation/lineSearch/stepUpdate/stepUpdate/stepUpdate.C