35 const bool foundOmega =
dict.found(
"omega");
36 const bool foundRpm =
dict.found(
"rpm");
38 if (foundOmega && foundRpm)
41 <<
"Rotational speeds rpm and omega both defined in dictionary "
45 if (!foundOmega && !foundRpm)
48 <<
"Neither rotational speed rpm or omega defined in dictionary "
55 :
dict.lookup<scalar>(
"rpm",
units()[
"rpm"]);
A list of keyword definitions, which are a keyword followed by any number of values (e....
const scalar & value() const
Return const reference to value.
omega(const dictionary &dict)
Construct from dictionary.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimless
const HashTable< unitConversion > & units()
Get the table of unit conversions.
const dimensionSet dimTime
const unitConversion unitRadians