Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
optMeshMovement Class Referenceabstract

Abstract base class for translating an update of the design variables into mesh movement. More...

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

Public Member Functions

 TypeName ("optMeshMovement")
 
 declareRunTimeSelectionTable (autoPtr, optMeshMovement, dictionary,(fvMesh &mesh, const dictionary &dict, const labelList &patchIDs),(mesh, dict, patchIDs))
 
 optMeshMovement (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs)
 
virtual ~optMeshMovement ()=default
 
void setCorrection (const scalarField &correction)
 
virtual void moveMesh ()
 
autoPtr< displacementMethod > & returnDisplacementMethod ()
 
const labelListgetPatchIDs ()
 
void writeMeshQualityMetrics ()
 
virtual void storeDesignVariables ()
 
virtual void resetDesignVariables ()
 
virtual scalar computeEta (const scalarField &correction)=0
 
bool maxAllowedDisplacementSet () const
 
virtual labelList getActiveDesignVariables () const
 

Static Public Member Functions

static autoPtr< optMeshMovementNew (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs)
 

Protected Member Functions

scalar getMaxAllowedDisplacement () const
 

Protected Attributes

fvMeshmesh_
 
const dictionarydict_
 
scalarField correction_
 
labelList patchIDs_
 
vectorField pointsInit_
 
autoPtr< displacementMethoddisplMethodPtr_
 
bool writeMeshQualityMetrics_
 

Detailed Description

Abstract base class for translating an update of the design variables into mesh movement.

Source files

Definition at line 50 of file optMeshMovement.H.

Constructor & Destructor Documentation

◆ optMeshMovement()

optMeshMovement ( fvMesh mesh,
const dictionary dict,
const labelList patchIDs 
)

Definition at line 54 of file optMeshMovement.C.

References dict, dictionary::found(), and dictionary::get().

Here is the call graph for this function:

◆ ~optMeshMovement()

virtual ~optMeshMovement ( )
virtualdefault

Member Function Documentation

◆ getMaxAllowedDisplacement()

Foam::scalar getMaxAllowedDisplacement ( ) const
protected

Definition at line 38 of file optMeshMovement.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "optMeshMovement"  )

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
optMeshMovement  ,
dictionary  ,
(fvMesh &mesh, const dictionary &dict, const labelList &patchIDs)  ,
(mesh, dict, patchIDs)   
)

◆ New()

Foam::autoPtr< Foam::optMeshMovement > New ( fvMesh mesh,
const dictionary dict,
const labelList patchIDs 
)
static

Definition at line 86 of file optMeshMovement.C.

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

Referenced by shapeOptimisation::shapeOptimisation().

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

◆ setCorrection()

void setCorrection ( const scalarField correction)

Definition at line 115 of file optMeshMovement.C.

References Foam::correction().

Here is the call graph for this function:

◆ moveMesh()

void moveMesh ( )
virtual

◆ returnDisplacementMethod()

Foam::autoPtr< Foam::displacementMethod > & returnDisplacementMethod ( )

Definition at line 135 of file optMeshMovement.C.

◆ getPatchIDs()

const Foam::labelList & getPatchIDs ( )

Definition at line 141 of file optMeshMovement.C.

◆ writeMeshQualityMetrics()

void writeMeshQualityMetrics ( )

Definition at line 147 of file optMeshMovement.C.

References Foam::dimless, Foam::endl(), Foam::gAverage(), Foam::gMax(), Foam::Info, cellQuality::nonOrthogonality(), and cellQuality::skewness().

Here is the call graph for this function:

◆ storeDesignVariables()

void storeDesignVariables ( )
virtual

Reimplemented in optMeshMovementVolumetricBSplines.

Definition at line 175 of file optMeshMovement.C.

Referenced by optMeshMovementVolumetricBSplines::storeDesignVariables().

Here is the caller graph for this function:

◆ resetDesignVariables()

void resetDesignVariables ( )
virtual

Reimplemented in optMeshMovementVolumetricBSplines.

Definition at line 181 of file optMeshMovement.C.

References Foam::endl(), and Foam::Info.

Referenced by optMeshMovementVolumetricBSplines::resetDesignVariables().

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

◆ computeEta()

virtual scalar computeEta ( const scalarField correction)
pure virtual

◆ maxAllowedDisplacementSet()

bool maxAllowedDisplacementSet ( ) const

Definition at line 188 of file optMeshMovement.C.

◆ getActiveDesignVariables()

Foam::labelList getActiveDesignVariables ( ) const
virtual

Member Data Documentation

◆ mesh_

fvMesh& mesh_
protected

Definition at line 73 of file optMeshMovement.H.

◆ dict_

const dictionary& dict_
protected

Definition at line 74 of file optMeshMovement.H.

◆ correction_

scalarField correction_
protected

◆ patchIDs_

labelList patchIDs_
protected

Definition at line 80 of file optMeshMovement.H.

◆ pointsInit_

vectorField pointsInit_
protected

Definition at line 83 of file optMeshMovement.H.

◆ displMethodPtr_

autoPtr<displacementMethod> displMethodPtr_
protected

◆ writeMeshQualityMetrics_

bool writeMeshQualityMetrics_
protected

Definition at line 91 of file optMeshMovement.H.


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