tanhInterpolation Class Reference

Computes the Brickmann penalization function for topology optimisation, relying on tanh functions and proposed in. More...

Inheritance diagram for tanhInterpolation:
Collaboration diagram for tanhInterpolation:

Public Member Functions

 TypeName ("tanh")
 Runtime type information. More...
 
 tanhInterpolation (const fvMesh &mesh, const dictionary &dict)
 Construct from components. More...
 
virtual ~tanhInterpolation ()=default
 Destructor. More...
 
virtual void interpolate (const scalarField &arg, scalarField &res) const
 Interpolate argument and write to result. More...
 
virtual tmp< scalarFieldderivative (const scalarField &arg) const
 Return of function with respect to the argument field. More...
 
virtual void setLengthScaleParam (const scalar lengthScale)
 Set the parameter determining length scale. More...
 
- Public Member Functions inherited from topOInterpolationFunction
 TypeName ("topOInterpolationFunction")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, topOInterpolationFunction, dictionary,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
 
 topOInterpolationFunction (const fvMesh &mesh, const dictionary &dict)
 Construct from components. More...
 
virtual ~topOInterpolationFunction ()=default
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from topOInterpolationFunction
static autoPtr< topOInterpolationFunctionNew (const fvMesh &mesh, const dictionary &dict)
 Return an autoPtr to the selected interpolation type. More...
 
- Protected Attributes inherited from topOInterpolationFunction
const fvMeshmesh_
 
dictionary dict_
 

Detailed Description

Computes the Brickmann penalization function for topology optimisation, relying on tanh functions and proposed in.

Reference:

    Wang, F., Lazarov, B., Sigmund, O.(2011).
    On projection methods, convergence and robust formulations in topO
    optimization.
    Structural and Multidisciplinary Optimization 43(6), 767–784.
    https://doi:10.1007/s00158-010-0602-y
Source files

Definition at line 58 of file tanhInterpolation.H.

Constructor & Destructor Documentation

◆ tanhInterpolation()

tanhInterpolation ( const fvMesh mesh,
const dictionary dict 
)

Construct from components.

Definition at line 42 of file tanhInterpolation.C.

◆ ~tanhInterpolation()

virtual ~tanhInterpolation ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "tanh"  )

Runtime type information.

◆ interpolate()

void interpolate ( const scalarField arg,
scalarField res 
) const
virtual

Interpolate argument and write to result.

Implements topOInterpolationFunction.

Definition at line 56 of file tanhInterpolation.C.

References Foam::constant::physicoChemical::b, Foam::ensightOutput::debug, Foam::endl(), Foam::Info, and Foam::tanh().

Here is the call graph for this function:

◆ derivative()

Foam::tmp< Foam::scalarField > derivative ( const scalarField arg) const
virtual

Return of function with respect to the argument field.

Implements topOInterpolationFunction.

Definition at line 76 of file tanhInterpolation.C.

References Foam::constant::physicoChemical::b, DebugInfo, Foam::endl(), tmp< T >::ref(), UList< T >::size(), Foam::sqr(), Foam::tanh(), and Foam::Zero.

Here is the call graph for this function:

◆ setLengthScaleParam()

void setLengthScaleParam ( const scalar  lengthScale)
virtual

Set the parameter determining length scale.

Reimplemented from topOInterpolationFunction.

Definition at line 95 of file tanhInterpolation.C.


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