MAIA bb96820c
Multiphysics at AIA
|
Class that represents DG element collector. More...
#include <rigidbodiescollector.h>
Public Types | |
template<class T > | |
using | Invalid = typename maia::rb::collector::Invalid< T > |
Public Member Functions | |
constexpr | RigidBodyCollector ()=default |
Default c'tor does nothing. More... | |
MFloat & | bodyCenter (const MInt id, const MInt dim) |
Accessor for the current body center. More... | |
MFloat | bodyCenter (const MInt id, const MInt dim) const |
Accessor for the current body center (const) More... | |
MFloat & | bodyVelocity (const MInt id, const MInt dim) |
Accessor for the current body velocity. More... | |
MFloat | bodyVelocity (const MInt id, const MInt dim) const |
Accessor for the current body velocity (const) More... | |
MFloat & | bodyAcceleration (const MInt id, const MInt dim) |
Accessor for the current body acceleration. More... | |
MFloat | bodyAcceleration (const MInt id, const MInt dim) const |
Accessor for the current body acceleration (const) More... | |
MFloat & | bodyTemperature (const MInt id) |
Accessor for the body temperature. More... | |
MFloat | bodyTemperature (const MInt id) const |
Accessor for the body temperature (const) More... | |
MFloat & | bodyCenterOld (const MInt id, const MInt dim) |
Accessor for the old body center. More... | |
MFloat | bodyCenterOld (const MInt id, const MInt dim) const |
Accessor for the old body center (const) More... | |
MFloat & | bodyVelocityOld (const MInt id, const MInt dim) |
Accessor for the old body velocity. More... | |
MFloat | bodyVelocityOld (const MInt id, const MInt dim) const |
Accessor for the old body velocity (const) More... | |
MFloat & | bodyAccelerationOld (const MInt id, const MInt dim) |
Accessor for the old body acceleration. More... | |
MFloat | bodyAccelerationOld (const MInt id, const MInt dim) const |
Accessor for the old body acceleration (const) More... | |
MFloat & | bodyTemperatureOld (const MInt id) |
Accessor for the old body temperature. More... | |
MFloat | bodyTemperatureOld (const MInt id) const |
Accessor for the old body temperature (const) More... | |
MFloat & | bodyQuaternionT1B2 (const MInt id, const MInt dim) |
Accessor for the body bodyQuaternion T1B2. More... | |
MFloat | bodyQuaternionT1B2 (const MInt id, const MInt dim) const |
Accessor for the body bodyQuaternion T1B2 (const) More... | |
MFloat & | bodyQuaternionT1 (const MInt id, const MInt dim) |
Accessor for the body bodyQuaternion T1. More... | |
MFloat | bodyQuaternionT1 (const MInt id, const MInt dim) const |
Accessor for the body bodyQuaternion T1 (const) More... | |
MFloat & | angularVelocityT1 (const MInt id, const MInt dim) |
Accessor for the angular velocity T1. More... | |
MFloat | angularVelocityT1 (const MInt id, const MInt dim) const |
Accessor for the angular velocity T1 (const) More... | |
MFloat & | angularVelocityBodyT1 (const MInt id, const MInt dim) |
Accessor for the angular velocity of the body T1. More... | |
MFloat | angularVelocityBodyT1 (const MInt id, const MInt dim) const |
Accessor for the angular velocity of the body T1 (const) More... | |
MFloat & | angularVelocityT1B2 (const MInt id, const MInt dim) |
Accessor for the angular velocity T1B2. More... | |
MFloat | angularVelocityT1B2 (const MInt id, const MInt dim) const |
Accessor for the angular velocity T1B2 (const) More... | |
MFloat & | angularVelocityBodyT1B2 (const MInt id, const MInt dim) |
Accessor for the angular velocity of the body T1B2. More... | |
MFloat | angularVelocityBodyT1B2 (const MInt id, const MInt dim) const |
Accessor for the angular velocity of the body T1B2 (const) More... | |
MFloat & | angularAccelerationT1 (const MInt id, const MInt dim) |
Accessor for the angular acceleration T1. More... | |
MFloat | angularAccelerationT1 (const MInt id, const MInt dim) const |
Accessor for the angular acceleration T1 (const) More... | |
MFloat & | angularAccelerationBody (const MInt id, const MInt dim) |
Accessor for the angular acceleration. More... | |
MFloat | angularAccelerationBody (const MInt id, const MInt dim) const |
Accessor for the angular acceleration (const) More... | |
MFloat & | torqueT1 (const MInt id, const MInt dim) |
Accessor for the torque. More... | |
MFloat | torqueT1 (const MInt id, const MInt dim) const |
Accessor for the torque (const) More... | |
MFloat & | bodyForce (const MInt id, const MInt dim) |
Accessor for the body force. More... | |
MFloat | bodyForce (const MInt id, const MInt dim) const |
Accessor for the body force (const) More... | |
MFloat & | bodyHeatFlux (const MInt id) |
Accessor for the body heat flux. More... | |
MFloat | bodyHeatFlux (const MInt id) const |
Accessor for the body heat flux (const) More... | |
MFloat & | bodyDensityRatio (const MInt id) |
Accessor for the body density ratio. More... | |
MFloat | bodyDensityRatio (const MInt id) const |
Accessor for the body density ratio (const) More... | |
MFloat & | bodyInertia (const MInt id, const MInt dim) |
Accessor for the body inertia. More... | |
MFloat | bodyInertia (const MInt id, const MInt dim) const |
Accessor for the body inertia (const) More... | |
MFloat & | bodyRadius (const MInt id) |
Accessor for the body radius. More... | |
MFloat | bodyRadius (const MInt id) const |
Accessor for the body radius (const) More... | |
MFloat & | bodyRadii (const MInt id, const MInt dim) |
Accessor for the body radii. More... | |
MFloat | bodyRadii (const MInt id, const MInt dim) const |
Accessor for the body radii (const) More... | |
Status & | status (const MInt id) |
Accessor for the body status. More... | |
Status | status (const MInt id) const |
Accessor for the body status (const) More... | |
void | advanceBodies () |
Copy the body data for time t to t-1 to prepare the next timestep. More... | |
Public Member Functions inherited from maia::container::Container< RigidBodyCollector< nDim >, Invalid > | |
constexpr | Container ()=default |
Default c'tor does nothing. More... | |
constexpr MInt | capacity () const |
Return capacity (i.e., maximum number of nodes) More... | |
void | reset (const MInt capacity) |
Reset tree, re-create data structures with given capacity, and set size to zero. More... | |
void | resize (const MInt capacity) |
Resize the container capacity. More... | |
constexpr MInt | size () const |
Return size (i.e., currently used number of nodes) More... | |
void | size (const MInt size_) |
Resize tree WITHOUT CONSIDERING ANY NODE CONSISTENCY! Use at own risk and remove ASAP... More... | |
void | append (const MInt count) |
Append nodes to end of tree. More... | |
void | append () |
void | shrink (const MInt count) |
Remove nodes from end of tree. More... | |
void | shrink () |
void | copy (const T &source, const MInt begin, const MInt end, const MInt to) |
Copy nodes to another location without changing any parent/child/neighbor information. More... | |
void | copy (const T &source, const MInt from, const MInt to) |
void | copy (const MInt begin, const MInt end, const MInt to) |
void | copy (const MInt from, const MInt to) |
void | move (const MInt begin, const MInt end, const MInt to) |
Move nodes to another location and update parent/child/neighbor information accordingly. More... | |
void | move (const MInt from, const MInt to) |
void | swap (const MInt a, const MInt b) |
Swap two nodes and update parent/child/neighbor information accordingly. More... | |
void | insert (const MInt begin, const MInt count) |
void | insert (const MInt id) |
void | erase (const MInt begin, const MInt end) |
Erase nodes in range [begin, end) and update parent/child/neighbor information. More... | |
void | erase (const MInt id) |
void | removeAndShift (const MInt begin, const MInt end) |
void | removeAndShift (const MInt id) |
void | removeAndFill (const MInt begin, const MInt end) |
void | removeAndFill (const MInt id) |
void | clear () |
Clear tree by invalidating all nodes and setting size to zero. More... | |
RigidBodyCollector< nDim > & | derived () |
const RigidBodyCollector< nDim > & | derived () const |
void | rawCopy (const T &source, const MInt begin, const MInt end, const MInt to) |
Copy range of nodes [begin, end) to range starting at 'to'. More... | |
void | rawCopy (const T &source, const MInt from, const MInt to) |
void | deleteConnectivity (const MInt NotUsed(begin), const MInt NotUsed(end)) |
void | moveConnectivity (const MInt NotUsed(begin), const MInt NotUsed(end), const MInt NotUsed(to)) |
void | moveConnectivity (const MInt from, const MInt to) |
constexpr MInt | dummy () const |
Private Types | |
using | Base = maia::container::Container< RigidBodyCollector< nDim >, Invalid > |
template<class T > | |
using | Storage = typename Base::template Storage< T > |
Private Member Functions | |
void | reset () |
Reset, re-create data structures with given capacity, and set size to zero. More... | |
void | invalidate (const MInt begin, const MInt end) |
Erase range of nodes such that they contain no sensible values anymore. More... | |
template<class Functor , class T > | |
void | rawCopyGeneric (Functor &&c, const T &source, const MInt begin, const MInt end, const MInt destination) |
Helper function for rawCopy(). Destination may refer to beginning or end of target range. More... | |
Private Attributes | |
Storage< MFloat > | m_bodyCenter {} |
Storage< MFloat > | m_bodyVelocity {} |
Storage< MFloat > | m_bodyAcceleration {} |
Storage< MFloat > | m_bodyTemperature {} |
Storage< MFloat > | m_bodyCenterOld {} |
Storage< MFloat > | m_bodyVelocityOld {} |
Storage< MFloat > | m_bodyAccelerationOld {} |
Storage< MFloat > | m_bodyTemperatureOld {} |
Storage< MFloat > | m_bodyQuaternionT1B2 {} |
Storage< MFloat > | m_bodyQuaternionT1 {} |
Storage< MFloat > | m_angularVelocityT1 {} |
Storage< MFloat > | m_angularVelocityBodyT1 {} |
Storage< MFloat > | m_angularVelocityT1B2 {} |
Storage< MFloat > | m_angularVelocityBodyT1B2 {} |
Storage< MFloat > | m_angularAccelerationT1 {} |
Storage< MFloat > | m_angularAccelerationBody {} |
Storage< MFloat > | m_torqueT1 {} |
Storage< MFloat > | m_bodyForce {} |
Storage< MFloat > | m_bodyHeatFlux {} |
Storage< MFloat > | m_bodyDensityRatio {} |
Storage< MFloat > | m_bodyInertia {} |
Storage< MFloat > | m_bodyRadius {} |
Storage< MFloat > | m_bodyRadii {} |
Storage< Status > | m_status {} |
Static Private Attributes | |
static constexpr MInt | nRot = (nDim == 3) ? 3 : 1 |
static constexpr MInt | nQuat = (nDim == 3) ? 4 : 0 |
Friends | |
class | maia::container::Container< RigidBodyCollector< nDim >, Invalid > |
Additional Inherited Members | |
Protected Types inherited from maia::container::Container< RigidBodyCollector< nDim >, Invalid > | |
using | Storage = std::vector< T > |
Protected Member Functions inherited from maia::container::Container< RigidBodyCollector< nDim >, Invalid > | |
virtual void | resize () |
void | resetStorage (const MInt n, Storage< T > &c) |
Create new container with given size and replace original one. More... | |
void | resizeStorage (const MInt n, Storage< T > &c) |
Resize container with given size. More... | |
void | fill_invalid (Container_ &c, const MInt begin, const MInt end, const MInt solverSize=1, const T value=Invalid< T >::value()) |
void | copyData (const Container_ &source, Container_ &target, Functor &&f, const MInt begin, const MInt end, const MInt dest, const MInt solverSize=1) |
Copy [begin, end) range with given solver size from source to dest position of target. More... | |
MBool | isValidId (const MInt id) const |
Return whether given id refers to a valid node (auxiliary method). More... | |
Definition at line 125 of file rigidbodiescollector.h.
|
private |
Definition at line 130 of file rigidbodiescollector.h.
using maia::rb::collector::RigidBodyCollector< nDim >::Invalid = typename maia::rb::collector::Invalid<T> |
Definition at line 138 of file rigidbodiescollector.h.
|
private |
Definition at line 133 of file rigidbodiescollector.h.
|
constexprdefault |
void maia::rb::collector::RigidBodyCollector< nDim >::advanceBodies |
Definition at line 264 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::angularAccelerationBody | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 823 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::angularAccelerationBody | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 834 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::angularAccelerationT1 | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 846 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::angularAccelerationT1 | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 857 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::angularVelocityBodyT1 | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 777 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::angularVelocityBodyT1 | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 788 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::angularVelocityBodyT1B2 | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 800 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::angularVelocityBodyT1B2 | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 811 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::angularVelocityT1 | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 731 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::angularVelocityT1 | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 742 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::angularVelocityT1B2 | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 754 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::angularVelocityT1B2 | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 765 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyAcceleration | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 465 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyAcceleration | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 476 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyAccelerationOld | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 488 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyAccelerationOld | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 499 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyCenter | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 373 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyCenter | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 384 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyCenterOld | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 396 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyCenterOld | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 407 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyDensityRatio | ( | const MInt | id | ) |
Definition at line 597 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyDensityRatio | ( | const MInt | id | ) | const |
Definition at line 607 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyForce | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 511 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyForce | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 522 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyHeatFlux | ( | const MInt | id | ) |
Definition at line 576 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyHeatFlux | ( | const MInt | id | ) | const |
Definition at line 586 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyInertia | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 618 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyInertia | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 629 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyQuaternionT1 | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 685 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyQuaternionT1 | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 696 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyQuaternionT1B2 | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 708 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyQuaternionT1B2 | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 719 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyRadii | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 662 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyRadii | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 673 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyRadius | ( | const MInt | id | ) |
Definition at line 641 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyRadius | ( | const MInt | id | ) | const |
Definition at line 651 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyTemperature | ( | const MInt | id | ) |
Definition at line 534 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyTemperature | ( | const MInt | id | ) | const |
Definition at line 544 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyTemperatureOld | ( | const MInt | id | ) |
Definition at line 555 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyTemperatureOld | ( | const MInt | id | ) | const |
Definition at line 565 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyVelocity | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 419 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyVelocity | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 430 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::bodyVelocityOld | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 442 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::bodyVelocityOld | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 453 of file rigidbodiescollector.h.
|
private |
Definition at line 304 of file rigidbodiescollector.h.
|
private |
Definition at line 339 of file rigidbodiescollector.h.
|
private |
Definition at line 275 of file rigidbodiescollector.h.
Status & maia::rb::collector::RigidBodyCollector< nDim >::status | ( | const MInt | id | ) |
Definition at line 892 of file rigidbodiescollector.h.
Status maia::rb::collector::RigidBodyCollector< nDim >::status | ( | const MInt | id | ) | const |
Definition at line 902 of file rigidbodiescollector.h.
MFloat & maia::rb::collector::RigidBodyCollector< nDim >::torqueT1 | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 869 of file rigidbodiescollector.h.
MFloat maia::rb::collector::RigidBodyCollector< nDim >::torqueT1 | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 880 of file rigidbodiescollector.h.
|
friend |
Definition at line 119 of file rigidbodiescollector.h.
|
private |
Definition at line 242 of file rigidbodiescollector.h.
|
private |
Definition at line 241 of file rigidbodiescollector.h.
|
private |
Definition at line 237 of file rigidbodiescollector.h.
|
private |
Definition at line 239 of file rigidbodiescollector.h.
|
private |
Definition at line 236 of file rigidbodiescollector.h.
|
private |
Definition at line 238 of file rigidbodiescollector.h.
|
private |
Definition at line 221 of file rigidbodiescollector.h.
|
private |
Definition at line 228 of file rigidbodiescollector.h.
|
private |
Definition at line 219 of file rigidbodiescollector.h.
|
private |
Definition at line 226 of file rigidbodiescollector.h.
|
private |
Definition at line 249 of file rigidbodiescollector.h.
|
private |
Definition at line 246 of file rigidbodiescollector.h.
|
private |
Definition at line 247 of file rigidbodiescollector.h.
|
private |
Definition at line 250 of file rigidbodiescollector.h.
|
private |
Definition at line 234 of file rigidbodiescollector.h.
|
private |
Definition at line 233 of file rigidbodiescollector.h.
|
private |
Definition at line 253 of file rigidbodiescollector.h.
|
private |
Definition at line 252 of file rigidbodiescollector.h.
|
private |
Definition at line 223 of file rigidbodiescollector.h.
|
private |
Definition at line 230 of file rigidbodiescollector.h.
|
private |
Definition at line 220 of file rigidbodiescollector.h.
|
private |
Definition at line 227 of file rigidbodiescollector.h.
|
private |
Definition at line 255 of file rigidbodiescollector.h.
|
private |
Definition at line 244 of file rigidbodiescollector.h.
|
staticconstexprprivate |
Definition at line 214 of file rigidbodiescollector.h.
|
staticconstexprprivate |
Definition at line 213 of file rigidbodiescollector.h.