MAIA bb96820c
Multiphysics at AIA
|
Class that represents LB cell collector. More...
#include <lbcellcollector.h>
Public Types | |
template<class T > | |
using | Invalid = typename maia::lb::collector::Invalid< T > |
Public Member Functions | |
constexpr | LbCellCollector ()=default |
Default c'tor does nothing. More... | |
MFloat & | nu (const MInt id) |
Accessor for nu. More... | |
MFloat | nu (const MInt id) const |
Accessor for nu (const version). More... | |
MFloat & | nuT (const MInt id) |
MFloat | nuT (const MInt id) const |
MFloat & | oldNu (const MInt id) |
MFloat | oldNu (const MInt id) const |
MFloat & | oldNuT (const MInt id) |
MFloat | oldNuT (const MInt id) const |
MInt & | bndId (const MInt id) |
Accessor for bndId. More... | |
MInt | bndId (const MInt id) const |
Accessor for bndId (const version). More... | |
MInt & | level (const MInt id) |
Accessor for level. More... | |
MInt | level (const MInt id) const |
Accessor for level (const version). More... | |
MFloat & | kappa (const MInt id) |
Accessor for kappa. More... | |
MFloat | kappa (const MInt id) const |
Accessor for kappa (const version). More... | |
MFloat & | diffusivity (const MInt id) |
Accessor for the diffusivity. More... | |
MFloat | diffusivity (const MInt id) const |
Accessor for the diffusivity (const version). More... | |
MFloat & | spongeFactor (const MInt id) |
Accessor for spongeFactor. More... | |
MFloat | spongeFactor (const MInt id) const |
Accessor for spongeFactor (const version). More... | |
MFloat & | variables (const MInt id, const MInt eid) |
MFloat | variables (const MInt id, const MInt eid) const |
MFloat * | variables_ptr () |
MFloat & | oldVariables (const MInt id, const MInt eid) |
MFloat | oldVariables (const MInt id, const MInt eid) const |
MFloat * | oldVariables_ptr () |
MFloat & | distributions (const MInt id, const MInt eid) |
MFloat | distributions (const MInt id, const MInt eid) const |
MFloat & | oldDistributions (const MInt id, const MInt eid) |
MFloat | oldDistributions (const MInt id, const MInt eid) const |
MFloat & | distributionsThermal (const MInt id, const MInt eid) |
MFloat | distributionsThermal (const MInt id, const MInt eid) const |
MFloat & | oldDistributionsThermal (const MInt id, const MInt eid) |
MFloat | oldDistributionsThermal (const MInt id, const MInt eid) const |
MFloat & | distributionsTransport (const MInt id, const MInt eid) |
MFloat | distributionsTransport (const MInt id, const MInt eid) const |
MFloat & | oldDistributionsTransport (const MInt id, const MInt eid) |
MFloat | oldDistributionsTransport (const MInt id, const MInt eid) const |
MFloat & | externalForces (const MInt id, const MInt eid) |
MFloat | externalForces (const MInt id, const MInt eid) const |
MFloat & | previousDistribution (const MInt id, const MInt eid) |
MFloat | previousDistribution (const MInt id, const MInt eid) const |
MFloat & | previousVariable (const MInt id, const MInt eid) |
MFloat | previousVariable (const MInt id, const MInt eid) const |
MFloat & | uOtherPhase (const MInt id, const MInt dir) |
MFloat | uOtherPhase (const MInt id, const MInt dir) const |
MFloat & | invVolumeFraction (const MInt id) |
MFloat | invVolumeFraction (const MInt id) const |
BitsetType::reference | hasProperty (const MInt id, const LbCell p) |
Accessor for properties. More... | |
MBool | hasProperty (const MInt id, const LbCell p) const |
Accessor for properties (const version). More... | |
void | resetProperties (const MInt id) |
Reset all properties. More... | |
BitsetType & | allProperties (const MInt id) |
Accessor for properties. More... | |
void | setThermal (const MBool isThermal_) |
Allow setting whether to support thermal computations. More... | |
void | setTransport (const MBool useTransport_) |
Allow setting whether to support transport computations. More... | |
void | setNoVariables () |
Update number of variables according to used model. More... | |
void | setNoDistributions (const MInt noDistributions_) |
Sets the number of distributions. More... | |
constexpr MInt | isThermal () const |
Return number of species. More... | |
constexpr MInt | useTransport () const |
Return number of species. More... | |
void | setSaveUOtherPhase (const MBool saveUOtherPhase_) |
void | setSaveVolumeFraction (const MBool saveVolumeFraction_) |
void | setSavePrevVars (const MBool savePrevVars_) |
constexpr MInt | saveUOtherPhase () const |
constexpr MInt | saveVolumeFraction () const |
constexpr MInt | savePrevVars () const |
void | setSaveNuT (const MBool saveNuT_) |
void | setSaveOldNu (const MBool saveOldNu_) |
constexpr MInt | saveNuT () const |
constexpr MInt | saveOldNu () const |
constexpr MInt | noVariables () const |
Return number of variables. More... | |
constexpr MInt | noCells () const |
Return number of cells. More... | |
constexpr MInt | noDistributions () const |
Return number of distributions. More... | |
![]() | |
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... | |
LbCellCollector< nDim > & | derived () |
const LbCellCollector< 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 |
Static Public Member Functions | |
static constexpr MInt | noProperties () |
Return number of properties defined for each node. More... | |
Private Types | |
using | Base = maia::container::Container< LbCellCollector< nDim >, Invalid > |
template<class T > | |
using | Storage = typename Base::template Storage< T > |
using | BitsetType = maia::lb::cell::BitsetType |
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... | |
Friends | |
class | maia::container::Container< LbCellCollector< nDim >, Invalid > |
Additional Inherited Members | |
![]() | |
using | Storage = std::vector< T > |
![]() | |
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 114 of file lbcellcollector.h.
|
private |
Definition at line 119 of file lbcellcollector.h.
|
private |
Definition at line 123 of file lbcellcollector.h.
using maia::lb::collector::LbCellCollector< nDim >::Invalid = typename maia::lb::collector::Invalid<T> |
Definition at line 129 of file lbcellcollector.h.
|
private |
Definition at line 122 of file lbcellcollector.h.
|
constexprdefault |
BitsetType & maia::lb::collector::LbCellCollector< nDim >::allProperties | ( | const MInt | id | ) |
Definition at line 720 of file lbcellcollector.h.
MInt & maia::lb::collector::LbCellCollector< nDim >::bndId | ( | const MInt | id | ) |
Definition at line 401 of file lbcellcollector.h.
MInt maia::lb::collector::LbCellCollector< nDim >::bndId | ( | const MInt | id | ) | const |
Definition at line 407 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::diffusivity | ( | const MInt | id | ) |
Definition at line 372 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::diffusivity | ( | const MInt | id | ) | const |
Definition at line 380 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::distributions | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 480 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::distributions | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 491 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::distributionsThermal | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 600 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::distributionsThermal | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 611 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::distributionsTransport | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 644 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::distributionsTransport | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 654 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::externalForces | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 664 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::externalForces | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 671 of file lbcellcollector.h.
LbCellCollector< nDim >::BitsetType::reference maia::lb::collector::LbCellCollector< nDim >::hasProperty | ( | const MInt | id, |
const LbCell | p | ||
) |
Definition at line 699 of file lbcellcollector.h.
MBool maia::lb::collector::LbCellCollector< nDim >::hasProperty | ( | const MInt | id, |
const LbCell | p | ||
) | const |
Definition at line 706 of file lbcellcollector.h.
|
private |
Definition at line 790 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::invVolumeFraction | ( | const MInt | id | ) |
Definition at line 576 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::invVolumeFraction | ( | const MInt | id | ) | const |
Definition at line 582 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 207 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::kappa | ( | const MInt | id | ) |
Definition at line 358 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::kappa | ( | const MInt | id | ) | const |
Definition at line 365 of file lbcellcollector.h.
MInt & maia::lb::collector::LbCellCollector< nDim >::level | ( | const MInt | id | ) |
Definition at line 414 of file lbcellcollector.h.
MInt maia::lb::collector::LbCellCollector< nDim >::level | ( | const MInt | id | ) | const |
Definition at line 420 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 227 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 230 of file lbcellcollector.h.
|
inlinestaticconstexpr |
Definition at line 233 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 224 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::nu | ( | const MInt | id | ) |
Definition at line 334 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::nu | ( | const MInt | id | ) | const |
Definition at line 340 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::nuT | ( | const MInt | id | ) |
Definition at line 552 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::nuT | ( | const MInt | id | ) | const |
Definition at line 558 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::oldDistributions | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 502 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::oldDistributions | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 513 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::oldDistributionsThermal | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 622 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::oldDistributionsThermal | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 633 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::oldDistributionsTransport | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 678 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::oldDistributionsTransport | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 688 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::oldNu | ( | const MInt | id | ) |
Definition at line 346 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::oldNu | ( | const MInt | id | ) | const |
Definition at line 351 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::oldNuT | ( | const MInt | id | ) |
Definition at line 588 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::oldNuT | ( | const MInt | id | ) | const |
Definition at line 594 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::oldVariables | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 453 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::oldVariables | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 464 of file lbcellcollector.h.
MFloat * maia::lb::collector::LbCellCollector< nDim >::oldVariables_ptr |
Definition at line 475 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::previousDistribution | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 524 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::previousDistribution | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 531 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::previousVariable | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 538 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::previousVariable | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 545 of file lbcellcollector.h.
|
private |
Definition at line 839 of file lbcellcollector.h.
|
private |
Definition at line 289 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::resetProperties | ( | const MInt | id | ) |
Definition at line 713 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 220 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 221 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 217 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 215 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 216 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::setNoDistributions | ( | const MInt | noDistributions_ | ) |
Definition at line 784 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::setNoVariables |
Update number of variables.
Definition at line 739 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::setSaveNuT | ( | const MBool | saveNuT_ | ) |
Definition at line 773 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::setSaveOldNu | ( | const MBool | saveOldNu_ | ) |
Definition at line 778 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::setSavePrevVars | ( | const MBool | savePrevVars_ | ) |
Definition at line 768 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::setSaveUOtherPhase | ( | const MBool | saveUOtherPhase_ | ) |
Definition at line 758 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::setSaveVolumeFraction | ( | const MBool | saveVolumeFraction_ | ) |
Definition at line 763 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::setThermal | ( | const MBool | isThermal_ | ) |
Set use of thermal model.
Definition at line 727 of file lbcellcollector.h.
void maia::lb::collector::LbCellCollector< nDim >::setTransport | ( | const MBool | useTransport_ | ) |
Set use of transport model.
Definition at line 733 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::spongeFactor | ( | const MInt | id | ) |
Definition at line 388 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::spongeFactor | ( | const MInt | id | ) | const |
Definition at line 394 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::uOtherPhase | ( | const MInt | id, |
const MInt | dir | ||
) |
Definition at line 564 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::uOtherPhase | ( | const MInt | id, |
const MInt | dir | ||
) | const |
Definition at line 570 of file lbcellcollector.h.
|
inlineconstexpr |
Definition at line 210 of file lbcellcollector.h.
MFloat & maia::lb::collector::LbCellCollector< nDim >::variables | ( | const MInt | id, |
const MInt | eid | ||
) |
Definition at line 426 of file lbcellcollector.h.
MFloat maia::lb::collector::LbCellCollector< nDim >::variables | ( | const MInt | id, |
const MInt | eid | ||
) | const |
Definition at line 437 of file lbcellcollector.h.
MFloat * maia::lb::collector::LbCellCollector< nDim >::variables_ptr |
Definition at line 448 of file lbcellcollector.h.
|
friend |
Definition at line 109 of file lbcellcollector.h.
|
private |
Definition at line 267 of file lbcellcollector.h.
|
private |
Definition at line 265 of file lbcellcollector.h.
|
private |
Definition at line 271 of file lbcellcollector.h.
|
private |
Definition at line 273 of file lbcellcollector.h.
|
private |
Definition at line 275 of file lbcellcollector.h.
|
private |
Definition at line 277 of file lbcellcollector.h.
|
private |
Definition at line 283 of file lbcellcollector.h.
|
private |
Definition at line 250 of file lbcellcollector.h.
|
private |
Definition at line 264 of file lbcellcollector.h.
|
private |
Definition at line 268 of file lbcellcollector.h.
|
private |
Definition at line 247 of file lbcellcollector.h.
|
private |
Definition at line 245 of file lbcellcollector.h.
|
private |
Definition at line 243 of file lbcellcollector.h.
|
private |
Definition at line 262 of file lbcellcollector.h.
|
private |
Definition at line 280 of file lbcellcollector.h.
|
private |
Definition at line 272 of file lbcellcollector.h.
|
private |
Definition at line 274 of file lbcellcollector.h.
|
private |
Definition at line 276 of file lbcellcollector.h.
|
private |
Definition at line 263 of file lbcellcollector.h.
|
private |
Definition at line 281 of file lbcellcollector.h.
|
private |
Definition at line 270 of file lbcellcollector.h.
|
private |
Definition at line 278 of file lbcellcollector.h.
|
private |
Definition at line 279 of file lbcellcollector.h.
|
private |
Definition at line 284 of file lbcellcollector.h.
|
private |
Definition at line 258 of file lbcellcollector.h.
|
private |
Definition at line 259 of file lbcellcollector.h.
|
private |
Definition at line 257 of file lbcellcollector.h.
|
private |
Definition at line 255 of file lbcellcollector.h.
|
private |
Definition at line 256 of file lbcellcollector.h.
|
private |
Definition at line 266 of file lbcellcollector.h.
|
private |
Definition at line 282 of file lbcellcollector.h.
|
private |
Definition at line 253 of file lbcellcollector.h.
|
private |
Definition at line 269 of file lbcellcollector.h.