A smooth Heaviside function to project the signed distance field in level set topology optimization. More...
#include <smoothHeaviside.H>


Public Member Functions | |
| TypeName ("smoothHeaviside") | |
| Runtime type information. | |
| smoothHeaviside (const fvMesh &mesh, const dictionary &dict) | |
| Construct from mesh and dictionary. | |
| virtual | ~smoothHeaviside ()=default |
| virtual void | interpolate (const scalarField &arg, scalarField &res) const |
| Interpolate argument to result. | |
| virtual tmp< scalarField > | derivative (const scalarField &arg) const |
| Return of function with respect to the argument field. | |
| Public Member Functions inherited from topOInterpolationFunction | |
| TypeName ("topOInterpolationFunction") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, topOInterpolationFunction, dictionary,(const fvMesh &mesh, const dictionary &dict),(mesh, dict)) | |
| topOInterpolationFunction (const fvMesh &mesh, const dictionary &dict) | |
| Construct from components. | |
| virtual | ~topOInterpolationFunction ()=default |
| Destructor. | |
| virtual void | setLengthScaleParam (const scalar lengthScale) |
| Set the parameter determining length scale. | |
Protected Attributes | |
| autoPtr< Function1< scalar > > | b_ |
| Protected Attributes inherited from topOInterpolationFunction | |
| const fvMesh & | mesh_ |
| dictionary | dict_ |
Additional Inherited Members | |
| Static Public Member Functions inherited from topOInterpolationFunction | |
| static autoPtr< topOInterpolationFunction > | New (const fvMesh &mesh, const dictionary &dict) |
| Return an autoPtr to the selected interpolation type. | |
A smooth Heaviside function to project the signed distance field in level set topology optimization.
Definition at line 44 of file smoothHeaviside.H.
| smoothHeaviside | ( | const fvMesh & | mesh, |
| const dictionary & | dict ) |
Construct from mesh and dictionary.
Definition at line 43 of file smoothHeaviside.C.
References b_, dict, mesh, and topOInterpolationFunction::New().

|
virtualdefault |
|
virtual |
Interpolate argument to result.
Implements topOInterpolationFunction.
Definition at line 56 of file smoothHeaviside.C.
References b, b_, topOInterpolationFunction::mesh_, and Foam::tanh().

|
virtual |
Return of function with respect to the argument field.
Implements topOInterpolationFunction.
Definition at line 69 of file smoothHeaviside.C.
References b, b_, topOInterpolationFunction::mesh_, tmp< T >::New(), tmp< T >::ref(), UList< T >::size(), Foam::sqr(), Foam::tanh(), and Foam::Zero.

Definition at line 52 of file smoothHeaviside.H.
Referenced by derivative(), interpolate(), and smoothHeaviside().