Convenience class to handle the input of time-varying rotational speed. Reads an omega
Function1 entry with default units of [rad/s]. For backwards compatibility this will also alternatively read an rpm
entry with default units of [rpm].
More...
Public Member Functions | |
omega (const Time &time, const dictionary &dict) | |
Construct from dictionary. More... | |
omega (const omega &) | |
Copy constructor. More... | |
autoPtr< omega > | clone () const |
Construct and return a clone. More... | |
scalar | value (const scalar t) const |
Return value for time t. More... | |
scalar | integral (const scalar t1, const scalar t2) const |
Return the integral between times t1 and t2. More... | |
void | write (Ostream &os) const |
Write data to dictionary stream. More... | |
void | operator= (const omega &)=delete |
Disallow default bitwise assignment. More... | |
Convenience class to handle the input of time-varying rotational speed. Reads an omega
Function1 entry with default units of [rad/s]. For backwards compatibility this will also alternatively read an rpm
entry with default units of [rpm].
MRF { cellZone rotor; origin (0 0 0); axis (0 0 1); omega 6.28319; // <-- Basic specification in [rad/s] // omega 60 [rpm]; // <-- Equivalent specification with unit // conversion from [rpm] // rpm 60; // <-- Equivalent backwards compatible // specification for rpm. May be // removed in future. }or for a tabulated ramped rotational speed of a solid body:
mover { type motionSolver; libs ("libfvMotionSolvers.so"); motionSolver solidBody; cellZone innerCylinder; solidBodyMotionFunction rotatingMotion; origin (0 0 0); axis (0 1 0); omega table // <-- Basic specification in [rad/s] ( (0 0) (0.01 628.319) (0.022 628.319) (0.03 418.879) (100 418.879) ); // omega // <-- Equivalent specification with // { // unit conversion from [rpm]. // type table; // Note that the dictionary form // units ([s] [rpm]); // is needed for the units entry. // values // ( // (0 0) // (0.01 6000) // (0.022 6000) // (0.03 4000) // (100 4000) // ); // } // rpm table // <-- Equivalent backwards compatible // ( // specification for rpm. May be // (0 0) // removed in future. // (0.01 6000) // (0.022 6000) // (0.03 4000) // (100 4000) // ); }
omega | ( | const Time & | time, |
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 67 of file omega1.C.
Referenced by omega::clone().
Construct and return a clone.
Definition at line 163 of file omega1.H.
References omega::omega().
|
inline |
|
inline |
void write | ( | Ostream & | os | ) | const |
Write data to dictionary stream.
Definition at line 83 of file omega1.C.
References Foam::dimTime, IOstream::name(), Foam::unitRadians, Foam::units(), and Foam::Function1s::writeEntry().
Referenced by Foam::Function1s::writeEntry().
|
delete |
Disallow default bitwise assignment.