MAIA bb96820c
Multiphysics at AIA
|
Class that represents LPT cell collector. More...
#include <lptcellcollector.h>
Public Types | |
using | BitsetType = maia::lpt::cell::BitsetType |
template<class T > | |
using | Invalid = typename maia::lpt::collector::Invalid< T > |
Public Member Functions | |
constexpr | LptCells ()=default |
Default c'tor does nothing. More... | |
BitsetType::reference | hasProperty (const MInt id, const LptCell p) |
Accessor for properties. More... | |
MBool | hasProperty (const MInt id, const LptCell p) const |
Accessor for properties (const version). More... | |
void | resetProperties (const MInt id) |
Reset all properties. More... | |
BitsetType & | properties (const MInt id) |
Accessor for properties. More... | |
MFloat | volumeFraction (const MInt id) const |
MFloat & | volumeFraction (const MInt id) |
Accessor for volumeFraction. More... | |
MInt | noParticles (const MInt id) const |
MInt & | noParticles (const MInt id) |
Accessor for noParticles. More... | |
MInt | noEllipsoids (const MInt id) const |
MInt & | noEllipsoids (const MInt id) |
Accessor for noEllipsoids. More... | |
MInt | bndryCellId (const MInt id) const |
MInt & | bndryCellId (const MInt id) |
Accessor for bndryCellId. More... | |
MFloat | fluidVariable (const MInt id, const MInt var) const |
MFloat & | fluidVariable (const MInt id, const MInt var) |
Accessor for fluidVariables. More... | |
MFloat | fluidSpecies (const MInt id) const |
MFloat & | fluidSpecies (const MInt id) |
Accessor for fluidVariables. More... | |
MFloat & | massFlux (const MInt id) |
Accessor for massFlux. More... | |
MFloat | massFlux (const MInt id) const |
MFloat & | heatFlux (const MInt id) |
Accessor for heatFlux. More... | |
MFloat | heatFlux (const MInt id) const |
MFloat & | momentumFlux (const MInt id, const MInt dim) |
Accessor for momentumFlux. More... | |
MFloat | momentumFlux (const MInt id, const MInt dim) const |
MFloat & | workFlux (const MInt id) |
Accessor for workFlux. More... | |
MFloat | workFlux (const MInt id) const |
MFloat & | velocitySlope (const MInt id, const MInt varId, const MInt dim) |
MFloat | velocitySlope (const MInt id, const MInt varId, const MInt dim) const |
void | setLptCollectorNoSpecies (const MInt noSpecies) |
void | setLptCollectorCoupling (const MBool mass, const MBool momentum, const MBool heat) |
Set the lpt-collector type. More... | |
void | setLptCollectorSlopes () |
Public Member Functions inherited from maia::container::Container< LptCells< 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... | |
LptCells< nDim > & | derived () |
const LptCells< 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< LptCells< nDim >, Invalid > |
using | self = LptCells< nDim > |
template<class T > | |
using | Storage = typename Base::template Storage< T > |
Private Member Functions | |
void | reset () |
Reset tree, 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... | |
constexpr MBool | hasMassCoupling () const |
constexpr MBool | hasMomentumCoupling () const |
constexpr MBool | hasHeatCoupling () const |
constexpr MInt | noVars () const |
constexpr MInt | noSpecies () const |
constexpr MBool | hasSlopes () const |
Private Attributes | |
MBool | m_massCoupling = false |
MBool | m_momentumCoupling = false |
MBool | m_heatCoupling = false |
MInt | m_noSpecies = 0 |
MBool | m_storeSlopes = false |
Storage< BitsetType > | m_properties |
Storage< MInt > | m_noParticles {} |
Storage< MInt > | m_noEllipsoids {} |
Storage< MFloat > | m_volumeFraction {} |
Storage< MInt > | m_bndryCellId {} |
Storage< MFloat > | m_variables {} |
Storage< MFloat > | m_species {} |
Storage< MFloat > | m_massFlux {} |
Storage< MFloat > | m_heatFlux {} |
Storage< MFloat > | m_momentumFlux {} |
Storage< MFloat > | m_workFlux {} |
Storage< MFloat > | m_velocitySlopes {} |
Static Private Attributes | |
static constexpr MInt | m_noVariables = nDim + 3 |
Friends | |
class | maia::container::Container< LptCells< nDim >, Invalid > |
Additional Inherited Members | |
Protected Types inherited from maia::container::Container< LptCells< nDim >, Invalid > | |
using | Storage = std::vector< T > |
Protected Member Functions inherited from maia::container::Container< LptCells< 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 109 of file lptcellcollector.h.
|
private |
Definition at line 114 of file lptcellcollector.h.
using maia::lpt::collector::LptCells< nDim >::BitsetType = maia::lpt::cell::BitsetType |
Definition at line 121 of file lptcellcollector.h.
using maia::lpt::collector::LptCells< nDim >::Invalid = typename maia::lpt::collector::Invalid<T> |
Definition at line 125 of file lptcellcollector.h.
|
private |
Definition at line 116 of file lptcellcollector.h.
|
private |
Definition at line 118 of file lptcellcollector.h.
|
constexprdefault |
MInt & maia::lpt::collector::LptCells< nDim >::bndryCellId | ( | const MInt | id | ) |
Definition at line 320 of file lptcellcollector.h.
MInt maia::lpt::collector::LptCells< nDim >::bndryCellId | ( | const MInt | id | ) | const |
Definition at line 325 of file lptcellcollector.h.
MFloat & maia::lpt::collector::LptCells< nDim >::fluidSpecies | ( | const MInt | id | ) |
Definition at line 344 of file lptcellcollector.h.
MFloat maia::lpt::collector::LptCells< nDim >::fluidSpecies | ( | const MInt | id | ) | const |
Definition at line 349 of file lptcellcollector.h.
MFloat & maia::lpt::collector::LptCells< nDim >::fluidVariable | ( | const MInt | id, |
const MInt | var | ||
) |
Definition at line 332 of file lptcellcollector.h.
MFloat maia::lpt::collector::LptCells< nDim >::fluidVariable | ( | const MInt | id, |
const MInt | var | ||
) | const |
Definition at line 337 of file lptcellcollector.h.
|
inlineconstexprprivate |
Definition at line 197 of file lptcellcollector.h.
|
inlineconstexprprivate |
Definition at line 195 of file lptcellcollector.h.
|
inlineconstexprprivate |
Definition at line 196 of file lptcellcollector.h.
LptCells< nDim >::BitsetType::reference maia::lpt::collector::LptCells< nDim >::hasProperty | ( | const MInt | id, |
const LptCell | p | ||
) |
Definition at line 258 of file lptcellcollector.h.
MBool maia::lpt::collector::LptCells< nDim >::hasProperty | ( | const MInt | id, |
const LptCell | p | ||
) | const |
Definition at line 265 of file lptcellcollector.h.
|
inlineconstexprprivate |
Definition at line 200 of file lptcellcollector.h.
MFloat & maia::lpt::collector::LptCells< nDim >::heatFlux | ( | const MInt | id | ) |
Definition at line 392 of file lptcellcollector.h.
MFloat maia::lpt::collector::LptCells< nDim >::heatFlux | ( | const MInt | id | ) | const |
Definition at line 397 of file lptcellcollector.h.
|
private |
Definition at line 419 of file lptcellcollector.h.
MFloat & maia::lpt::collector::LptCells< nDim >::massFlux | ( | const MInt | id | ) |
Definition at line 356 of file lptcellcollector.h.
MFloat maia::lpt::collector::LptCells< nDim >::massFlux | ( | const MInt | id | ) | const |
Definition at line 361 of file lptcellcollector.h.
MFloat & maia::lpt::collector::LptCells< nDim >::momentumFlux | ( | const MInt | id, |
const MInt | dim | ||
) |
Definition at line 367 of file lptcellcollector.h.
MFloat maia::lpt::collector::LptCells< nDim >::momentumFlux | ( | const MInt | id, |
const MInt | dim | ||
) | const |
Definition at line 373 of file lptcellcollector.h.
MInt & maia::lpt::collector::LptCells< nDim >::noEllipsoids | ( | const MInt | id | ) |
Definition at line 308 of file lptcellcollector.h.
MInt maia::lpt::collector::LptCells< nDim >::noEllipsoids | ( | const MInt | id | ) | const |
Definition at line 313 of file lptcellcollector.h.
MInt & maia::lpt::collector::LptCells< nDim >::noParticles | ( | const MInt | id | ) |
Definition at line 296 of file lptcellcollector.h.
MInt maia::lpt::collector::LptCells< nDim >::noParticles | ( | const MInt | id | ) | const |
Definition at line 301 of file lptcellcollector.h.
|
inlineconstexprprivate |
Definition at line 199 of file lptcellcollector.h.
|
inlineconstexprprivate |
Definition at line 198 of file lptcellcollector.h.
BitsetType & maia::lpt::collector::LptCells< nDim >::properties | ( | const MInt | id | ) |
Definition at line 278 of file lptcellcollector.h.
|
private |
Definition at line 445 of file lptcellcollector.h.
|
private |
Definition at line 230 of file lptcellcollector.h.
void maia::lpt::collector::LptCells< nDim >::resetProperties | ( | const MInt | id | ) |
Definition at line 272 of file lptcellcollector.h.
void maia::lpt::collector::LptCells< nDim >::setLptCollectorCoupling | ( | const MBool | mass, |
const MBool | momentum, | ||
const MBool | heat | ||
) |
Definition at line 223 of file lptcellcollector.h.
|
inline |
Definition at line 175 of file lptcellcollector.h.
|
inline |
Definition at line 179 of file lptcellcollector.h.
MFloat & maia::lpt::collector::LptCells< nDim >::velocitySlope | ( | const MInt | id, |
const MInt | varId, | ||
const MInt | dim | ||
) |
Definition at line 403 of file lptcellcollector.h.
MFloat maia::lpt::collector::LptCells< nDim >::velocitySlope | ( | const MInt | id, |
const MInt | varId, | ||
const MInt | dim | ||
) | const |
Definition at line 410 of file lptcellcollector.h.
MFloat & maia::lpt::collector::LptCells< nDim >::volumeFraction | ( | const MInt | id | ) |
Definition at line 285 of file lptcellcollector.h.
MFloat maia::lpt::collector::LptCells< nDim >::volumeFraction | ( | const MInt | id | ) | const |
Definition at line 290 of file lptcellcollector.h.
MFloat & maia::lpt::collector::LptCells< nDim >::workFlux | ( | const MInt | id | ) |
Definition at line 380 of file lptcellcollector.h.
MFloat maia::lpt::collector::LptCells< nDim >::workFlux | ( | const MInt | id | ) | const |
Definition at line 385 of file lptcellcollector.h.
|
friend |
Definition at line 103 of file lptcellcollector.h.
|
private |
Definition at line 207 of file lptcellcollector.h.
|
private |
Definition at line 190 of file lptcellcollector.h.
|
private |
Definition at line 214 of file lptcellcollector.h.
|
private |
Definition at line 188 of file lptcellcollector.h.
|
private |
Definition at line 213 of file lptcellcollector.h.
|
private |
Definition at line 189 of file lptcellcollector.h.
|
private |
Definition at line 215 of file lptcellcollector.h.
|
private |
Definition at line 205 of file lptcellcollector.h.
|
private |
Definition at line 204 of file lptcellcollector.h.
|
private |
Definition at line 192 of file lptcellcollector.h.
|
staticconstexprprivate |
Definition at line 191 of file lptcellcollector.h.
|
private |
Definition at line 202 of file lptcellcollector.h.
|
private |
Definition at line 211 of file lptcellcollector.h.
|
private |
Definition at line 193 of file lptcellcollector.h.
|
private |
Definition at line 209 of file lptcellcollector.h.
|
private |
Definition at line 218 of file lptcellcollector.h.
|
private |
Definition at line 206 of file lptcellcollector.h.
|
private |
Definition at line 216 of file lptcellcollector.h.