#include <topOInterpolationFunction.H>


Public Member Functions | |
| 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 | interpolate (const scalarField &arg, scalarField &res) const =0 |
| Interpolate argument to result. | |
| virtual tmp< scalarField > | derivative (const scalarField &arg) const =0 |
| Return of function with respect to the argument field. | |
| virtual void | setLengthScaleParam (const scalar lengthScale) |
| Set the parameter determining length scale. | |
Static Public Member Functions | |
| static autoPtr< topOInterpolationFunction > | New (const fvMesh &mesh, const dictionary &dict) |
| Return an autoPtr to the selected interpolation type. | |
Protected Attributes | |
| const fvMesh & | mesh_ |
| dictionary | dict_ |
Definition at line 50 of file topOInterpolationFunction.H.
| topOInterpolationFunction | ( | const fvMesh & | mesh, |
| const dictionary & | dict ) |
|
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 50 of file topOInterpolationFunction.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, and mesh.
Referenced by BorrvallPeterssonInterpolation::BorrvallPeterssonInterpolation(), expInterpolation::expInterpolation(), invBP::invBP(), SIMPInterpolation::SIMPInterpolation(), sinhInterpolation::sinhInterpolation(), smoothHeaviside::smoothHeaviside(), and tanhInterpolation::tanhInterpolation().


|
pure virtual |
Interpolate argument to result.
Implemented in BorrvallPeterssonInterpolation, expInterpolation, invBP, linearInterpolation, sigmoidalHeaviside, SIMPInterpolation, sinhInterpolation, smoothHeaviside, and tanhInterpolation.
Referenced by topODesignVariables::interpolate(), topODesignVariables::nullifyInSolid(), topODesignVariables::penalty(), and topOVariablesBase::sourceTerm().

|
pure virtual |
Return of function with respect to the argument field.
Implemented in BorrvallPeterssonInterpolation, expInterpolation, invBP, linearInterpolation, sigmoidalHeaviside, SIMPInterpolation, sinhInterpolation, smoothHeaviside, and tanhInterpolation.
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 79 of file topOInterpolationFunction.C.
References Foam::endl(), Foam::type(), and WarningInFunction.

|
protected |
Definition at line 57 of file topOInterpolationFunction.H.
Referenced by sigmoidalHeaviside::computeNearBandWidth(), BorrvallPeterssonInterpolation::derivative(), expInterpolation::derivative(), invBP::derivative(), sigmoidalHeaviside::derivative(), SIMPInterpolation::derivative(), sinhInterpolation::derivative(), smoothHeaviside::derivative(), tanhInterpolation::derivative(), BorrvallPeterssonInterpolation::interpolate(), expInterpolation::interpolate(), invBP::interpolate(), sigmoidalHeaviside::interpolate(), SIMPInterpolation::interpolate(), sinhInterpolation::interpolate(), smoothHeaviside::interpolate(), tanhInterpolation::interpolate(), and topOInterpolationFunction().
|
protected |
Definition at line 59 of file topOInterpolationFunction.H.
Referenced by sigmoidalHeaviside::computeNearBandWidth(), and topOInterpolationFunction().