optMeshMovementBezier Class Reference

Converts NURBS control points update to actual mesh movement. More...

Inheritance diagram for optMeshMovementBezier:
[legend]
Collaboration diagram for optMeshMovementBezier:
[legend]

Public Member Functions

 TypeName ("Bezier")
 Runtime type information. More...
 
 optMeshMovementBezier (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs)
 Construct from components. More...
 
virtual ~optMeshMovementBezier ()=default
 Destructor. More...
 
void moveMesh ()
 Calculates surface mesh movement. More...
 
virtual scalar computeEta (const scalarField &correction)
 Compute eta value based on max displacement. More...
 
virtual labelList getActiveDesignVariables () const
 Return active design variables. More...
 
- Public Member Functions inherited from optMeshMovement
 TypeName ("optMeshMovement")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, optMeshMovement, dictionary,(fvMesh &mesh, const dictionary &dict, const labelList &patchIDs),(mesh, dict, patchIDs))
 
 optMeshMovement (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs)
 Construct from components. More...
 
virtual ~optMeshMovement ()=default
 Destructor. More...
 
void setCorrection (const scalarField &correction)
 Set design variable correction. More...
 
virtual void moveMesh ()
 
autoPtr< displacementMethod > & returnDisplacementMethod ()
 Return displacementMethod. More...
 
const labelListgetPatchIDs ()
 Return patchIDs. More...
 
void writeMeshQualityMetrics ()
 Write mesh quality metrics. More...
 
virtual void storeDesignVariables ()
 
virtual void resetDesignVariables ()
 Reset to starting point of line search. More...
 
virtual scalar computeEta (const scalarField &correction)=0
 Compute eta value based on max displacement. More...
 
bool maxAllowedDisplacementSet () const
 Whether maxAllowedDisplacement has been set. More...
 
virtual labelList getActiveDesignVariables () const
 Return active design variables. More...
 

Protected Member Functions

void computeBoundaryMovement (const scalarField &correction)
 
- Protected Member Functions inherited from optMeshMovement
scalar getMaxAllowedDisplacement () const
 Get maxAllowedDisplacement, is set. More...
 

Protected Attributes

Bezier Bezier_
 Parameterization based on NURBS curves. More...
 
pointVectorField dx_
 Boundary movement due to change of NURBS control points. More...
 
vectorField cumulativeChange_
 Cumulative change of control points. More...
 
- Protected Attributes inherited from optMeshMovement
fvMeshmesh_
 
const dictionarydict_
 
scalarField correction_
 Correction of design variables. More...
 
labelList patchIDs_
 IDs of patches to be moved. More...
 
vectorField pointsInit_
 Fall back points in case line-search is used. More...
 
autoPtr< displacementMethoddisplMethodPtr_
 
bool writeMeshQualityMetrics_
 

Additional Inherited Members

- Static Public Member Functions inherited from optMeshMovement
static autoPtr< optMeshMovementNew (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs)
 

Detailed Description

Converts NURBS control points update to actual mesh movement.

Source files

Definition at line 54 of file optMeshMovementBezier.H.

Constructor & Destructor Documentation

◆ optMeshMovementBezier()

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

Construct from components.

Definition at line 93 of file optMeshMovementBezier.C.

◆ ~optMeshMovementBezier()

virtual ~optMeshMovementBezier ( )
virtualdefault

Destructor.

Member Function Documentation

◆ computeBoundaryMovement()

void computeBoundaryMovement ( const scalarField correction)
protected

◆ TypeName()

TypeName ( "Bezier"  )

Runtime type information.

◆ moveMesh()

void moveMesh ( )
virtual

Calculates surface mesh movement.

Reimplemented from optMeshMovement.

Definition at line 122 of file optMeshMovementBezier.C.

References optMeshMovement::moveMesh().

Here is the call graph for this function:

◆ computeEta()

Foam::scalar computeEta ( const scalarField correction)
virtual

Compute eta value based on max displacement.

Implements optMeshMovement.

Definition at line 136 of file optMeshMovementBezier.C.

References Foam::correction(), Foam::endl(), Foam::gMax(), Foam::Info, and Foam::mag().

Here is the call graph for this function:

◆ getActiveDesignVariables()

Foam::labelList getActiveDesignVariables ( ) const
virtual

Return active design variables.

Reimplemented from optMeshMovement.

Definition at line 154 of file optMeshMovementBezier.C.

Member Data Documentation

◆ Bezier_

Bezier Bezier_
protected

Parameterization based on NURBS curves.

Definition at line 63 of file optMeshMovementBezier.H.

Referenced by optMeshMovementBezier::computeBoundaryMovement().

◆ dx_

pointVectorField dx_
protected

Boundary movement due to change of NURBS control points.

Definition at line 66 of file optMeshMovementBezier.H.

Referenced by optMeshMovementBezier::computeBoundaryMovement().

◆ cumulativeChange_

vectorField cumulativeChange_
protected

Cumulative change of control points.

Definition at line 69 of file optMeshMovementBezier.H.

Referenced by optMeshMovementBezier::computeBoundaryMovement().


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