A smooth Heaviside function to project the signed distance field in level set topology optimization. More...
Public Member Functions | |
TypeName ("smoothHeaviside") | |
Runtime type information. More... | |
smoothHeaviside (const fvMesh &mesh, const dictionary &dict) | |
Construct from mesh and dictionary. More... | |
virtual | ~smoothHeaviside ()=default |
virtual void | interpolate (const scalarField &arg, scalarField &res) const |
Interpolate argument to result. More... | |
virtual tmp< scalarField > | derivative (const scalarField &arg) const |
Return of function with respect to the argument field. 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... | |
virtual void | setLengthScaleParam (const scalar lengthScale) |
Set the parameter determining length scale. More... | |
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. More... | |
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 44 of file smoothHeaviside.C.
|
virtualdefault |
TypeName | ( | "smoothHeaviside" | ) |
Runtime type information.
|
virtual |
Interpolate argument to result.
Implements topOInterpolationFunction.
Definition at line 57 of file smoothHeaviside.C.
References Foam::constant::physicoChemical::b, and Foam::tanh().
|
virtual |
Return of function with respect to the argument field.
Implements topOInterpolationFunction.
Definition at line 69 of file smoothHeaviside.C.
References Foam::constant::physicoChemical::b, smoothHeaviside::b_, topOInterpolationFunction::mesh_, tmp< T >::New(), tmp< T >::ref(), UList< T >::size(), Foam::sqr(), Foam::tanh(), fvMesh::time(), TimeState::timeOutputValue(), and Foam::Zero.
Definition at line 52 of file smoothHeaviside.H.
Referenced by smoothHeaviside::derivative().