50 smoothHeaviside::smoothHeaviside
70 const scalar t(timeValue == 0 ? 1. : timeValue);
71 const scalar
b(
b_->value(t));
72 res = 0.5*(scalar(1) +
tanh(
b*arg));
81 const scalar t(timeValue == 0 ? 1. : timeValue);
82 const scalar
b(
b_->value(t));
84 deriv = 0.5*
b*(scalar(1) -
sqr(
tanh(
b*arg)));
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
Abstract base class for interpolation functions used in topology optimisation.
dimensionedScalar tanh(const dimensionedScalar &ds)
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...
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
autoPtr< Function1< scalar > > b_
A smooth Heaviside function to project the signed distance field in level set topology optimization...
const Time & time() const
Return the top-level database.
Macros for easy insertion into run-time selection tables.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
virtual tmp< scalarField > derivative(const scalarField &arg) const
Return of function with respect to the argument field.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
virtual void interpolate(const scalarField &arg, scalarField &res) const
Interpolate argument to result.
defineTypeNameAndDebug(combustionModel, 0)
scalar timeOutputValue() const
Return the current user-time value. (ie, after applying any timeToUserTime() conversion) ...
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
static constexpr const zero Zero
Global zero (0)