flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
peclet::flow::vof::VofBox Struct Reference

Half-open global cell box [lo, hi). More...

#include <block_container.hpp>

Public Member Functions

int n (int d) const
 
long cells () const
 
bool empty () const
 
I3 size () const
 
I3 origin () const
 
bool contains (const VofBox &o) const
 
bool operator== (const VofBox &o) const
 
bool operator!= (const VofBox &o) const
 

Static Public Member Functions

static VofBox grown (const VofBox &b, int m)
 
static VofBox intersect (const VofBox &a, const VofBox &b)
 Intersection in global coordinates (may be empty).
 

Public Attributes

int lo [3] {0, 0, 0}
 
int hi [3] {0, 0, 0}
 

Detailed Description

Half-open global cell box [lo, hi).

lo may be negative and hi may exceed the grid on a periodic axis; the exchange wraps.

Definition at line 88 of file block_container.hpp.

Member Function Documentation

◆ n()

int peclet::flow::vof::VofBox::n ( int  d) const
inline

Definition at line 92 of file block_container.hpp.

References hi, and lo.

Referenced by advect.Ann::__init__(), conj.Geo2::__init__(), conj_peters.Box::__init__(), cells(), empty(), and size().

◆ cells()

long peclet::flow::vof::VofBox::cells ( ) const
inline

Definition at line 93 of file block_container.hpp.

References n().

Referenced by peclet::flow::vof::VofPiece::cells().

◆ empty()

bool peclet::flow::vof::VofBox::empty ( ) const
inline

Definition at line 94 of file block_container.hpp.

References n().

◆ size()

I3 peclet::flow::vof::VofBox::size ( ) const
inline

Definition at line 95 of file block_container.hpp.

References n().

◆ origin()

I3 peclet::flow::vof::VofBox::origin ( ) const
inline

Definition at line 96 of file block_container.hpp.

References lo.

◆ contains()

bool peclet::flow::vof::VofBox::contains ( const VofBox &  o) const
inline

Definition at line 98 of file block_container.hpp.

References hi, and lo.

◆ operator==()

bool peclet::flow::vof::VofBox::operator== ( const VofBox &  o) const
inline

Definition at line 104 of file block_container.hpp.

References hi, and lo.

◆ operator!=()

bool peclet::flow::vof::VofBox::operator!= ( const VofBox &  o) const
inline

Definition at line 110 of file block_container.hpp.

◆ grown()

◆ intersect()

static VofBox peclet::flow::vof::VofBox::intersect ( const VofBox &  a,
const VofBox &  b 
)
inlinestatic

Intersection in global coordinates (may be empty).

Definition at line 121 of file block_container.hpp.

Referenced by peclet::flow::vof::vofBuildPieces().

Member Data Documentation

◆ lo

int peclet::flow::vof::VofBox::lo[3] {0, 0, 0}

Definition at line 89 of file block_container.hpp.

Referenced by contains(), n(), operator==(), and origin().

◆ hi

int peclet::flow::vof::VofBox::hi[3] {0, 0, 0}

Definition at line 90 of file block_container.hpp.

Referenced by contains(), n(), and operator==().


The documentation for this struct was generated from the following file: