34 const dictionary&
dict
37 const bool foundOmega =
dict.found(
"omega");
38 const bool foundRpm =
dict.found(
"rpm");
40 if (foundOmega && foundRpm)
43 <<
"Rotational speeds rpm and omega both defined in dictionary "
47 if (!foundOmega && !foundRpm)
50 <<
"Neither rotational speed rpm or omega defined in dictionary "
57 foundOmega ?
"omega" :
"rpm",
69 tUnits_(time.userUnits()),
70 omega_(init(time,
dict))
77 omega_(o.omega_, false)
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
Convenience class to handle the input of time-varying rotational speed. Reads an omega Function1 entr...
omega(const Time &time, const dictionary &dict)
Construct from dictionary.
void write(Ostream &os) const
Write data to dictionary stream.
virtual const fileName & name() const
Return the name of the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
void writeEntry(Ostream &os, const omega &a)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const HashTable< unitConversion > & units()
Get the table of unit conversions.
const dimensionSet dimTime
const unitConversion unitRadians