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 nor omega defined in dictionary "
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
const dimensionSet dimless
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet & dimTime