37 : autoPtr<Function1<scalar>>(new Constant<scalar>(
"xScale", 1));
41 isA<Constant<scalar>>(xScale_())
42 &&
isA<Constant<scalar>>(scale_());
45 isA<Constant<scalar>>(xScale_())
46 &&
isA<Constant<Type>>(value_());
62 scale_(scale.
clone().ptr()),
63 xScale_(xScale.
clone().ptr()),
64 value_(value.
clone().ptr()),
68 && isA<Constant<scalar>>(scale_())
95 scale_(se.scale_, false),
96 xScale_(se.xScale_, false),
97 value_(se.value_, false),
98 integrableScale_(se.integrableScale_),
99 integrableValue_(se.integrableValue_)
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
virtual ~Scale()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Function1 which scales a given 'value' function by a 'scale' scalar function and scales the 'x' argum...
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
virtual tmp< Function1< Type > > clone() const =0
Construct and return a clone.
Templated function that returns a constant value.
Scale(const word &name, const Function1< scalar > &scale, const Function1< scalar > &xScale, const Function1< Type > &value)
Construct from name and functions.
virtual void write(Ostream &os) const
Write data to dictionary stream.