peclet-amr 0.2.0
Block-local-Morton AMR octree + collocated cut-cell Navier–Stokes solver (header-only C++20, Kokkos + MPI)
Loading...
Searching...
No Matches
peclet::amr::MomFaceEmit< Bits > Struct Template Reference

Device-callable reproduction of AmrCutCell::assembleOperator's per-cell row + diagonal. More...

#include <momentum_assembly.hpp>

Public Member Functions

double cellVolume (Index i) const
template<class Sink>
void operator() (Index i, Sink &sink) const
 Emit the off-diagonal entries of row i (S1 fill order): ξ-overlay for cut cells, −μ·invV·(a·c) for regular fluid, then the folded implicit-FOU advection — exactly assembleOperator's order.
double diag (Index i) const
 Diagonal of row i: 1 (solid), AC (cut), or idiag + μ·invV·Σ(a·c) (regular), plus folded advection.

Public Attributes

FvFaceEmit< 3, Bits > geom
 α=1 (hasOpen=false) C/F-aware ∇² traversal for regular fluid cells
View< const char > fluid
View< const char > cut
View< const double > AC
View< const double > off
View< const double > rscale
 off is n·6 (ξ-overlay), AC/rscale are n
View< const Index > nbr6
 n·6 periodic face-neighbour indices (cut-stencil order)
View< const double > advDiag
View< const double > advCoef
View< const Index > advStart
View< const Index > advNbr
double idiag = 0.0
double mu = 1.0
bool hasAdv = false
bool scaleAdv = false

Detailed Description

template<unsigned Bits = 21u>
struct peclet::amr::MomFaceEmit< Bits >

Device-callable reproduction of AmrCutCell::assembleOperator's per-cell row + diagonal.

Holds the staged stencil/advection device arrays + the shared α=1 ∇² geometry (FvFaceEmit). Trivially copyable.

Definition at line 58 of file momentum_assembly.hpp.

Member Function Documentation

◆ cellVolume()

template<unsigned Bits = 21u>
double peclet::amr::MomFaceEmit< Bits >::cellVolume ( Index i) const
inline

Definition at line 68 of file momentum_assembly.hpp.

References geom.

◆ operator()()

template<unsigned Bits = 21u>
template<class Sink>
void peclet::amr::MomFaceEmit< Bits >::operator() ( Index i,
Sink & sink ) const
inline

Emit the off-diagonal entries of row i (S1 fill order): ξ-overlay for cut cells, −μ·invV·(a·c) for regular fluid, then the folded implicit-FOU advection — exactly assembleOperator's order.

Definition at line 73 of file momentum_assembly.hpp.

References advCoef, advNbr, advStart, cut, fluid, geom, hasAdv, mu, nbr6, off, rscale, and scaleAdv.

◆ diag()

template<unsigned Bits = 21u>
double peclet::amr::MomFaceEmit< Bits >::diag ( Index i) const
inline

Diagonal of row i: 1 (solid), AC (cut), or idiag + μ·invV·Σ(a·c) (regular), plus folded advection.

Definition at line 100 of file momentum_assembly.hpp.

References AC, advDiag, cut, fluid, geom, hasAdv, idiag, mu, rscale, scaleAdv, and peclet::amr::MomSumSink::sum.

Referenced by peclet::amr::assembleMomentum().

Member Data Documentation

◆ geom

template<unsigned Bits = 21u>
FvFaceEmit<3, Bits> peclet::amr::MomFaceEmit< Bits >::geom

α=1 (hasOpen=false) C/F-aware ∇² traversal for regular fluid cells

Definition at line 59 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), cellVolume(), diag(), and operator()().

◆ fluid

template<unsigned Bits = 21u>
View<const char> peclet::amr::MomFaceEmit< Bits >::fluid

Definition at line 60 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), diag(), and operator()().

◆ cut

template<unsigned Bits = 21u>
View<const char> peclet::amr::MomFaceEmit< Bits >::cut

Definition at line 60 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), diag(), and operator()().

◆ AC

template<unsigned Bits = 21u>
View<const double> peclet::amr::MomFaceEmit< Bits >::AC

Definition at line 61 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), and diag().

◆ off

template<unsigned Bits = 21u>
View<const double> peclet::amr::MomFaceEmit< Bits >::off

Definition at line 61 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), and operator()().

◆ rscale

template<unsigned Bits = 21u>
View<const double> peclet::amr::MomFaceEmit< Bits >::rscale

off is n·6 (ξ-overlay), AC/rscale are n

Definition at line 61 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), diag(), and operator()().

◆ nbr6

template<unsigned Bits = 21u>
View<const Index> peclet::amr::MomFaceEmit< Bits >::nbr6

n·6 periodic face-neighbour indices (cut-stencil order)

Definition at line 62 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), and operator()().

◆ advDiag

template<unsigned Bits = 21u>
View<const double> peclet::amr::MomFaceEmit< Bits >::advDiag

Definition at line 63 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), and diag().

◆ advCoef

template<unsigned Bits = 21u>
View<const double> peclet::amr::MomFaceEmit< Bits >::advCoef

Definition at line 63 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), and operator()().

◆ advStart

template<unsigned Bits = 21u>
View<const Index> peclet::amr::MomFaceEmit< Bits >::advStart

Definition at line 64 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), and operator()().

◆ advNbr

template<unsigned Bits = 21u>
View<const Index> peclet::amr::MomFaceEmit< Bits >::advNbr

Definition at line 64 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), and operator()().

◆ idiag

template<unsigned Bits = 21u>
double peclet::amr::MomFaceEmit< Bits >::idiag = 0.0

Definition at line 65 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), and diag().

◆ mu

template<unsigned Bits = 21u>
double peclet::amr::MomFaceEmit< Bits >::mu = 1.0

Definition at line 65 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), diag(), and operator()().

◆ hasAdv

template<unsigned Bits = 21u>
bool peclet::amr::MomFaceEmit< Bits >::hasAdv = false

Definition at line 66 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), diag(), and operator()().

◆ scaleAdv

template<unsigned Bits = 21u>
bool peclet::amr::MomFaceEmit< Bits >::scaleAdv = false

Definition at line 66 of file momentum_assembly.hpp.

Referenced by peclet::amr::assembleMomentum(), diag(), and operator()().


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