Public Member Functions | |
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 | interpolate (const scalarField &arg, scalarField &res) const =0 |
Interpolate argument to result. More... | |
virtual tmp< scalarField > | derivative (const scalarField &arg) const =0 |
Return of function with respect to the argument field. More... | |
virtual void | setLengthScaleParam (const scalar lengthScale) |
Set the parameter determining length scale. More... | |
Static Public Member Functions | |
static autoPtr< topOInterpolationFunction > | New (const fvMesh &mesh, const dictionary &dict) |
Return an autoPtr to the selected interpolation type. More... | |
Protected Attributes | |
const fvMesh & | mesh_ |
dictionary | dict_ |
Definition at line 50 of file topOInterpolationFunction.H.
topOInterpolationFunction | ( | const fvMesh & | mesh, |
const dictionary & | dict | ||
) |
Construct from components.
Definition at line 37 of file topOInterpolationFunction.C.
|
virtualdefault |
Destructor.
TypeName | ( | "topOInterpolationFunction" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
topOInterpolationFunction | , | ||
dictionary | , | ||
(const fvMesh &mesh, const dictionary &dict) | , | ||
(mesh, dict) | |||
) |
|
static |
Return an autoPtr to the selected interpolation type.
Definition at line 51 of file topOInterpolationFunction.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, and mesh.
|
pure virtual |
Interpolate argument to result.
Implemented in tanhInterpolation, BorrvallPeterssonInterpolation, expInterpolation, invBP, SIMPInterpolation, sigmoidalHeaviside, sinhInterpolation, smoothHeaviside, and linearInterpolation.
Referenced by topODesignVariables::interpolate(), topODesignVariables::nullifyInSolid(), topODesignVariables::penalty(), and topOVariablesBase::sourceTerm().
|
pure virtual |
Return of function with respect to the argument field.
Implemented in tanhInterpolation, BorrvallPeterssonInterpolation, expInterpolation, invBP, SIMPInterpolation, sigmoidalHeaviside, sinhInterpolation, smoothHeaviside, and linearInterpolation.
Referenced by topODesignVariables::interpolationSensitivities(), topODesignVariables::nullifyInSolidSensitivities(), topODesignVariables::penaltySensitivities(), and topOVariablesBase::sourceTermSensitivities().
|
virtual |
Set the parameter determining length scale.
Warning if the selected interpolation function has no such param
Reimplemented in tanhInterpolation.
Definition at line 80 of file topOInterpolationFunction.C.
References Foam::endl(), and WarningInFunction.
|
protected |
Definition at line 57 of file topOInterpolationFunction.H.
Referenced by sigmoidalHeaviside::computeNearBandWidth(), smoothHeaviside::derivative(), sinhInterpolation::derivative(), sigmoidalHeaviside::derivative(), SIMPInterpolation::derivative(), invBP::derivative(), and BorrvallPeterssonInterpolation::derivative().
|
protected |
Definition at line 59 of file topOInterpolationFunction.H.
Referenced by sigmoidalHeaviside::computeNearBandWidth().