48Foam::tanhInterpolation::tanhInterpolation
56 eta_(
dict.getOrDefault<scalar>(
"eta", scalar(0.5)))
69 const scalar t(time == 0 ? 1. : time);
70 const scalar
b(b_->value(t));
73 Info<<
type() <<
"::interpolate:: t, b value " << t <<
" " <<
b
74 <<
" eta " << eta_ <<
endl;
90 const scalar t(mesh_.time().timeOutputValue());
91 const scalar
b(b_->value(t));
93 <<
type() <<
"::interpolate:: t, b value " << t <<
" " <<
b
94 <<
" eta " << eta_ <<
endl;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
scalar timeOutputValue() const
Return the current user-time value. (ie, after applying any timeToUserTime() conversion).
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
Computes the Brickmann penalization function for topology optimisation, relying on tanh functions and...
virtual void interpolate(const scalarField &arg, scalarField &res) const
Interpolate argument and write to result.
virtual tmp< scalarField > derivative(const scalarField &arg) const
Return of function with respect to the argument field.
virtual void setLengthScaleParam(const scalar lengthScale)
Set the parameter determining length scale.
A class for managing temporary objects.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
static autoPtr< topOInterpolationFunction > New(const fvMesh &mesh, const dictionary &dict)
Return an autoPtr to the selected interpolation type.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define DebugInfo
Report an information message using Foam::Info.
Namespace for handling debugging switches.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar tanh(const dimensionedScalar &ds)
messageStream Info
Information stream (stdout output on master, null elsewhere).
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0).