Go to the documentation of this file.
33 const word& entryName,
47 if (firstToken == token::BEGIN_SQR)
49 is >> this->dimensions_;
57 <<
"PolynomialEntry coefficients for entry " << this->name_
65 canIntegrate_ =
false;
75 <<
"PolynomialEntry " << this->name_ <<
" cannot be integrated"
85 const word& entryName,
97 <<
"PolynomialEntry coefficients for entry " << this->name_
103 if (
mag(
coeffs_[i].second() + 1) < ROOTVSMALL)
115 <<
"PolynomialEntry " << this->name_ <<
" cannot be integrated"
126 coeffs_(poly.coeffs_),
127 canIntegrate_(poly.canIntegrate_),
128 dimensions_(poly.dimensions_)
146 Type value = coeffs_[i].first();
147 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++)
PolynomialEntry container data entry for scalars. Items are stored in a list of Tuple2's....
label & setComponent(label &l, const direction)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Scalar cmptPow(const Scalar s1, const Scalar s2)
A class for handling words, derived from string.
bool canIntegrate_
Flag to indicate whether poly can be integrated.
PolynomialEntry(const word &entryName, const dictionary &dict)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
#define forAll(list, i)
Loop across all elements in list.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (e.g. CA deg) to real-time (s).
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds items read from Istream.
dimensioned< scalar > mag(const dimensioned< Type > &)
Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
dimensioned< Type > dimIntegrate(const scalar x1, const scalar x2) const
Integrate between two values and return dimensioned type.
dimensioned< Type > dimValue(const scalar) const
Return dimensioned constant value.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
void putBack(const token &)
Put back token.
virtual ~PolynomialEntry()
Destructor.
A 2-tuple for storing two objects of different types.
virtual void convertTimeBase(const Time &t)
Convert time.
Type value(const scalar x) const
Return PolynomialEntry value.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
#define WarningInFunction
Report a warning using Foam::Warning.
List< Tuple2< Type, Type > > coeffs_
PolynomialEntry coefficients - list of prefactor, exponent.