Vibrating model for a wall. More...
Private Member Functions | |
INLINE_FUNCTION_HD void | calculateVelocity () |
Private Attributes | |
realx3 | angularFreq_ {0,0,0} |
realx3 | phaseAngle_ {0,0,0} |
realx3 | amplitude_ {0,0,0} |
realx3 | velocity_ {0,0,0} |
realx3 | velocity0_ {0,0,0} |
Additional Inherited Members | |
![]() | |
real | startTime_ = 0 |
real | endTime_ = largeValue |
real | time_ =0 |
bool | isInInterval_ = true |
Vibrating model for a wall.
Creates a sinoidal virating model for a wall. The viration is defined by frequency, amplitude and phase angle.
\[ \vec{v}(t) = \vec{A} sin(\vec{\omega}(t-startTime)+\vec{\phi}) \]
// This creates sinoidal vibration on the wall in x-direction. The viration // starts at t = 0 s and ends at t = 10 s. { angularFreq (10 0 0); amplitude ( 1 0 0); phaseAngle ( 0 0 0); startTime 0; endTime 10; }
Parameter | Type | Description | Optional [default value] |
---|---|---|---|
angularFreq | realx3 | angular frequency of vibration (rad/s) | No |
amplitude | realx3 | rotation speed (m/s) | No |
phaseAngle | realx3 | phase angle (rad) | Yes [(0 0 0)] |
startTime | real | start time of rotation (s) | Yes [0] |
endTime | real | end time of rotation (s) | Yes [infinity] |
Definition at line 65 of file vibrating.hpp.
|
default |
|
explicit |
Definition at line 26 of file vibrating.cpp.
References pFlow::endl(), fatalErrorInFunction, fatalExit, dictionary::globalName(), and vibrating::read().
|
default |
|
inlineprivate |
Definition at line 84 of file vibrating.hpp.
References vibrating::amplitude_, vibrating::angularFreq_, timeInterval::inTimeRange(), vibrating::phaseAngle_, pFlow::sin(), timeInterval::startTime(), timeInterval::time(), and vibrating::velocity_.
Referenced by vibrating::setTime().
TypeInfoNV | ( | "vibrating" | ) |
|
inline |
Definition at line 112 of file vibrating.hpp.
References vibrating::calculateVelocity(), pFlow::equal(), timeInterval::setTime(), timeInterval::time(), vibrating::velocity0_, and vibrating::velocity_.
|
inline |
Definition at line 120 of file vibrating.hpp.
References vibrating::velocity_.
|
inline |
Definition at line 126 of file vibrating.hpp.
References timeInterval::inTimeRange(), vibrating::velocity0_, and vibrating::velocity_.
FUNCTION_H bool read | ( | const dictionary & | dict | ) |
Definition at line 40 of file vibrating.cpp.
References dictionary::getVal(), dictionary::getValOrSet(), and timeInterval::read().
Referenced by pFlow::operator>>(), and vibrating::vibrating().
FUNCTION_H bool write | ( | dictionary & | dict | ) | const |
Definition at line 55 of file vibrating.cpp.
References dictionary::add(), pFlow::endl(), fatalErrorInFunction, dictionary::globalName(), and timeInterval::write().
Referenced by pFlow::operator<<().
FUNCTION_H bool read | ( | iIstream & | is | ) |
Definition at line 85 of file vibrating.cpp.
References notImplementedFunction.
FUNCTION_H bool write | ( | iOstream & | os | ) | const |
Definition at line 94 of file vibrating.cpp.
References IOstream::check(), FUNCTION_NAME, timeInterval::write(), and iOstream::writeWordEntry().
|
private |
Definition at line 73 of file vibrating.hpp.
Referenced by vibrating::calculateVelocity().
|
private |
Definition at line 75 of file vibrating.hpp.
Referenced by vibrating::calculateVelocity().
|
private |
Definition at line 77 of file vibrating.hpp.
Referenced by vibrating::calculateVelocity().
|
private |
Definition at line 79 of file vibrating.hpp.
Referenced by vibrating::calculateVelocity(), vibrating::linVelocityPoint(), vibrating::setTime(), and vibrating::transferPoint().
|
private |
Definition at line 81 of file vibrating.hpp.
Referenced by vibrating::setTime(), and vibrating::transferPoint().