An axis which rotates around itself at specified speed. More...
Private Attributes | |
real | omega_ = 0 |
rotation speed More... | |
bool | rotating_ = false |
is rotating More... | |
Additional Inherited Members | |
![]() | |
real | startTime_ = 0 |
real | endTime_ = largeValue |
real | time_ =0 |
bool | isInInterval_ = true |
![]() | |
realx3 | p1_ |
realx3 | v21_ |
An axis which rotates around itself at specified speed.
This defines an axis with two end points that rotates around itself at specified speed (rad/s).
// This creates an axis of rotation around x-axis, rotation starts at t = 1 s // and ends at t = 5 s. { p1 (0 0 0); p2 (1 0 0); omega 1.57; startTime 1; endTime 5; }
Parameter | Type | Description | Optional [default value] |
---|---|---|---|
p1 | realx3 | begin point of axis | No |
p2 | realx3 | end point of axis | No |
omega | real | rotation speed (rad/s) | No |
startTime | real | start time of rotation (s) | Yes [0] |
endTime | real | end time of rotation (s) | Yes [infinity] |
Definition at line 61 of file rotatingAxis.hpp.
|
default |
Empty constructor.
|
explicit |
Construct from dictionary.
Definition at line 27 of file rotatingAxis.cpp.
References pFlow::endl(), fatalErrorInFunction, fatalExit, and dictionary::globalName().
FUNCTION_HD rotatingAxis | ( | const realx3 & | p1, |
const realx3 & | p2, | ||
real | omega = 0.0 |
||
) |
Construct from components.
Definition at line 41 of file rotatingAxis.cpp.
|
default |
Copy constructor.
|
default |
|
default |
destructor
TypeInfoNV | ( | "rotatingAxis" | ) |
|
default |
Copy asssignment.
|
default |
Copy asssignment.
FUNCTION_HD pFlow::real setOmega | ( | real | omega | ) |
Set omega.
Definition at line 57 of file rotatingAxis.cpp.
References pFlow::equal(), rotatingAxis::omega(), rotatingAxis::omega_, and rotatingAxis::rotating_.
|
inline |
Return omega.
Definition at line 115 of file rotatingAxis.hpp.
References rotatingAxis::omega_.
Referenced by pFlow::rotate(), and rotatingAxis::setOmega().
|
inline |
Is rotating.
Definition at line 122 of file rotatingAxis.hpp.
References rotatingAxis::rotating_.
Referenced by multiRotatingAxis::transferPoint().
INLINE_FUNCTION_HD pFlow::realx3 linVelocityPoint | ( | const realx3 & | p | ) | const |
Linear tangential velocity at point p.
Definition at line 23 of file rotatingAxisI.hpp.
References cross(), timeInterval::inTimeRange(), rotatingAxis::omega_, line::projectPoint(), and line::unitVector().
INLINE_FUNCTION_HD pFlow::realx3 transferPoint | ( | const realx3 | p, |
real | dt | ||
) | const |
Definition at line 33 of file rotatingAxisI.hpp.
References pFlow::rotate().
FUNCTION_H bool read | ( | const dictionary & | dict | ) |
Read from dictionary.
Definition at line 67 of file rotatingAxis.cpp.
References dictionary::getValOrSet(), timeInterval::read(), and line::read().
Referenced by pFlow::operator>>().
FUNCTION_H bool write | ( | dictionary & | dict | ) | const |
Write to dictionary.
Definition at line 83 of file rotatingAxis.cpp.
References dictionary::add(), pFlow::endl(), fatalErrorInFunction, dictionary::globalName(), timeInterval::write(), and line::write().
Referenced by pFlow::operator<<().
FUNCTION_H bool read | ( | iIstream & | is | ) |
Read from input stream is.
Definition at line 101 of file rotatingAxis.cpp.
References IOstream::check(), pFlow::endl(), FUNCTION_NAME, ioErrorInFile, IOstream::lineNumber(), IOstream::name(), and iIstream::readEndStatement().
FUNCTION_H bool write | ( | iOstream & | os | ) | const |
Write to output stream os.
Definition at line 132 of file rotatingAxis.cpp.
References IOstream::check(), FUNCTION_NAME, and iOstream::writeWordEntry().
|
private |
rotation speed
Definition at line 69 of file rotatingAxis.hpp.
Referenced by rotatingAxis::linVelocityPoint(), rotatingAxis::omega(), and rotatingAxis::setOmega().
|
private |
is rotating
Definition at line 72 of file rotatingAxis.hpp.
Referenced by rotatingAxis::isRotating(), and rotatingAxis::setOmega().