|
flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
One bubble's block. More...
#include <block_container.hpp>
Public Member Functions | |
| bool | mine () const |
| WyAdvector & | advector () |
| const WyAdvector & | advector () const |
| VofBox | extended (int ghost) const |
| const VofBlockStats & | stats () const |
| VofCurvature & | curvature () |
| Rung W2: the block's own curvature cascade and the CSF face force it forms. | |
| const VofCurvature & | curvature () const |
| SField | csfForce (int c) const |
| void | serializeAux (double out[kAuxLen]) const |
| void | deserializeAux (const double in[kAuxLen]) |
Public Attributes | |
| long | id = 0 |
| int | master = 0 |
| VofBox | box |
| the INNER box, global | |
| VofBox | seed_ {} |
| The BUBBLE extent this block was seeded from (empty for a sphere seed, which paints its own colour). | |
Static Public Attributes | |
| static constexpr int | kAuxLen = 10 |
The non-colour state a master carries between steps: the previous centroid (so a migrated block's reported velocity has no gap), whether it is valid, and the cumulative debris ledger (doc/vof_overlap_design.md §5.3: it migrates with the block). | |
Friends | |
| class | VofBlockSet |
One bubble's block.
Every rank holds the (id, box, master) triple — the replicated table — and ONLY the master allocates the advector and the colour.
Definition at line 313 of file block_container.hpp.
|
inline |
Definition at line 322 of file block_container.hpp.
|
inline |
Definition at line 323 of file block_container.hpp.
|
inline |
Definition at line 324 of file block_container.hpp.
|
inline |
Definition at line 325 of file block_container.hpp.
References box, and peclet::flow::vof::VofBox::grown().
|
inline |
Definition at line 326 of file block_container.hpp.
|
inline |
Rung W2: the block's own curvature cascade and the CSF face force it forms.
Allocated only when VofBlockSet::csfEnabled is on and only on the master. csfForce(c) holds the force at the LOW face of each cell of the block's own extended array (flow's face convention), i.e. sigma kappa_f (C(i) - C(i - s_c)) / h, and is what the scatter sums into the global field.
Definition at line 331 of file block_container.hpp.
|
inline |
Definition at line 332 of file block_container.hpp.
|
inline |
Definition at line 333 of file block_container.hpp.
Definition at line 339 of file block_container.hpp.
References peclet::flow::vof::VofBlockStats::debrisLost, peclet::flow::vof::VofBlockStats::debrisReturned, peclet::flow::vof::VofBlockStats::debrisUnresolved, peclet::flow::vof::VofBlockStats::discarded, peclet::flow::vof::VofBlockStats::fullAxis, and peclet::flow::vof::VofBlockStats::residueReturned.
Definition at line 350 of file block_container.hpp.
References peclet::flow::vof::VofBlockStats::debrisLost, peclet::flow::vof::VofBlockStats::debrisReturned, peclet::flow::vof::VofBlockStats::debrisUnresolved, peclet::flow::vof::VofBlockStats::discarded, peclet::flow::vof::VofBlockStats::fullAxis, and peclet::flow::vof::VofBlockStats::residueReturned.
|
friend |
Definition at line 362 of file block_container.hpp.
| long peclet::flow::vof::VofBlock::id = 0 |
Definition at line 315 of file block_container.hpp.
| int peclet::flow::vof::VofBlock::master = 0 |
Definition at line 316 of file block_container.hpp.
| VofBox peclet::flow::vof::VofBlock::box |
| VofBox peclet::flow::vof::VofBlock::seed_ {} |
The BUBBLE extent this block was seeded from (empty for a sphere seed, which paints its own colour).
Used once, at seeding, to clip a neighbour's liquid out of the margin ring.
Definition at line 320 of file block_container.hpp.
|
staticconstexpr |
The non-colour state a master carries between steps: the previous centroid (so a migrated block's reported velocity has no gap), whether it is valid, and the cumulative debris ledger (doc/vof_overlap_design.md §5.3: it migrates with the block).
kAuxLen doubles; everything else in a block is either replicated (the table) or recomputed every step.
Definition at line 338 of file block_container.hpp.
Referenced by peclet::flow::vof::VofBlockSet::assignMasters(), and peclet::flow::vof::VofBlockExchange::migrateColour().