Vibrating model for a wall. More...


Protected Member Functions | |
| INLINE_FUNCTION_HD void | calculateVelocity () |
Protected 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} |
Protected Attributes inherited from timeInterval | |
| 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.
|
inline |
Definition at line 98 of file vibrating.hpp.
| FUNCTION_H vibrating | ( | const dictionary & | dict | ) |
Definition at line 26 of file vibrating.cpp.
References pFlow::endl(), fatalErrorInFunction, fatalExit, dictionary::globalName(), and vibrating::read().

|
default |
|
inlineprotected |
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().


|
inline |
Definition at line 110 of file vibrating.hpp.
References vibrating::calculateVelocity(), pFlow::equal(), timeInterval::setTime(), timeInterval::time(), vibrating::velocity0_, and vibrating::velocity_.

|
inline |
Definition at line 118 of file vibrating.hpp.
References vibrating::velocity_.
|
inline |
Definition at line 124 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().

|
protected |
Definition at line 73 of file vibrating.hpp.
Referenced by vibrating::calculateVelocity().
|
protected |
Definition at line 75 of file vibrating.hpp.
Referenced by vibrating::calculateVelocity().
|
protected |
Definition at line 77 of file vibrating.hpp.
Referenced by vibrating::calculateVelocity().
|
protected |
Definition at line 79 of file vibrating.hpp.
Referenced by vibrating::calculateVelocity(), vibrating::linTangentialVelocityPoint(), vibrating::setTime(), and vibrating::transferPoint().
|
protected |
Definition at line 81 of file vibrating.hpp.
Referenced by vibrating::setTime(), and vibrating::transferPoint().