flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
peclet::flow Namespace Reference

Namespaces

namespace  varrho
namespace  binding_checks
namespace  bindings
namespace  scd
namespace  bcdetail
namespace  ccdetail
namespace  scg
namespace  sco
namespace  skr
 The device slots of the resident pass, and the stop codes (exact in double).
namespace  smg
namespace  vof

Classes

class  AndersonAccelerator
struct  IbmOverlayT
struct  UniformFaceProps
struct  FieldFaceProps
struct  VarFaceProps
class  Solver
class  FlowReference
struct  GpOverlayT
 Per-overlay-row SoA. More...
struct  GpRowCensus
 Row/face census of the overlay: face-state counts, the theta and rho histograms and the max |closure weight| per row (QUAD/LIN faces only, both weight sets). More...
struct  GpRhoMismatch
 Neighbour rho mismatch: the row scaling is a LEFT diagonal scaling of a nonsymmetric operator, so a row whose rho differs sharply from its neighbours' has coefficients a_ij / a_ji differing by that ratio. More...
struct  Staggered
struct  Colocated
struct  B3
struct  BcVelFace
struct  BcVelFaces
struct  ChebCoeffs
 The Chebyshev coefficient recurrence (Golub-Varga; the form multigrid Chebyshev smoothers use). More...
struct  C3
class  HostSerialRegion
struct  CcNbrs
struct  BottomLevel
struct  BottomLabelKernel
struct  BottomKernel
class  CutcellMG
struct  Off3
class  MgPoisson
struct  Ext3
struct  SumMax
 {sum, max|.|} reduction value. More...
struct  I3
struct  T3
class  VelocityMG
struct  BottomPlanes
struct  BottomDirect
struct  BottomFactorKernel
struct  LineRowFp64
struct  LineRowFp32
struct  LineScratchGlobal
struct  LineScratchLocal
struct  Closure
struct  ScalarWallSpec
 Wall condition per body (§1.1, §8.1 set_scalar_wall), in the caller's PHYSICAL units; the conversion to internal units is done at advance time (§1.2). More...
struct  ScalarCutState
 The per-cut-cell-scalar state (ScalarField::cut). More...
struct  ScalarKrylovResult
 Outcome of one scalarBiCGStab call. More...
struct  ScalarVec
 A Krylov vector (§5.1): the fluid field and, for a conjugate scalar, the solid field (WO-7). More...
struct  ScalarKrylovOps
 The injected pieces as callables (host-side calls that launch kernels; the overhead of the indirection is nothing next to a block-wide kernel). More...
class  ScalarMG
struct  ScalarField
struct  StarOverlay
 One entry per eliminated solid-centered cell: packed INNER flat index + the apertures of its (up to 6) faces to FLUID-CENTERED axis neighbours (order: +x,-x,+y,-y,+z,-z; 0 where the neighbour is solid-centered or the face is closed). More...

Typedefs

using IMem = Kokkos::DefaultExecutionSpace::memory_space
template<class Real>
using IbmOverlayReal = IbmOverlayT<IMem, Real>
using IbmSolver = Solver<Staggered>
using RegMask = Kokkos::View<std::uint8_t*, CCMem>
 Per-component regular-node mask (§5.4): 1 = a velocity node with neither a solid nor a cut row.
using RegConst = Kokkos::View<const std::uint8_t*, CCMem>
template<class Real>
using GpOverlayReal = GpOverlayT<CCMem, Real>
using GpOverlay = GpOverlayReal<float>
template<class Real>
using GpOverlayHost = GpOverlayT<Kokkos::HostSpace, Real>
 The report's host view of an overlay: the first nRows rows of every array it reads (w_bc is not read and stays empty).
using MConst = Kokkos::View<const float*, CCMem>
using BExec = Kokkos::DefaultExecutionSpace
using BMem = BExec::memory_space
using BField = Kokkos::View<double*, BMem>
using CCExec = Kokkos::DefaultExecutionSpace
using CCMem = CCExec::memory_space
using CCField = Kokkos::View<double*, CCMem>
using CCConst = Kokkos::View<const double*, CCMem>
using MReal = float
using FPV = Kokkos::View<MReal*, CCMem>
using FPC = Kokkos::View<const MReal*, CCMem>
using VReal = float
using mreal = MReal
using IbmOverlay = IbmOverlayT<IMem, mreal>
using GpOverlayMReal = GpOverlayReal<mreal>
using Exec = Kokkos::DefaultExecutionSpace
using Mem = Exec::memory_space
using DField = Kokkos::View<double*, Mem>
using DConst = Kokkos::View<const double*, Mem>
using SExec = Kokkos::DefaultExecutionSpace
using SMem = SExec::memory_space
using SField = Kokkos::View<double*, SMem>
using SConst = Kokkos::View<const double*, SMem>
using TExec = Kokkos::DefaultExecutionSpace
using TMem = TExec::memory_space
using TField = Kokkos::View<double*, TMem>
using TConst = Kokkos::View<const double*, TMem>
using VField = Kokkos::View<VReal*, CCMem>
using VConst = Kokkos::View<const VReal*, CCMem>
template<class Exec>
using MDRange2
 2-D range, first index fastest (both the tile order and the order within a tile).
template<class Exec>
using MDRange3
 3-D range, x (the first index) fastest (both the tile order and the order within a tile).

Enumerations

enum  : int { kOpFp64None = 0 , kOpFp64Diag = 1 , kOpFp64Full = 2 }
enum  : int { kCaMomentum = 1 , kCaMg = 2 , kCaBoth = kCaMomentum | kCaMg }
enum class  ClosureKind { LinearMix , BoussinesqForce , ArrheniusMu , Table1D }
enum class  ScalarBc { Periodic = 0 , Neumann = 1 , Dirichlet = 2 }

Functions

void buildFaceAccelVar (CCField af, CCConst P, CCConst rho, CCConst fb, bool haveFb, bool haveRho, double rhoC, double fc, bool incr, double scale, long s, C3 e, int g, double wa=1.0)
void addFaceAccelCsf (CCField af, CCConst cv, CCConst kp, CCConst kb, CCConst rho, bool haveRho, double rhoC, double sigma, double hGrad, double scale, long s, C3 e, int g)
void centerToFaceMassWeighted (CCField uf, CCField vf, CCField wf, CCConst U, CCConst V, CCConst W, CCConst rho, C3 e, int g)
void correctCellFaceAverageVar (CCField u, CCConst phi, CCConst rho, CCConst o, bool haveRho, double rho0, long s, C3 e, int g, double wa=1.0)
template<class Real>
Real poly_D (Real xi)
template<class Real>
Real poly_N_nb (Real xi)
template<class Real>
Real poly_Nc (Real xi)
template<class Real>
Real poly_Nbc (Real)
template<class Real>
Real poly_D_avg (Real xi)
template<class Real>
Real poly_Nnb_avg (Real xi)
template<class Real>
Real poly_Nc_avg (Real xi)
template<class Real>
Real poly_Nbc_avg (Real)
template<class Real>
Real poly_D_slip (Real xi, Real lam)
template<class Real>
Real poly_N_nb_slip (Real xi, Real lam)
template<class Real>
Real poly_Nc_slip (Real xi, Real lam)
template<class Real>
Real poly_D_sandwich (Real xi_m, Real xi_p)
template<class Real>
Real poly_N_c_sandwich (Real xi_m, Real xi_p)
template<class Real>
Real poly_Nbc_pp_sw (Real xi_m, Real xi_p)
template<class Real>
Real poly_Nbc_mp_sw (Real xi_m, Real xi_p)
template<class Real>
Real poly_D_sandwich_avg (Real xi_m, Real xi_p)
template<class Real>
Real poly_N_c_sandwich_avg (Real xi_m, Real xi_p)
template<class Real>
Real poly_Nbc_pp_sw_avg (Real xi_m, Real xi_p)
template<class Real>
Real poly_Nbc_mp_sw_avg (Real xi_m, Real xi_p)
template<int SCHEME, class OV>
void ibmFillEntry (const OV &o, int list_idx, int c_idx, typename OV::value_type sdf_c, const typename OV::value_type sdf_n[6], int bc_type, const typename OV::value_type *thEx, const typename OV::value_type *lamAxis=nullptr, int *sandwichSkipped=nullptr)
template<int SCHEME, class OV>
void ibmFillEntry (const OV &o, int list_idx, int c_idx, typename OV::value_type sdf_c, const typename OV::value_type sdf_n[6], int bc_type)
template<class MV>
void ibmBuildDiffusion (MV AC, MV AW, MV AE, MV AS, MV AN, MV AB, MV AT, int ex, int ey, int ez, double bx, double by, double bz, double idiag)
template<class MV>
void ibmBuildDiffusion (MV AC, MV AW, MV AE, MV AS, MV AN, MV AB, MV AT, int ex, int ey, int ez, double beta, double idiag)
template<class FaceProps, class MV>
void ibmBuildDiffusionVar (MV AC, MV AW, MV AE, MV AS, MV AN, MV AB, MV AT, int ex, int ey, int ez, int g, FaceProps fp, double wx=1.0, double wy=1.0, double wz=1.0)
template<class MV, class OV>
void ibmModifyStencil (MV AC, MV AW, MV AE, MV AS, MV AN, MV AB, MV AT, Kokkos::View< double *, IMem > a_inhom, Kokkos::View< double *, IMem > rhs_scale, const OV &ibm, int numActive, typename OV::value_type u_bc_val, Kokkos::View< const double *, IMem > u_bc=Kokkos::View< const double *, IMem >())
void gpDecouplePockets (std::vector< double > &work, int nx, int ny, int nz, bool verbose)
template<class FaceProps, bool kSolid>
void addFullStressRhs (int c, CCField bb, CCConst rs, const CCConst(&v)[3], FaceProps fp, C3 e, int g, double wc, bool skipLoC, const RegConst(&reg)[3]={RegConst(), RegConst(), RegConst()})
 Add rs_c · T_c(uⁿ) to the momentum RHS bb of component c over the inner cells [g, e−g)³.
void muRangeInner (CCConst mu, C3 e, int g, double &lo, double &hi)
 The local min and max of mu over [g−1, e−g+1)³ — the inner cells plus the one ghost ring the transpose term reads (§4.3 step 2).
void gpCenterGrad (CCField out, CCConst p, CCConst sdf, int axis, C3 e, int g, double wa=1.0)
 Directional cell-center gradient (collocated ghost path) of a cell field p whose solid-centered rows are DECOUPLED (hold 0): central difference where both axis neighbours are fluid-centered; 2nd-order one-sided toward the fluid where a neighbour center is solid ((-3p_i + 4p_{i+1} - p_{i+2})/2, falling back to the 2-point one-sided when the +/-2 cell is solid too); 0 when sandwiched.
template<class Real = float>
GpOverlayReal< Real > gpMakeOverlay (long n)
int gpWrap (int v, int n)
template<class Real>
int buildGpOverlay (CCConst sdf, C3 ext, int g, C3 nn, const GpOverlayReal< Real > &ov, Kokkos::View< int *, CCMem > idMap, Kokkos::View< int, CCMem > counter, int matrixOrder=2, int rhsOrder=2, CCConst tx=CCConst(), CCConst ty=CCConst(), CCConst tz=CCConst(), bool useGhost=false)
 Build the overlay over the inner grid nn from the cell-centered sdf on the extended block (ext, ghost width g).
void gpBinaryOpenness (CCField ox, CCField oy, CCField oz, CCConst sdf, C3 ext)
 Binary openness for the symmetric MG surrogate, on the extended-block layout of buildOpenness: o(face) = 1 iff the face point is fluid AND both adjacent cell centers are fluid, else 0.
template<class Real>
void gpApplyDelta (CCField y, CCConst x, const GpOverlayReal< Real > &ov, int nOv, C3 nn, C3 extY, int gbY, C3 extX, int gbX, bool useGhost=false)
 Overlay matvec correction: y(r) = rho_r * (y(r) + closure-face phi terms), where y currently holds the binary-openness (COUPLED-part) matvec.
template<class Real>
void gpDivergDelta (CCField d, CCConst u, CCConst v, CCConst w, const GpOverlayReal< Real > &ov, int nOv, C3 nn, C3 extb, int gb, bool useGhost=false)
 Overlay divergence correction: d(r) = rho_r * (d(r) + closure/BC/explicit face values), where d currently holds the binary-openness divergence (divergOpen on the binary fields: COUPLED faces only).
int gpDebugLevel ()
 0 = off (default). Read once per call; cheap enough, and keeps the flag hot-swappable in tests.
template<class Real>
GpOverlayHost< Real > gpOverlayRowsToHost (const GpOverlayReal< Real > &ov, int nRows)
template<class Real>
float gpRowFaceCensus (const GpOverlayHost< Real > &h, int s, GpRowCensus &c)
 Face census of row s into c; returns the row's max |closure weight|.
template<class Real>
GpRowCensus gpRowCensus (const GpOverlayHost< Real > &h, int nRows)
template<class Real>
GpRhoMismatch gpRhoMismatch (const GpOverlayHost< Real > &h, int nRows, C3 nn, Kokkos::View< int *, Kokkos::HostSpace > hId)
void gpPrintCensus (int rank, int nRows, long nInner, const GpRowCensus &c, const GpRhoMismatch &m)
template<class Real>
void gpPrintWorstRows (const GpOverlayHost< Real > &h, int nRows, C3 nn, const GpRowCensus &c, const GpRhoMismatch &m)
 The 20 worst rows by rho, with their full face anatomy.
template<class Real>
void gpDumpRows (const GpOverlayHost< Real > &h, int nRows, C3 nn, int rank)
 PECLET_FLOW_GP_DEBUG=2: every overlay row to <PECLET_FLOW_GP_DEBUG_FILE>_rank<r>.bin (record layout in the file header).
template<class Real>
void gpDebugReport (const GpOverlayReal< Real > &ov, int nRows, C3 nn, Kokkos::View< int *, CCMem > idMap, int rank=0)
 Census + optional per-row dump of the built overlay.
void centerToFace (CCField uf, CCField vf, CCField wf, CCConst U, CCConst V, CCConst W, C3 e, int g)
int wallAwareFaceStencil (CCConst sdf, long i, long sa, int cFace, int eAxis, double xcen, long idx[3], double w[3])
double wallAwareFaceValue (CCConst U, CCConst sdf, long i, long sa, int cFace, int eAxis, double xcen)
void buildFaceCentroidDist (CCField xcx, CCField xcy, CCField xcz, CCConst sdf, C3 e)
void centerToFaceWallAware (CCField uf, CCField vf, CCField wf, CCConst U, CCConst V, CCConst W, CCConst sdf, CCConst xcx, CCConst xcy, CCConst xcz, bool useCen, C3 e, int g)
void transposeGradWallAware (CCField out, CCConst p, CCConst sdf, CCConst o, CCConst xc, bool useCen, int axis, C3 e, int g, double wa=1.0)
void buildCellFraction (CCField cs, CCConst sdf, C3 e, int g)
double eQuad (double xx, double a1, double a2, double a3)
double embedDirichletGradient (CCConst U, CCConst sdf, C3 e, int x, int y, int z, double nx, double ny, double nz, double px, double py, double pz)
void embedViscousApply (CCField Lu, CCConst U, CCConst sdf, CCConst cs, CCConst ox, CCConst oy, CCConst oz, double mu, double idt, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0, double hpx=1.0, double hpy=1.0, double hpz=1.0)
template<class MC>
void stencilMatvec (CCField y, CCConst u, MC AC, MC AW, MC AE, MC AS, MC AN, MC AB, MC AT, C3 e, int g)
void subtractField (CCField u, CCConst d, C3 e, int g)
void centerGradOpen (CCField out, CCConst p, CCConst o, int axis, C3 e, int g, double wa=1.0)
void projectCorrectCenterOpen (CCField u, CCField v, CCField w, CCConst phi, CCConst ox, CCConst oy, CCConst oz, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0)
void projectCorrectCenter (CCField u, CCField v, CCField w, CCConst phi, CCConst ox, CCConst oy, CCConst oz, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0)
void bcVelocityComp (BField f, B3 ext, int g, int a, int s, int comp, double wall, int fold, BField prof=BField(), int prof_nc=0)
void bcVelocityFaces (const BcVelFaces &J, B3 ext, int g, int a, int fold)
void bcSlipComp (BField f, B3 ext, int g, int a, int s, int comp, int fold)
void bcMirrorGhost (BField f, B3 ext, int g, int a, int s)
void bcVelocityColocated (BField f, B3 ext, int g, int a, int s, double wall, int comp=0, BField prof=BField(), int prof_nc=0)
template<class FV>
void bcNeumannGhostCell (const FV &f, long base, long sa, int bic, int lo, int hi)
template<class FV>
void bcZeroPressureGhostCell (const FV &phi, long base, long sa, int lo, int hi)
template<class FV>
void bcNeumannGhostT (FV f, B3 ext, int g, int a, int s)
void bcNeumannGhost (BField f, B3 ext, int g, int a, int s)
void bcOutflowComp (BField f, B3 ext, int g, int a, int s, int comp, int fold)
void bcDiffusionFold (BField dcorr, BField brhs, B3 ext, int g, int a, int s, double dval, double bval)
void bcZeroPressureGhost (BField phi, B3 ext, int g, int a, int s)
void bcCorrectOutflow (BField f, BField phi, B3 ext, int g, int a, double wa=1.0)
void bcCorrectOutflowVar (BField f, BField phi, BField rho, double rho0, B3 ext, int g, int a, bool harmonic, double wa=1.0)
void bcSaveHighFacePlaneInner (BField dst, BField src, B3 ext, int g, int a)
void bcRestoreHighFacePlaneInner (BField dst, BField src, B3 ext, int g, int a)
void bcHighFacePlaneToLastInner (BField scratch, BField src, B3 ext, int g, int a)
void bcHighFacePlaneEdgesFromLastInner (BField dst, BField scratch, B3 ext, int g, int a)
void bcSetOpenness (BField oa, B3 ext, int g, int a, int s, double val)
void bcZeroOpenness (BField oa, B3 ext, int g, int a, int s)
template<class MC>
void ibmStencilJacobiBounds (MC AC, MC AW, MC AE, MC AS, MC AN, MC AB, MC AT, CCConst solidmask, C3 e, int g, double &lo, double &hi)
 Gershgorin bounds [lo, hi] on the spectrum of the Jacobi-preconditioned cut-cell Helmholtz diag(AC)^-1 A, over the UNPINNED rows of the inner block.
void ibmChebUpdate (CCField x, CCField d, CCConst r, FPC AC, CCConst solidmask, C3 e, int g, double alpha, double beta)
 One Chebyshev update on the Jacobi-preconditioned system: d <- beta*d + alpha*r/AC ; x += d.
double ccFractionCore (double sd, double sxp, double sxm, double syp, double sym, double szp, double szm, int type, double dx, double dy, double dz)
double ccSampleExt (CCConst sdf, C3 ext, double x, double y, double z)
double ccFaceOpen (CCConst sdf, C3 ext, double fx, double fy, double fz, int type, double dx, double dy, double dz)
double ccTriFrac (double a, double b, double c)
double ccFaceOpenMS (CCConst sdf, C3 ext, double fx, double fy, double fz, int type)
void buildOpenness (CCField ox, CCField oy, CCField oz, CCConst sdf, C3 ext, double dx, double dy, double dz, int order=1)
void buildOpennessHighFace (CCField oa, CCConst sdf, C3 ext, int g, int a, double dx, double dy, double dz, int order=1)
bool hostRunSerial (long cells)
template<class F>
void ccFor3 (const char *name, C3 lo, C3 hi, F f)
template<class F>
void ccForRows3 (const char *name, C3 lo, C3 hi, F f)
template<class Run>
void ccBoxShellRuns (const char *name, C3 rlo, C3 rhi, C3 slo, C3 shi, Run run)
CcNbrs ccMaskNbrs (int lx, int ly, int lz, C3 n, int g, long i, long sy, long sz, int m)
template<class Cell>
void ccMaskRow (int ly, int lz, int lx0, int x1, int step, C3 e, C3 n, int g, int m, const Cell &cell)
template<class F, class... R>
void ccReduce3 (const char *name, C3 lo, C3 hi, F f, R &&... reducers)
template<class F, class... R>
void ccReduce3Lanes (const char *name, C3 lo, C3 hi, F f, R &&... reducers)
template<class CV, class FV>
void coarsenOpenAvgCell (const CV &oxc, const CV &oyc, const CV &ozc, const FV &oxf, const FV &oyf, const FV &ozf, C3 cext, C3 fext, int gc, int gf, C3 ratio, int icx, int icy, int icz)
void coarsenOpenAvg (CCField oxc, CCField oyc, CCField ozc, CCConst oxf, CCConst oyf, CCConst ozf, C3 cext, C3 fext, int gc, int gf, C3 cinner, C3 ratio)
void mgSaveFacePlane (CCField dst, CCConst src, C3 e, int g, int a, int s)
void mgRestoreFacePlane (CCField dst, CCConst src, C3 e, int g, int a, int s)
void mgCoarsenFacePlane (CCField oc, CCConst of, C3 cext, C3 fext, int gc, int gf, C3 cinner, C3 ratio, int a, int s)
template<class RV, class XV, class BV, class OpV>
void cutcellResidualCell (const RV &r, const XV &x, const BV &b, const OpV &AC, const OpV &AW, const OpV &AE, const OpV &AS, const OpV &AN, const OpV &AB, const OpV &AT, long i, long xp, long xm, long yp, long ym, long zp, long zm)
void residualCutcell (CCField r, CCConst x, CCConst b, FPC AC, FPC AW, FPC AE, FPC AS, FPC AN, FPC AB, FPC AT, C3 e, int g)
void residualCutcellBox (CCField r, CCConst x, CCConst b, FPC AC, FPC AW, FPC AE, FPC AS, FPC AN, FPC AB, FPC AT, C3 e, C3 rlo, C3 rhi, C3 slo, C3 shi)
void residualCutcellFace (CCField r, CCConst x, CCConst b, FPC AC, FPC AFX, FPC AFY, FPC AFZ, C3 e, int g)
void residualCutcellBoxFace (CCField r, CCConst x, CCConst b, FPC AC, FPC AFX, FPC AFY, FPC AFZ, C3 e, C3 rlo, C3 rhi, C3 slo, C3 shi, int wrapMask=0, int g=1)
CcNbrs ccWrapNbrs (int lx, int ly, int lz, C3 n, int g, long i, long sy, long sz)
template<class Cell>
void ccWrapRowPeeled (int ly, int lz, C3 e, C3 n, int g, int lx0, int step, const Cell &cell)
template<class Cell>
void ccWrapForPeeled (const char *name, C3 e, C3 n, int g, const Cell &cell)
void cutcellSmoothColorFaceWrap (CCField phi, CCConst b, FPC AC, FPC AFX, FPC AFY, FPC AFZ, C3 e, C3 n, C3 og, int g, int color)
void residualCutcellFaceWrap (CCField r, CCConst x, CCConst b, FPC AC, FPC AFX, FPC AFY, FPC AFZ, C3 e, C3 n, int g)
void applyCutcellOpFaceWrap (CCField y, CCConst x, FPC AC, FPC AFX, FPC AFY, FPC AFZ, C3 e, C3 n, int g)
void applyCutcellOpExactWrap (CCField y, CCConst x, CCConst ox, CCConst oy, CCConst oz, C3 e, C3 n, int g, double gfx, double gfy, double gfz)
template<class CV, class FV>
void restrictAvgCell (const CV &coarse, const FV &fine, C3 cext, C3 fext, int gc, int gf, C3 ratio, int icx, int icy, int icz)
template<class FV, class CV>
void prolongAddCell (const FV &fine, const CV &coarse, C3 fext, C3 cext, int gf, int gc, C3 ratio, int ifx, int ify, int ifz)
template<class FV, class CV>
void prolongConstAddCell (const FV &fine, const CV &coarse, C3 fext, C3 cext, int gf, int gc, C3 ratio, int ifx, int ify, int ifz)
template<class FV, class AV>
void meanSubtractCell (const FV &f, const AV &ac, long i, double mean)
void restrictAvg (CCField coarse, CCConst fine, C3 cext, C3 fext, int gc, int gf, C3 cinner, C3 ratio)
void restrictAvgZeroX (CCField coarse, CCField coarseX, CCConst fine, C3 cext, C3 fext, int gc, int gf, C3 cinner, C3 ratio)
template<class OpV, class WV>
void buildCutcellOpFaceFp32 (OpV AC, OpV AFX, OpV AFY, OpV AFZ, WV WX, WV WY, WV WZ, CCConst ox, CCConst oy, CCConst oz, C3 e, int gb, double gfx, double gfy, double gfz, int fp64, int *bad)
void prolongAdd (CCField fine, CCConst coarse, C3 fext, C3 cext, int gf, int gc, C3 finner, C3 ratio)
void prolongConstAdd (CCField fine, CCConst coarse, C3 fext, C3 cext, int gf, int gc, C3 finner, C3 ratio)
int mgDebugLevel ()
int mgDebugSolves ()
template<class Real>
bool ibmIsCut (Real sc, const Real sn[6])
template<int SCHEME>
int buildIbmOverlay (CCConst sdf, C3 ext, int g, Off3 off, int bc_type, const IbmOverlay &ov, Kokkos::View< int *, CCMem > idMap, Kokkos::View< int, CCMem > counter, CCConst tx=CCConst(), CCConst ty=CCConst(), CCConst tz=CCConst(), C3 nn=C3{0, 0, 0}, mreal slipLambda=mreal(0), int comp=-1, Kokkos::View< int, CCMem > sandwichSkipped=Kokkos::View< int, CCMem >(), mreal hpx=mreal(1), mreal hpy=mreal(1), mreal hpz=mreal(1))
 slipLambda (WO-V6b, in CELLS, 0 = the validated no-slip closure) + comp (which velocity component this overlay carries: 0/1/2, -1 = none) turn the tangential wall Dirichlet datum into a NAVIER condition u_t(wall) = lambda du_t/dn.
void ibmVolfrac (CCField theta, CCConst sdf, C3 ext, Off3 off, bool aniso=false, double hpx=1.0, double hpy=1.0, double hpz=1.0, double wx=1.0, double wy=1.0, double wz=1.0)
void ibmSolidMask (CCField mask, CCConst sdf, C3 ext, Off3 off)
void ibmCleanFluidMask (CCField m, CCConst sdf, C3 ext, Off3 off)
template<class MC>
void ibmRbgsStencilColor (CCField x, CCConst b, MC AC, MC AW, MC AE, MC AS, MC AN, MC AB, MC AT, CCConst solidmask, C3 ext, C3 og, int g, int color)
template<class MC>
double ibmRbgsStencilColorDu (CCField x, CCConst b, MC AC, MC AW, MC AE, MC AS, MC AN, MC AB, MC AT, CCConst solidmask, C3 ext, C3 og, int g, int color)
template<class MC>
void ibmRbgsStencilColorBox (CCField x, CCConst b, MC AC, MC AW, MC AE, MC AS, MC AN, MC AB, MC AT, CCConst solidmask, C3 ext, C3 og, int color, C3 rlo, C3 rhi, C3 slo, C3 shi)
template<class MC>
double ibmRbgsStencilColorDuBox (CCField x, CCConst b, MC AC, MC AW, MC AE, MC AS, MC AN, MC AB, MC AT, CCConst solidmask, C3 ext, C3 og, int color, C3 rlo, C3 rhi, C3 slo, C3 shi)
void ibmRbgsSweep (CCField x, CCConst b, MConst AC, MConst AW, MConst AE, MConst AS, MConst AN, MConst AB, MConst AT, CCConst solidmask, C3 ext, C3 og, int g)
void mgPeriodicFill (SField f, I3 e, int N, int g)
template<class OpV, class OV>
void cutcellBuildOpCell (const OpV &AC, const OpV &AW, const OpV &AE, const OpV &AS, const OpV &AN, const OpV &AB, const OpV &AT, const OV &ox, const OV &oy, const OV &oz, long i, long sx, long sy, long sz, double gfx, double gfy, double gfz)
template<class PV, class BV, class OpV>
void cutcellSmoothCell (const PV &phi, const BV &b, const OpV &AC, const OpV &AW, const OpV &AE, const OpV &AS, const OpV &AN, const OpV &AB, const OpV &AT, long i, long xp, long xm, long yp, long ym, long zp, long zm)
template<class XV, class OpV>
double cutcellApplyCell (const XV &x, const OpV &AC, const OpV &AW, const OpV &AE, const OpV &AS, const OpV &AN, const OpV &AB, const OpV &AT, long i, long xp, long xm, long yp, long ym, long zp, long zm)
template<class XV, class OV>
double cutcellApplyExactCell (const XV &x, const OV &ox, const OV &oy, const OV &oz, long i, long sx, long sy, long sz, long xp, long xm, long yp, long ym, long zp, long zm, double gfx, double gfy, double gfz)
template<class OpV>
void buildCutcellOp (OpV AC, OpV AW, OpV AE, OpV AS, OpV AN, OpV AB, OpV AT, CCConst ox, CCConst oy, CCConst oz, C3 e, int g, double gfx, double gfy, double gfz)
template<class OpV, class OV>
void cutcellBuildFaceOpCell (const OpV &AC, const OpV &AFX, const OpV &AFY, const OpV &AFZ, const OV &ox, const OV &oy, const OV &oz, long i, long sx, long sy, long sz, double gfx, double gfy, double gfz, bool diag)
template<class PV, class BV, class OpV>
void cutcellSmoothFaceCell (const PV &phi, const BV &b, const OpV &AC, const OpV &AFX, const OpV &AFY, const OpV &AFZ, long i, long sx, long sy, long sz, long xp, long xm, long yp, long ym, long zp, long zm)
template<class XV, class OpV>
double cutcellApplyFaceCell (const XV &x, const OpV &AC, const OpV &AFX, const OpV &AFY, const OpV &AFZ, long i, long sx, long sy, long sz, long xp, long xm, long yp, long ym, long zp, long zm)
template<class RV, class XV, class BV, class OpV>
void cutcellResidualFaceCell (const RV &r, const XV &x, const BV &b, const OpV &AC, const OpV &AFX, const OpV &AFY, const OpV &AFZ, long i, long sx, long sy, long sz, long xp, long xm, long yp, long ym, long zp, long zm)
template<class OpV>
void buildCutcellOpFace (OpV AC, OpV AFX, OpV AFY, OpV AFZ, CCConst ox, CCConst oy, CCConst oz, C3 e, int gb, double gfx, double gfy, double gfz)
template<class OpV>
void cutcellSmoothColorFace (CCField phi, CCConst b, OpV AC, OpV AFX, OpV AFY, OpV AFZ, C3 e, C3 og, int g, int color)
template<class OpV>
void cutcellSmoothColorBoxFace (CCField phi, CCConst b, OpV AC, OpV AFX, OpV AFY, OpV AFZ, C3 e, C3 og, int color, C3 rlo, C3 rhi, C3 slo, C3 shi, int wrapMask=0, int g=1)
template<class OpV>
void applyCutcellOpFace (CCField y, CCConst x, OpV AC, OpV AFX, OpV AFY, OpV AFZ, C3 e, int g)
template<class OpV>
void applyCutcellOpBoxFace (CCField y, CCConst x, OpV AC, OpV AFX, OpV AFY, OpV AFZ, C3 e, C3 rlo, C3 rhi, C3 slo, C3 shi, int wrapMask=0, int g=1)
void divergOpen (CCConst u, CCConst v, CCConst w, CCConst ox, CCConst oy, CCConst oz, CCField d, C3 e, int g)
template<class OpV>
void cutcellSmoothColor (CCField phi, CCConst b, OpV AC, OpV AW, OpV AE, OpV AS, OpV AN, OpV AB, OpV AT, C3 e, C3 og, int g, int color)
template<class OpV>
void cutcellSmoothColorBox (CCField phi, CCConst b, OpV AC, OpV AW, OpV AE, OpV AS, OpV AN, OpV AB, OpV AT, C3 e, C3 og, int color, C3 rlo, C3 rhi, C3 slo, C3 shi)
template<class OpV>
void applyCutcellOp (CCField y, CCConst x, OpV AC, OpV AW, OpV AE, OpV AS, OpV AN, OpV AB, OpV AT, C3 e, int g)
template<class OpV>
void applyCutcellOpBox (CCField y, CCConst x, OpV AC, OpV AW, OpV AE, OpV AS, OpV AN, OpV AB, OpV AT, C3 e, C3 rlo, C3 rhi, C3 slo, C3 shi)
void applyCutcellOpExact (CCField y, CCConst x, CCConst ox, CCConst oy, CCConst oz, C3 e, int g, double gfx, double gfy, double gfz)
void applyCutcellOpExactBox (CCField y, CCConst x, CCConst ox, CCConst oy, CCConst oz, C3 e, C3 rlo, C3 rhi, C3 slo, C3 shi, double gfx, double gfy, double gfz, int wrapMask=0, int g=1)
void projectCorrect (CCField u, CCField v, CCField w, CCConst phi, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0)
void projectCorrectVar (CCField u, CCField v, CCField w, CCConst phi, CCConst rho, double rho0, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0)
void buildRhoCoeff (CCField cx, CCField cy, CCField cz, CCConst ox, CCConst oy, CCConst oz, CCConst rho, double rho0, C3 e, int g)
void buildRhoCoeffHarm (CCField cx, CCField cy, CCField cz, CCConst ox, CCConst oy, CCConst oz, CCConst rho, double rho0, C3 e, int g)
void buildRhoCoeffOutflowFace (CCField ca, CCConst oa, CCConst rho, double rho0, C3 e, int g, int a, bool harmonic)
void projectCorrectVarHarm (CCField u, CCField v, CCField w, CCConst phi, CCConst rho, double rho0, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0)
void divergOpenEps (CCConst u, CCConst v, CCConst w, CCConst ox, CCConst oy, CCConst oz, CCConst eps, CCField d, C3 e, int g)
void buildPorousCoeff (CCField cx, CCField cy, CCField cz, CCConst ox, CCConst oy, CCConst oz, CCConst eps, C3 e, int g)
void buildPorousCoeffDrag (CCField cx, CCField cy, CCField cz, CCConst ox, CCConst oy, CCConst oz, CCConst eps, CCConst beta, double idt, C3 e, int g)
void buildPorousCoeffCons (CCField cx, CCField cy, CCField cz, CCConst ox, CCConst oy, CCConst oz, CCConst eps, CCConst beta, bool useBeta, double rhoidt, C3 e, int g)
void projectCorrectPorousCons (CCField u, CCField v, CCField w, CCConst phi, CCConst eps, CCConst beta, bool useBeta, double rhoidt, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0)
void projectCorrectPorousDrag (CCField u, CCField v, CCField w, CCConst phi, CCConst beta, double idt, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0)
std::size_t innerToExt (long c, Ext3 ext, int ghost, Ext3 inner)
SumMax localSumMax (DConst f, Ext3 ext, int ghost, Ext3 inner)
 Local sum and max|.| over the inner cells.
double localDot (DConst a, DConst b, Ext3 ext, int ghost, Ext3 inner)
 Local inner product <a,b> over the inner cells.
void subtractAll (DField f, double m)
 Subtract a constant from EVERY cell of the extended block (the mean-removal scatter).
long L3 (int x, int y, int z, I3 e)
template<bool Aniso>
void diffSmoothColorT (SField c, SConst b, I3 e, I3 og, int g, double bx, double by, double bz, double Ac, int color, SConst dcorr)
void diffSmoothColor (SField c, SConst b, I3 e, I3 og, int g, double bx, double by, double bz, double Ac, int color, SConst dcorr, bool aniso)
void diffSmoothColor (SField c, SConst b, I3 e, I3 og, int g, double beta, double Ac, int color, SConst dcorr)
template<bool Aniso>
void diffResidualT (SField r, SConst c, SConst b, I3 e, int g, double bx, double by, double bz, double Ac, SConst dcorr)
template<bool Aniso>
void diffResidualMaxT (SConst c, SConst b, I3 e, int g, double bx, double by, double bz, double Ac, SConst dcorr, int holdAxis, int holdIdx, double &rmax, double &bdmax, double &bmax)
void diffResidualMax (SConst c, SConst b, I3 e, int g, double bx, double by, double bz, double Ac, SConst dcorr, bool aniso, int holdAxis, int holdIdx, double &rmax, double &bdmax, double &bmax)
void diffResidual (SField r, SConst c, SConst b, I3 e, int g, double bx, double by, double bz, double Ac, SConst dcorr, bool aniso)
void diffResidual (SField r, SConst c, SConst b, I3 e, int g, double beta, double Ac, SConst dcorr)
template<bool Aniso>
double diffSmoothColorDuT (SField c, SConst b, I3 e, I3 og, int g, double bx, double by, double bz, double Ac, int color, SConst dcorr)
double diffSmoothColorDu (SField c, SConst b, I3 e, I3 og, int g, double bx, double by, double bz, double Ac, int color, SConst dcorr, bool aniso)
double diffSmoothColorDu (SField c, SConst b, I3 e, I3 og, int g, double beta, double Ac, int color, SConst dcorr)
void poisSmoothColor (SField phi, SConst d, I3 e, I3 og, int g, int color)
void divergence (SConst u, SConst v, SConst w, SField d, I3 e, int g)
void poisSweep (SField phi, SConst d, I3 e, I3 og, int g)
void restrict_ (TField coarse, TConst fine, T3 cext, T3 fext, int g, T3 cinner, T3 ratio)
double trilerp (TConst c, double x, double y, double z, T3 cext)
void prolong (TField fine, TConst coarse, T3 fext, T3 cext, int g, T3 finner, T3 ratio)
void correct (TField u, TField v, TField w, TConst phi, T3 e, int g)
void residualVarPin (CCField r, CCConst x, CCConst b, FPC AC, FPC AW, FPC AE, FPC AS, FPC AN, FPC AB, FPC AT, CCConst pin, C3 e, int g)
void residualVarPinMax (CCConst x, CCConst b, FPC AC, FPC AW, FPC AE, FPC AS, FPC AN, FPC AB, FPC AT, CCConst pin, C3 e, int g, int holdAxis, int holdIdx, double &rmax, double &bdmax, double &bmax)
void prolongMasked (CCField fine, CCConst coarse, CCConst mask, C3 fext, C3 cext, int g, C3 finner, C3 ratio, double eps)
void buildVelocityStaircase (FPV AC, FPV AW, FPV AE, FPV AS, FPV AN, FPV AB, FPV AT, CCConst theta, C3 e, int g, double bx, double by, double bz, double thresh, double idiag)
void pinSolidRows (FPV AC, FPV AW, FPV AE, FPV AS, FPV AN, FPV AB, FPV AT, CCConst theta, C3 e, int g, double thresh)
void buildAdvCoarse (FPV AC, FPV AW, FPV AE, FPV AS, FPV AN, FPV AB, FPV AT, CCConst U, CCConst V, CCConst W, int comp, C3 e, int g, double bx, double by, double bz, double fouw, double sx, double sy, double sz, double idiag)
void buildConstAniso (FPV AC, FPV AW, FPV AE, FPV AS, FPV AN, FPV AB, FPV AT, C3 e, double bx, double by, double bz, double idiag)
void boundaryFold (FPV AC, C3 e, int g, int a, int s, double beta)
void fillBcGhost (CCField x, C3 e, int g, int a, int s, int dirichlet)
void zeroPlane (CCField m, C3 e, int axis, int idx)
void thresholdMask (CCField m, CCConst theta, double thresh)
double maxAbsInner (CCConst a, C3 e, int g)
double maxAbsDiffInner (CCConst a, CCConst b, C3 e, int g)
void mulMask (CCField r, CCConst m)
double bottomShift (int attempt)
BottomPlanes bottomChoosePlanes (C3 inner, const int bc[6])
template<class WV>
VReal fp32Diag (const WV &WX, const WV &WY, const WV &WZ, long i, long sx, long sy, long sz)
template<class XV, class WV>
VReal fp32Flux (const XV &x, const WV &WX, const WV &WY, const WV &WZ, long i, long sx, long sy, long sz, long xp, long xm, long yp, long ym, long zp, long zm)
template<class XV, class BV, class WV>
void fp32SmoothCell (const XV &x, const BV &b, const WV &WX, const WV &WY, const WV &WZ, long i, long sx, long sy, long sz, long xp, long xm, long yp, long ym, long zp, long zm)
template<class RV, class XV, class BV, class WV>
void fp32ResidualCell (const RV &r, const XV &x, const BV &b, const WV &WX, const WV &WY, const WV &WZ, long i, long sx, long sy, long sz, long xp, long xm, long yp, long ym, long zp, long zm)
void cutcellSmoothColorFp32Wrap (VField x, VConst b, VConst WX, VConst WY, VConst WZ, C3 e, C3 n, C3 og, int g, int color)
void residualFp32Wrap (VField r, VConst x, VConst b, VConst WX, VConst WY, VConst WZ, C3 e, C3 n, int g)
void entryFp32 (VField xf, VField rhsf, CCConst rr, VConst WX, VConst WY, VConst WZ, double sigma, C3 e, C3 og, int g, int color, bool smoothFirst)
void restrictFp32ZeroX (VField coarse, VField coarseX, VConst fine, C3 cext, C3 fext, int gc, int gf, C3 cinner, C3 ratio)
void restrictFp32ToDZeroX (CCField coarse, CCField coarseX, VConst fine, C3 cext, C3 fext, int gc, int gf, C3 cinner, C3 ratio)
int fp32ProlongLow (int ratio, int i, int gc)
void prolongFp32 (VField fine, VConst coarse, C3 fext, C3 cext, int gf, int gc, C3 finner, C3 ratio)
void prolongFp32FromD (VField fine, CCConst coarse, C3 fext, C3 cext, int gf, int gc, C3 finner, C3 ratio)
int fp32ProlongParent (int ratio, int i, int gc)
void prolongConstFp32 (VField fine, VConst coarse, C3 fext, C3 cext, int gf, int gc, C3 finner, C3 ratio)
void prolongConstFp32FromD (VField fine, CCConst coarse, C3 fext, C3 cext, int gf, int gc, C3 finner, C3 ratio)
void cutcellSmoothColorFp32Box (VField x, VConst b, VConst WX, VConst WY, VConst WZ, C3 e, C3 og, int color, C3 lo, C3 hi, C3 exLo, C3 exHi, int wrapMask=0, int g=1)
void residualFp32Box (VField r, VConst x, VConst b, VConst WX, VConst WY, VConst WZ, C3 e, C3 lo, C3 hi, C3 exLo, C3 exHi, int wrapMask=0, int g=1)
void fp32ToDouble (CCField d, VConst f, C3 e)
void fp32AddDouble (VField f, CCConst d, C3 e, int g)
void lineAxesOf (int s, int &a, int &b)
template<class Row, class Store>
void lineColumnSolve (const Row &R, Store &S, long i0, int m, int l3[3], C3 n, int g, int wrapMask, bool periodic)
template<class Row, class SV>
void lineColumn (const Row &R, const SV &c, const SV &y, const SV &z, int la, int lb, C3 n, int g, int wrapMask, bool periodic)
template<class Row, class SV>
void lineRelaxColor (const Row &R, const SV &c, const SV &y, const SV &z, C3 e, C3 og, int g, int wrapMask, bool periodic, int color, const char *name, const char *serialName)
template<class OpV>
void lineRelaxColorFace (CCField x, CCConst b, OpV AC, OpV AFX, OpV AFY, OpV AFZ, CCField c, CCField y, CCField z, C3 e, C3 og, int g, int s, bool periodic, int wrapMask, int color)
void lineRelaxColorFp32 (VField x, VConst b, VConst WX, VConst WY, VConst WZ, VField c, VField y, VField z, C3 e, C3 og, int g, int s, bool periodic, int wrapMask, int color)
void applyClosure (const Closure &cl, C3 e, int g)
void applyClosureFaceGhost (const Closure &cl, C3 e, int g, int a, int side)
template<class State>
void residentKrylov (State &st, ScalarKrylovOps &ops)
 Arm ops for the resident pass with the persistent slots of st (ks, pk, allocated once).
template<class Ops>
ScalarKrylovResult scalarBiCGStab (Ops &ops, const ScalarVec &b, const ScalarVec &x, const ScalarVec &r, const ScalarVec &rh, const ScalarVec &p, const ScalarVec &v, const ScalarVec &t, const ScalarVec &z, const ScalarVec &z2, int maxit, double rtol, bool singular)
 BiCGStab on A x = b.
void scalarBuildDiffusionVarK (CCField AC, CCField AW, CCField AE, CCField AS, CCField AN, CCField AB, CCField AT, CCConst ox, CCConst oy, CCConst oz, CCConst kc, CCConst rcp, CCConst mask, double idt, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0)
void scalarBuildRhsHeat (CCField b, CCConst cOld, CCConst rcp, double idt, C3 e, int g)
void scalarMaskStencil (CCField AC, CCField AW, CCField AE, CCField AS, CCField AN, CCField AB, CCField AT, CCConst mask, C3 e, int g)
void scalarMaskRhs (CCField b, CCField c, CCConst mask, CCConst val, C3 e, int g)
void scalarMaskGfm (CCField AC, CCField AW, CCField AE, CCField AS, CCField AN, CCField AB, CCField AT, CCField gfmB, CCConst ox, CCConst oy, CCConst oz, CCConst mask, CCConst tgam, CCConst gnx, CCConst gny, CCConst gnz, CCConst gphi, CCConst kc, double Dconst, bool useK, double thMin, double thMax, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0, vof::VofMetric gm=vof::VofMetric{})
void scalarMaskGfm2 (CCField AC, CCField AW, CCField AE, CCField AS, CCField AN, CCField AB, CCField AT, CCField gfmB, CCConst ox, CCConst oy, CCConst oz, CCConst mask, CCConst tgam, CCConst gnx, CCConst gny, CCConst gnz, CCConst gphi, CCConst kap, CCConst kc, double Dconst, bool useK, double thMin, double thMax, int order, bool useKappa, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0, vof::VofMetric gm=vof::VofMetric{})
void scalarAddGfmRhs (CCField b, CCConst gfmB, CCConst mask, C3 e, int g)
void scalarBuildDiffusionOpen (CCField AC, CCField AW, CCField AE, CCField AS, CCField AN, CCField AB, CCField AT, CCConst ox, CCConst oy, CCConst oz, double D, double idt, C3 e, int g, double wx=1.0, double wy=1.0, double wz=1.0)
void scalarBuildRhs (CCField b, CCConst cOld, CCConst U, CCConst V, CCConst W, CCConst ox, CCConst oy, CCConst oz, double idt, int scheme, C3 e, int g)
StarOverlay starMakeOverlay (long n)
double starAval (const StarOverlay &ov, long k, bool exact)
 One stored aperture, at the precision the gate selects.
int starWrap (int v, int n)
int buildStarOverlay (CCConst sdf, CCConst ox, CCConst oy, CCConst oz, C3 ext, int g, C3 nn, const StarOverlay &ov, Kokkos::View< int, CCMem > counter)
 Count + fill the star overlay from the cell-centered sdf and the ORIGINAL (unfiltered) apertures on the extended block (ext, ghost width g); nn = inner extents.
void starApplyDelta (CCField y, CCConst x, const StarOverlay &ov, int nOv, C3 nn, C3 extY, int gY, C3 extX, int gX, bool exact)
 y += S_star x over the inner cells of the (extY, gY) block, x read from the (extX, gX) block, both periodic via inner-grid wrap.
void starCorrectFaces (CCField uf, CCField vf, CCField wf, CCConst phi, const StarOverlay &ov, int nOv, C3 nn, C3 ext, int g, C3 extP, int gP, bool exact, double wx=1.0, double wy=1.0, double wz=1.0)
 Fix the face correction at fluid|solid faces: projectCorrect applied -(phi_hi - phi_lo) with the solid side's (decoupled) phi = 0; the mode-B correction wants the solid value phibar_s.

Variables

constexpr const char * kVofMomBlocksMsg
 enable_vof_momentum x enable_vof_blocks*: refused in EITHER call order.
constexpr const char * gpStateName [5] = {"COUPLED", "QUAD", "LIN", "BC_ONLY", "EXPLICIT"}
 Face-state names, indexed by GpOverlayT::state (GP_COUPLED .. GP_EXPLICIT).
constexpr long kHostSerialCellCutoff = 8192L
constexpr long kShellRunCells = 8L
constexpr long kBottomMaxCells = 8192
constexpr int kAutoMinLevels = 4
constexpr int kAutoMaxLevels = 30
constexpr bool kAnchoredFollowsGrid = false
constexpr double kBottomTau = 1e-5
constexpr int kBottomMaxComponents = 64
constexpr int kBottomCap = 100
constexpr int kBottomHostTeam = 1
constexpr int kBottomHostFactorTeam = 6
constexpr int kCaDefault = std::is_same_v<CCMem, Kokkos::HostSpace> ? kCaBoth : 0
constexpr int kBottomMaxPlane = 192
constexpr int kBottomTile = 16
constexpr double kBottomPivotTol = 1e-6
constexpr int kBottomAttempts = 3
constexpr int kLineRegs = 64

Typedef Documentation

◆ IMem

using peclet::flow::IMem = Kokkos::DefaultExecutionSpace::memory_space

Definition at line 30 of file cut_cell_ibm.hpp.

◆ IbmOverlayReal

template<class Real>
using peclet::flow::IbmOverlayReal = IbmOverlayT<IMem, Real>

Definition at line 154 of file cut_cell_ibm.hpp.

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

◆ RegMask

using peclet::flow::RegMask = Kokkos::View<std::uint8_t*, CCMem>

Per-component regular-node mask (§5.4): 1 = a velocity node with neither a solid nor a cut row.

Read only on the solid path (kSolid).

Definition at line 36 of file full_stress.hpp.

◆ RegConst

using peclet::flow::RegConst = Kokkos::View<const std::uint8_t*, CCMem>

Definition at line 37 of file full_stress.hpp.

◆ GpOverlayReal

template<class Real>
using peclet::flow::GpOverlayReal = GpOverlayT<CCMem, Real>

Definition at line 111 of file ghost_projection.hpp.

◆ GpOverlay

Definition at line 112 of file ghost_projection.hpp.

◆ GpOverlayHost

template<class Real>
using peclet::flow::GpOverlayHost = GpOverlayT<Kokkos::HostSpace, Real>

The report's host view of an overlay: the first nRows rows of every array it reads (w_bc is not read and stays empty).

One copy out of device memory per array.

Definition at line 62 of file ghost_projection_debug.hpp.

◆ MConst

typedef Kokkos::View< const float *, CCMem > peclet::flow::MConst = Kokkos::View<const float*, CCMem>

Definition at line 24 of file mac_approx_projection.hpp.

◆ BExec

using peclet::flow::BExec = Kokkos::DefaultExecutionSpace

Definition at line 19 of file mac_bc.hpp.

◆ BMem

using peclet::flow::BMem = BExec::memory_space

Definition at line 20 of file mac_bc.hpp.

◆ BField

using peclet::flow::BField = Kokkos::View<double*, BMem>

Definition at line 21 of file mac_bc.hpp.

◆ CCExec

using peclet::flow::CCExec = Kokkos::DefaultExecutionSpace

Definition at line 24 of file mac_cutcell.hpp.

◆ CCMem

using peclet::flow::CCMem = CCExec::memory_space

Definition at line 25 of file mac_cutcell.hpp.

◆ CCField

using peclet::flow::CCField = Kokkos::View<double*, CCMem>

Definition at line 26 of file mac_cutcell.hpp.

◆ CCConst

using peclet::flow::CCConst = Kokkos::View<const double*, CCMem>

Definition at line 27 of file mac_cutcell.hpp.

◆ MReal

using peclet::flow::MReal = float

Definition at line 82 of file mac_cutcell_mg.hpp.

◆ FPV

using peclet::flow::FPV = Kokkos::View<MReal*, CCMem>

Definition at line 84 of file mac_cutcell_mg.hpp.

◆ FPC

using peclet::flow::FPC = Kokkos::View<const MReal*, CCMem>

Definition at line 85 of file mac_cutcell_mg.hpp.

◆ VReal

using peclet::flow::VReal = float

Definition at line 87 of file mac_cutcell_mg.hpp.

◆ mreal

Definition at line 24 of file mac_ibm.hpp.

◆ IbmOverlay

Definition at line 33 of file mac_ibm.hpp.

◆ GpOverlayMReal

Definition at line 38 of file mac_ibm.hpp.

◆ Exec

using peclet::flow::Exec = Kokkos::DefaultExecutionSpace

Definition at line 18 of file mac_reductions.hpp.

◆ Mem

using peclet::flow::Mem = Exec::memory_space

Definition at line 19 of file mac_reductions.hpp.

◆ DField

using peclet::flow::DField = Kokkos::View<double*, Mem>

Definition at line 20 of file mac_reductions.hpp.

◆ DConst

using peclet::flow::DConst = Kokkos::View<const double*, Mem>

Definition at line 21 of file mac_reductions.hpp.

◆ SExec

using peclet::flow::SExec = Kokkos::DefaultExecutionSpace

Definition at line 21 of file mac_stencils.hpp.

◆ SMem

using peclet::flow::SMem = SExec::memory_space

Definition at line 22 of file mac_stencils.hpp.

◆ SField

using peclet::flow::SField = Kokkos::View<double*, SMem>

Definition at line 23 of file mac_stencils.hpp.

◆ SConst

using peclet::flow::SConst = Kokkos::View<const double*, SMem>

Definition at line 24 of file mac_stencils.hpp.

◆ TExec

using peclet::flow::TExec = Kokkos::DefaultExecutionSpace

Definition at line 18 of file mac_transfer.hpp.

◆ TMem

using peclet::flow::TMem = TExec::memory_space

Definition at line 19 of file mac_transfer.hpp.

◆ TField

using peclet::flow::TField = Kokkos::View<double*, TMem>

Definition at line 20 of file mac_transfer.hpp.

◆ TConst

using peclet::flow::TConst = Kokkos::View<const double*, TMem>

Definition at line 21 of file mac_transfer.hpp.

◆ VField

using peclet::flow::VField = Kokkos::View<VReal*, CCMem>

Definition at line 15 of file mg_fp32_vcycle.hpp.

◆ VConst

using peclet::flow::VConst = Kokkos::View<const VReal*, CCMem>

Definition at line 16 of file mg_fp32_vcycle.hpp.

◆ MDRange2

template<class Exec>
using peclet::flow::MDRange2
Initial value:
Kokkos::MDRangePolicy<Exec, Kokkos::Rank<2, Kokkos::Iterate::Left, Kokkos::Iterate::Left>>

2-D range, first index fastest (both the tile order and the order within a tile).

Definition at line 31 of file policy.hpp.

◆ MDRange3

template<class Exec>
using peclet::flow::MDRange3
Initial value:
Kokkos::MDRangePolicy<Exec, Kokkos::Rank<3, Kokkos::Iterate::Left, Kokkos::Iterate::Left>>

3-D range, x (the first index) fastest (both the tile order and the order within a tile).

Definition at line 36 of file policy.hpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kOpFp64None 
kOpFp64Diag 
kOpFp64Full 

Definition at line 610 of file mac_cutcell_mg.hpp.

◆ anonymous enum

anonymous enum : int
Enumerator
kCaMomentum 
kCaMg 
kCaBoth 

Definition at line 1088 of file mac_cutcell_mg.hpp.

◆ ClosureKind

enum class peclet::flow::ClosureKind
strong
Enumerator
LinearMix 
BoussinesqForce 
ArrheniusMu 
Table1D 

Definition at line 28 of file property_closures.hpp.

◆ ScalarBc

enum class peclet::flow::ScalarBc
strong
Enumerator
Periodic 
Neumann 
Dirichlet 

Definition at line 36 of file scalar_transport.hpp.

Function Documentation

◆ buildFaceAccelVar()

void peclet::flow::buildFaceAccelVar ( CCField af,
CCConst P,
CCConst rho,
CCConst fb,
bool haveFb,
bool haveRho,
double rhoC,
double fc,
bool incr,
double scale,
long s,
C3 e,
int g,
double wa = 1.0 )
inline

Definition at line 73 of file collocated_varrho.hpp.

Referenced by peclet::flow::Solver< Grid >::buildRhsColoVar().

◆ addFaceAccelCsf()

void peclet::flow::addFaceAccelCsf ( CCField af,
CCConst cv,
CCConst kp,
CCConst kb,
CCConst rho,
bool haveRho,
double rhoC,
double sigma,
double hGrad,
double scale,
long s,
C3 e,
int g )
inline

◆ centerToFaceMassWeighted()

void peclet::flow::centerToFaceMassWeighted ( CCField uf,
CCField vf,
CCField wf,
CCConst U,
CCConst V,
CCConst W,
CCConst rho,
C3 e,
int g )
inline

◆ correctCellFaceAverageVar()

void peclet::flow::correctCellFaceAverageVar ( CCField u,
CCConst phi,
CCConst rho,
CCConst o,
bool haveRho,
double rho0,
long s,
C3 e,
int g,
double wa = 1.0 )
inline

Definition at line 149 of file collocated_varrho.hpp.

References peclet::flow::varrho::cellFromFaces().

◆ poly_D()

template<class Real>
Real peclet::flow::poly_D ( Real xi)

Definition at line 34 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry(), and poly_D_slip().

◆ poly_N_nb()

template<class Real>
Real peclet::flow::poly_N_nb ( Real xi)

Definition at line 38 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry(), and poly_N_nb_slip().

◆ poly_Nc()

template<class Real>
Real peclet::flow::poly_Nc ( Real xi)

Definition at line 42 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry(), and poly_Nc_slip().

◆ poly_Nbc()

template<class Real>
Real peclet::flow::poly_Nbc ( Real )

Definition at line 46 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_D_avg()

template<class Real>
Real peclet::flow::poly_D_avg ( Real xi)

Definition at line 50 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_Nnb_avg()

template<class Real>
Real peclet::flow::poly_Nnb_avg ( Real xi)

Definition at line 54 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_Nc_avg()

template<class Real>
Real peclet::flow::poly_Nc_avg ( Real xi)

Definition at line 58 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_Nbc_avg()

template<class Real>
Real peclet::flow::poly_Nbc_avg ( Real )

Definition at line 62 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_D_slip()

template<class Real>
Real peclet::flow::poly_D_slip ( Real xi,
Real lam )

Definition at line 93 of file cut_cell_ibm.hpp.

References poly_D().

Referenced by ibmFillEntry().

◆ poly_N_nb_slip()

template<class Real>
Real peclet::flow::poly_N_nb_slip ( Real xi,
Real lam )

Definition at line 97 of file cut_cell_ibm.hpp.

References poly_N_nb().

Referenced by ibmFillEntry().

◆ poly_Nc_slip()

template<class Real>
Real peclet::flow::poly_Nc_slip ( Real xi,
Real lam )

Definition at line 101 of file cut_cell_ibm.hpp.

References poly_Nc().

Referenced by ibmFillEntry().

◆ poly_D_sandwich()

template<class Real>
Real peclet::flow::poly_D_sandwich ( Real xi_m,
Real xi_p )

Definition at line 106 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_N_c_sandwich()

template<class Real>
Real peclet::flow::poly_N_c_sandwich ( Real xi_m,
Real xi_p )

Definition at line 110 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_Nbc_pp_sw()

template<class Real>
Real peclet::flow::poly_Nbc_pp_sw ( Real xi_m,
Real xi_p )

Definition at line 114 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_Nbc_mp_sw()

template<class Real>
Real peclet::flow::poly_Nbc_mp_sw ( Real xi_m,
Real xi_p )

Definition at line 118 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_D_sandwich_avg()

template<class Real>
Real peclet::flow::poly_D_sandwich_avg ( Real xi_m,
Real xi_p )

Definition at line 122 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_N_c_sandwich_avg()

template<class Real>
Real peclet::flow::poly_N_c_sandwich_avg ( Real xi_m,
Real xi_p )

Definition at line 126 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_Nbc_pp_sw_avg()

template<class Real>
Real peclet::flow::poly_Nbc_pp_sw_avg ( Real xi_m,
Real xi_p )

Definition at line 130 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ poly_Nbc_mp_sw_avg()

template<class Real>
Real peclet::flow::poly_Nbc_mp_sw_avg ( Real xi_m,
Real xi_p )

Definition at line 134 of file cut_cell_ibm.hpp.

Referenced by ibmFillEntry().

◆ ibmFillEntry() [1/2]

template<int SCHEME, class OV>
void peclet::flow::ibmFillEntry ( const OV & o,
int list_idx,
int c_idx,
typename OV::value_type sdf_c,
const typename OV::value_type sdf_n[6],
int bc_type,
const typename OV::value_type * thEx,
const typename OV::value_type * lamAxis = nullptr,
int * sandwichSkipped = nullptr )

◆ ibmFillEntry() [2/2]

template<int SCHEME, class OV>
void peclet::flow::ibmFillEntry ( const OV & o,
int list_idx,
int c_idx,
typename OV::value_type sdf_c,
const typename OV::value_type sdf_n[6],
int bc_type )

Definition at line 312 of file cut_cell_ibm.hpp.

References ibmFillEntry().

◆ ibmBuildDiffusion() [1/2]

template<class MV>
void peclet::flow::ibmBuildDiffusion ( MV AC,
MV AW,
MV AE,
MV AS,
MV AN,
MV AB,
MV AT,
int ex,
int ey,
int ez,
double bx,
double by,
double bz,
double idiag )
inline

◆ ibmBuildDiffusion() [2/2]

template<class MV>
void peclet::flow::ibmBuildDiffusion ( MV AC,
MV AW,
MV AE,
MV AS,
MV AN,
MV AB,
MV AT,
int ex,
int ey,
int ez,
double beta,
double idiag )
inline

Definition at line 350 of file cut_cell_ibm.hpp.

References AC, and ibmBuildDiffusion().

◆ ibmBuildDiffusionVar()

template<class FaceProps, class MV>
void peclet::flow::ibmBuildDiffusionVar ( MV AC,
MV AW,
MV AE,
MV AS,
MV AN,
MV AB,
MV AT,
int ex,
int ey,
int ez,
int g,
FaceProps fp,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

◆ ibmModifyStencil()

template<class MV, class OV>
void peclet::flow::ibmModifyStencil ( MV AC,
MV AW,
MV AE,
MV AS,
MV AN,
MV AB,
MV AT,
Kokkos::View< double *, IMem > a_inhom,
Kokkos::View< double *, IMem > rhs_scale,
const OV & ibm,
int numActive,
typename OV::value_type u_bc_val,
Kokkos::View< const double *, IMem > u_bc = Kokkos::View<const double*, IMem>() )
inline

◆ gpDecouplePockets()

void peclet::flow::gpDecouplePockets ( std::vector< double > & work,
int nx,
int ny,
int nz,
bool verbose )
inline

Definition at line 633 of file flow_ibm_geometry.hpp.

◆ addFullStressRhs()

template<class FaceProps, bool kSolid>
void peclet::flow::addFullStressRhs ( int c,
CCField bb,
CCConst rs,
const CCConst(&) v[3],
FaceProps fp,
C3 e,
int g,
double wc,
bool skipLoC,
const RegConst(&) reg[3] = {RegConst(), RegConst(), RegConst()} )
inline

Add rs_c · T_c(uⁿ) to the momentum RHS bb of component c over the inner cells [g, e−g)³.

v[3] the time-base velocity uⁿ (index units), ghosts filled incl. the (a, c) edges; fp the component-c face props (makeFaceProps(c)), μ ghosts filled incl. edges; wc the metric weight of axis c (1.0 exactly on the isotropic path); skipLoC rows at coordinate g along c are BC-imposed (low face of a non-periodic global c-face on this rank): they receive nothing (§5.5); reg[3] (kSolid only) the regular-node masks, ghosts filled: an element is included iff every velocity node it touches is regular; a non-regular row receives nothing.

Definition at line 49 of file full_stress.hpp.

Referenced by peclet::flow::Solver< Grid >::addFullStressRhsComp(), evalSharp(), and evalT().

◆ muRangeInner()

void peclet::flow::muRangeInner ( CCConst mu,
C3 e,
int g,
double & lo,
double & hi )
inline

The local min and max of mu over [g−1, e−g+1)³ — the inner cells plus the one ghost ring the transpose term reads (§4.3 step 2).

One instance-scoped reduction; the caller reduces across ranks and compares exactly.

Definition at line 97 of file full_stress.hpp.

Referenced by peclet::flow::Solver< Grid >::fullStressPrelude().

◆ gpCenterGrad()

void peclet::flow::gpCenterGrad ( CCField out,
CCConst p,
CCConst sdf,
int axis,
C3 e,
int g,
double wa = 1.0 )
inline

Directional cell-center gradient (collocated ghost path) of a cell field p whose solid-centered rows are DECOUPLED (hold 0): central difference where both axis neighbours are fluid-centered; 2nd-order one-sided toward the fluid where a neighbour center is solid ((-3p_i + 4p_{i+1} - p_{i+2})/2, falling back to the 2-point one-sided when the +/-2 cell is solid too); 0 when sandwiched.

Never reads a solid cell's value — reading the decoupled 0 is a GAUGE-DEPENDENT O(1) gradient error (measured in tests/study/ghost_collocated_apriori.py [C2]: the mode-0 central difference grows O(1/h) at cut cells, the openness-weighted kernels are O(1)/O(h); this operator is O(h^2) and exactly gauge-invariant). Serves both the incremental -grad(P^n) predictor and the projection's cell correction. The sdf must be the PROJECTION's view (the fragmentation-guarded sdfGp), so pocket cells whose phi rows are decoupled are not read either. PHASE 2 (doc/anisotropic_metric.md §3/§6.5): wa is the per-axis pressure weight w_axis = 1/h_axis'^2, applied to the OUTPUT. The directional closure itself classifies by the SIGN of the SDF and interpolates by theta, so no metric reaches inside it; the weight is the whole of it, and the SAME kernel supplies both the -grad(P^n) predictor and the projection's cell correction, so neither call site scales it again. 1.0 on the isotropic path (exact).

Definition at line 35 of file gauge_exact_gradient.hpp.

Referenced by peclet::flow::Solver< Grid >::buildRhs(), and peclet::flow::Solver< Grid >::buildRhsForced().

◆ gpMakeOverlay()

◆ gpWrap()

int peclet::flow::gpWrap ( int v,
int n )

Definition at line 130 of file ghost_projection.hpp.

Referenced by buildGpOverlay(), gpApplyDelta(), and gpDivergDelta().

◆ buildGpOverlay()

template<class Real>
int peclet::flow::buildGpOverlay ( CCConst sdf,
C3 ext,
int g,
C3 nn,
const GpOverlayReal< Real > & ov,
Kokkos::View< int *, CCMem > idMap,
Kokkos::View< int, CCMem > counter,
int matrixOrder = 2,
int rhsOrder = 2,
CCConst tx = CCConst(),
CCConst ty = CCConst(),
CCConst tz = CCConst(),
bool useGhost = false )
inline

Build the overlay over the inner grid nn from the cell-centered sdf on the extended block (ext, ghost width g).

Neighbor access: single-rank wraps periodically over the inner grid (so the +/-2 reach never depends on g); useGhost (distributed) reads straight offsets into the exchanged halo instead — requires g >= 2 and current sdf ghosts. The MDRange covers this rank's inner cells only, which IS the gp-row ownership under MPI. Overlay arrays must be sized for the worst case; returns the row count. idMap (size nn.x*nn.y*nn.z) gets slot or -1. (Exact crossings tx/ty/tz are inner-sized with wrap access — single-rank only, not lifted.)

Definition at line 143 of file ghost_projection.hpp.

References peclet::flow::GpOverlayT< Space, Real >::cell, peclet::flow::GpOverlayT< Space, Real >::coupled, F, gpWrap(), peclet::flow::GpOverlayT< Space, Real >::rescale, peclet::flow::GpOverlayT< Space, Real >::state, peclet::flow::GpOverlayT< Space, Real >::th, peclet::flow::GpOverlayT< Space, Real >::w_bc, peclet::flow::GpOverlayT< Space, Real >::w_n1, peclet::flow::GpOverlayT< Space, Real >::w_n2, peclet::flow::GpOverlayT< Space, Real >::wm_n1, peclet::flow::GpOverlayT< Space, Real >::wm_n2, peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

◆ gpBinaryOpenness()

void peclet::flow::gpBinaryOpenness ( CCField ox,
CCField oy,
CCField oz,
CCConst sdf,
C3 ext )
inline

Binary openness for the symmetric MG surrogate, on the extended-block layout of buildOpenness: o(face) = 1 iff the face point is fluid AND both adjacent cell centers are fluid, else 0.

buildCutcellOp on this field gives exactly the COUPLED part of the ghost operator; the whole CutcellMG hierarchy (coarsening, smoothing, GraphAMG bottom) runs on it unchanged.

Definition at line 232 of file ghost_projection.hpp.

References peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

◆ gpApplyDelta()

template<class Real>
void peclet::flow::gpApplyDelta ( CCField y,
CCConst x,
const GpOverlayReal< Real > & ov,
int nOv,
C3 nn,
C3 extY,
int gbY,
C3 extX,
int gbX,
bool useGhost = false )
inline

Overlay matvec correction: y(r) = rho_r * (y(r) + closure-face phi terms), where y currently holds the binary-openness (COUPLED-part) matvec.

y lives on the (extY, gbY) block, x on the (extX, gbX) block — identical single-rank (both the g=1 MG block), but distributed the +/-2 couplings need a g=2 halo, so x is the caller's staged g=2 copy while y stays on the MG block. Neighbor access: single-rank wraps over the inner grid nn; useGhost reads straight offsets into x's exchanged halo (requires gbX >= 2). Face at relative index m couples cells (i+m-1, i+m); the div coefficient c = sgn*w contributes A x += -c*x(i+m) + c*x(i+m-1) => delta = sgn*w*(x_cm - x_cp). Distinct rows per thread: no atomics.

Definition at line 261 of file ghost_projection.hpp.

References peclet::flow::GpOverlayT< Space, Real >::cell, peclet::flow::GpOverlayT< Space, Real >::coupled, gpWrap(), peclet::flow::GpOverlayT< Space, Real >::rescale, peclet::flow::GpOverlayT< Space, Real >::state, peclet::flow::GpOverlayT< Space, Real >::wm_n1, peclet::flow::GpOverlayT< Space, Real >::wm_n2, peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

Referenced by peclet::flow::CutcellMG::gpMatvec().

◆ gpDivergDelta()

template<class Real>
void peclet::flow::gpDivergDelta ( CCField d,
CCConst u,
CCConst v,
CCConst w,
const GpOverlayReal< Real > & ov,
int nOv,
C3 nn,
C3 extb,
int gb,
bool useGhost = false )
inline

Overlay divergence correction: d(r) = rho_r * (d(r) + closure/BC/explicit face values), where d currently holds the binary-openness divergence (divergOpen on the binary fields: COUPLED faces only).

u/v/w and d live on the solver block (extents extb, ghost width gb). u_bc = 0 (v1 stationary walls). Neighbor access: single-rank wraps over the inner grid nn; useGhost (distributed) reads straight offsets into the exchanged velocity halo (reach -1..+2, gb >= 2). Rows with no phi coupling are zeroed (decoupled). Used identically for the RHS div(u*) and the post-correction diagnostic — the diagnostic IS the residual.

Definition at line 308 of file ghost_projection.hpp.

References peclet::flow::GpOverlayT< Space, Real >::cell, peclet::flow::GpOverlayT< Space, Real >::coupled, gpWrap(), peclet::flow::GpOverlayT< Space, Real >::rescale, peclet::flow::GpOverlayT< Space, Real >::state, U, val(), peclet::flow::GpOverlayT< Space, Real >::w_n1, peclet::flow::GpOverlayT< Space, Real >::w_n2, peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

Referenced by peclet::flow::Solver< Grid >::maxOpenDivergenceInternal(), and peclet::flow::Solver< Grid >::projectAssembleDivergence().

◆ gpDebugLevel()

int peclet::flow::gpDebugLevel ( )
inline

0 = off (default). Read once per call; cheap enough, and keeps the flag hot-swappable in tests.

Definition at line 51 of file ghost_projection_debug.hpp.

Referenced by gpDebugReport().

◆ gpOverlayRowsToHost()

◆ gpRowFaceCensus()

template<class Real>
float peclet::flow::gpRowFaceCensus ( const GpOverlayHost< Real > & h,
int s,
GpRowCensus & c )
inline

Face census of row s into c; returns the row's max |closure weight|.

Definition at line 101 of file ghost_projection_debug.hpp.

Referenced by gpRowCensus().

◆ gpRowCensus()

template<class Real>
GpRowCensus peclet::flow::gpRowCensus ( const GpOverlayHost< Real > & h,
int nRows )
inline

Definition at line 126 of file ghost_projection_debug.hpp.

References gpRowFaceCensus().

Referenced by gpDebugReport().

◆ gpRhoMismatch()

template<class Real>
GpRhoMismatch peclet::flow::gpRhoMismatch ( const GpOverlayHost< Real > & h,
int nRows,
C3 nn,
Kokkos::View< int *, Kokkos::HostSpace > hId )
inline

◆ gpPrintCensus()

void peclet::flow::gpPrintCensus ( int rank,
int nRows,
long nInner,
const GpRowCensus & c,
const GpRhoMismatch & m )
inline

Definition at line 187 of file ghost_projection_debug.hpp.

References gpStateName.

Referenced by gpDebugReport().

◆ gpPrintWorstRows()

template<class Real>
void peclet::flow::gpPrintWorstRows ( const GpOverlayHost< Real > & h,
int nRows,
C3 nn,
const GpRowCensus & c,
const GpRhoMismatch & m )
inline

The 20 worst rows by rho, with their full face anatomy.

Definition at line 213 of file ghost_projection_debug.hpp.

References gpStateName, peclet::flow::C3::x, and peclet::flow::C3::y.

Referenced by gpDebugReport().

◆ gpDumpRows()

template<class Real>
void peclet::flow::gpDumpRows ( const GpOverlayHost< Real > & h,
int nRows,
C3 nn,
int rank )
inline

PECLET_FLOW_GP_DEBUG=2: every overlay row to <PECLET_FLOW_GP_DEBUG_FILE>_rank<r>.bin (record layout in the file header).

Definition at line 238 of file ghost_projection_debug.hpp.

References peclet::flow::C3::x, and peclet::flow::C3::y.

Referenced by gpDebugReport().

◆ gpDebugReport()

template<class Real>
void peclet::flow::gpDebugReport ( const GpOverlayReal< Real > & ov,
int nRows,
C3 nn,
Kokkos::View< int *, CCMem > idMap,
int rank = 0 )
inline

Census + optional per-row dump of the built overlay.

nn is the inner grid, nRows the row count returned by buildGpOverlay, idMap the inner-cell -> row map (-1 = no row). rank only labels the output. Host-side; copies the overlay out of device memory once.

Definition at line 281 of file ghost_projection_debug.hpp.

References gpDebugLevel(), gpDumpRows(), gpOverlayRowsToHost(), gpPrintCensus(), gpPrintWorstRows(), gpRhoMismatch(), gpRowCensus(), peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

◆ centerToFace()

void peclet::flow::centerToFace ( CCField uf,
CCField vf,
CCField wf,
CCConst U,
CCConst V,
CCConst W,
C3 e,
int g )
inline

◆ wallAwareFaceStencil()

int peclet::flow::wallAwareFaceStencil ( CCConst sdf,
long i,
long sa,
int cFace,
int eAxis,
double xcen,
long idx[3],
double w[3] )

Definition at line 69 of file mac_approx_projection.hpp.

Referenced by transposeGradWallAware(), and wallAwareFaceValue().

◆ wallAwareFaceValue()

double peclet::flow::wallAwareFaceValue ( CCConst U,
CCConst sdf,
long i,
long sa,
int cFace,
int eAxis,
double xcen )

Definition at line 127 of file mac_approx_projection.hpp.

References U, and wallAwareFaceStencil().

Referenced by centerToFaceWallAware().

◆ buildFaceCentroidDist()

void peclet::flow::buildFaceCentroidDist ( CCField xcx,
CCField xcy,
CCField xcz,
CCConst sdf,
C3 e )
inline

◆ centerToFaceWallAware()

void peclet::flow::centerToFaceWallAware ( CCField uf,
CCField vf,
CCField wf,
CCConst U,
CCConst V,
CCConst W,
CCConst sdf,
CCConst xcx,
CCConst xcy,
CCConst xcz,
bool useCen,
C3 e,
int g )
inline

◆ transposeGradWallAware()

void peclet::flow::transposeGradWallAware ( CCField out,
CCConst p,
CCConst sdf,
CCConst o,
CCConst xc,
bool useCen,
int axis,
C3 e,
int g,
double wa = 1.0 )
inline

◆ buildCellFraction()

void peclet::flow::buildCellFraction ( CCField cs,
CCConst sdf,
C3 e,
int g )
inline

◆ eQuad()

double peclet::flow::eQuad ( double xx,
double a1,
double a2,
double a3 )

Definition at line 307 of file mac_approx_projection.hpp.

Referenced by embedDirichletGradient().

◆ embedDirichletGradient()

double peclet::flow::embedDirichletGradient ( CCConst U,
CCConst sdf,
C3 e,
int x,
int y,
int z,
double nx,
double ny,
double nz,
double px,
double py,
double pz )

Definition at line 330 of file mac_approx_projection.hpp.

References eQuad(), and U.

Referenced by embedViscousApply().

◆ embedViscousApply()

void peclet::flow::embedViscousApply ( CCField Lu,
CCConst U,
CCConst sdf,
CCConst cs,
CCConst ox,
CCConst oy,
CCConst oz,
double mu,
double idt,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0,
double hpx = 1.0,
double hpy = 1.0,
double hpz = 1.0 )
inline

Definition at line 433 of file mac_approx_projection.hpp.

References embedDirichletGradient(), and U.

Referenced by peclet::flow::Solver< Grid >::buildRhs().

◆ stencilMatvec()

template<class MC>
void peclet::flow::stencilMatvec ( CCField y,
CCConst u,
MC AC,
MC AW,
MC AE,
MC AS,
MC AN,
MC AB,
MC AT,
C3 e,
int g )
inline

Definition at line 482 of file mac_approx_projection.hpp.

References AC.

Referenced by peclet::flow::Solver< Grid >::buildRhs().

◆ subtractField()

void peclet::flow::subtractField ( CCField u,
CCConst d,
C3 e,
int g )
inline

Definition at line 499 of file mac_approx_projection.hpp.

◆ centerGradOpen()

void peclet::flow::centerGradOpen ( CCField out,
CCConst p,
CCConst o,
int axis,
C3 e,
int g,
double wa = 1.0 )
inline

Definition at line 518 of file mac_approx_projection.hpp.

Referenced by peclet::flow::Solver< Grid >::buildRhs().

◆ projectCorrectCenterOpen()

void peclet::flow::projectCorrectCenterOpen ( CCField u,
CCField v,
CCField w,
CCConst phi,
CCConst ox,
CCConst oy,
CCConst oz,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

Definition at line 536 of file mac_approx_projection.hpp.

◆ projectCorrectCenter()

void peclet::flow::projectCorrectCenter ( CCField u,
CCField v,
CCField w,
CCConst phi,
CCConst ox,
CCConst oy,
CCConst oz,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

Definition at line 573 of file mac_approx_projection.hpp.

◆ bcVelocityComp()

void peclet::flow::bcVelocityComp ( BField f,
B3 ext,
int g,
int a,
int s,
int comp,
double wall,
int fold,
BField prof = BField(),
int prof_nc = 0 )
inline

◆ bcVelocityFaces()

◆ bcSlipComp()

void peclet::flow::bcSlipComp ( BField f,
B3 ext,
int g,
int a,
int s,
int comp,
int fold )
inline

◆ bcMirrorGhost()

void peclet::flow::bcMirrorGhost ( BField f,
B3 ext,
int g,
int a,
int s )
inline

◆ bcVelocityColocated()

void peclet::flow::bcVelocityColocated ( BField f,
B3 ext,
int g,
int a,
int s,
double wall,
int comp = 0,
BField prof = BField(),
int prof_nc = 0 )
inline

◆ bcNeumannGhostCell()

template<class FV>
void peclet::flow::bcNeumannGhostCell ( const FV & f,
long base,
long sa,
int bic,
int lo,
int hi )

Definition at line 229 of file mac_bc.hpp.

Referenced by bcNeumannGhostT().

◆ bcZeroPressureGhostCell()

template<class FV>
void peclet::flow::bcZeroPressureGhostCell ( const FV & phi,
long base,
long sa,
int lo,
int hi )

Definition at line 236 of file mac_bc.hpp.

Referenced by bcZeroPressureGhost().

◆ bcNeumannGhostT()

template<class FV>
void peclet::flow::bcNeumannGhostT ( FV f,
B3 ext,
int g,
int a,
int s )
inline

◆ bcNeumannGhost()

void peclet::flow::bcNeumannGhost ( BField f,
B3 ext,
int g,
int a,
int s )
inline

◆ bcOutflowComp()

void peclet::flow::bcOutflowComp ( BField f,
B3 ext,
int g,
int a,
int s,
int comp,
int fold )
inline

◆ bcDiffusionFold()

void peclet::flow::bcDiffusionFold ( BField dcorr,
BField brhs,
B3 ext,
int g,
int a,
int s,
double dval,
double bval )
inline

◆ bcZeroPressureGhost()

void peclet::flow::bcZeroPressureGhost ( BField phi,
B3 ext,
int g,
int a,
int s )
inline

◆ bcCorrectOutflow()

void peclet::flow::bcCorrectOutflow ( BField f,
BField phi,
B3 ext,
int g,
int a,
double wa = 1.0 )
inline

Definition at line 345 of file mac_bc.hpp.

References peclet::flow::bcdetail::axisDims().

◆ bcCorrectOutflowVar()

void peclet::flow::bcCorrectOutflowVar ( BField f,
BField phi,
BField rho,
double rho0,
B3 ext,
int g,
int a,
bool harmonic,
double wa = 1.0 )
inline

Definition at line 375 of file mac_bc.hpp.

References peclet::flow::bcdetail::axisDims().

◆ bcSaveHighFacePlaneInner()

void peclet::flow::bcSaveHighFacePlaneInner ( BField dst,
BField src,
B3 ext,
int g,
int a )
inline

◆ bcRestoreHighFacePlaneInner()

void peclet::flow::bcRestoreHighFacePlaneInner ( BField dst,
BField src,
B3 ext,
int g,
int a )
inline

◆ bcHighFacePlaneToLastInner()

void peclet::flow::bcHighFacePlaneToLastInner ( BField scratch,
BField src,
B3 ext,
int g,
int a )
inline

◆ bcHighFacePlaneEdgesFromLastInner()

void peclet::flow::bcHighFacePlaneEdgesFromLastInner ( BField dst,
BField scratch,
B3 ext,
int g,
int a )
inline

◆ bcSetOpenness()

void peclet::flow::bcSetOpenness ( BField oa,
B3 ext,
int g,
int a,
int s,
double val )
inline

◆ bcZeroOpenness()

void peclet::flow::bcZeroOpenness ( BField oa,
B3 ext,
int g,
int a,
int s )
inline

Definition at line 504 of file mac_bc.hpp.

References bcSetOpenness().

Referenced by main(), and peclet::flow::Solver< Grid >::setSolidBuildOpenness().

◆ ibmStencilJacobiBounds()

template<class MC>
void peclet::flow::ibmStencilJacobiBounds ( MC AC,
MC AW,
MC AE,
MC AS,
MC AN,
MC AB,
MC AT,
CCConst solidmask,
C3 e,
int g,
double & lo,
double & hi )
inline

Gershgorin bounds [lo, hi] on the spectrum of the Jacobi-preconditioned cut-cell Helmholtz diag(AC)^-1 A, over the UNPINNED rows of the inner block.

Both are rigorous: lo <= lambda_min and hi >= lambda_max, so Chebyshev on [lo, hi] is unconditionally convergent. A loose lo only slows it down; a hi below lambda_max would diverge, which is why this is arithmetic and not an estimate. Rows with a vanishing diagonal (never solved) are skipped.

Definition at line 41 of file mac_cheb_momentum.hpp.

References AC.

Referenced by peclet::flow::VelocityMG::chebLevelBounds(), and peclet::flow::Solver< Grid >::chebSolveComp().

◆ ibmChebUpdate()

void peclet::flow::ibmChebUpdate ( CCField x,
CCField d,
CCConst r,
FPC AC,
CCConst solidmask,
C3 e,
int g,
double alpha,
double beta )
inline

One Chebyshev update on the Jacobi-preconditioned system: d <- beta*d + alpha*r/AC ; x += d.

Pinned (solid) rows are held at zero exactly as the red-black smoother holds them, so the two solvers share a fixed point. r is expected to be the pin-aware residual (residualVarPin), which is already zero there.

Definition at line 88 of file mac_cheb_momentum.hpp.

References AC.

Referenced by peclet::flow::VelocityMG::chebSmooth(), and peclet::flow::Solver< Grid >::chebSolveComp().

◆ ccFractionCore()

double peclet::flow::ccFractionCore ( double sd,
double sxp,
double sxm,
double syp,
double sym,
double szp,
double szm,
int type,
double dx,
double dy,
double dz )

Definition at line 60 of file mac_cutcell.hpp.

Referenced by ccFaceOpen(), and main().

◆ ccSampleExt()

◆ ccFaceOpen()

double peclet::flow::ccFaceOpen ( CCConst sdf,
C3 ext,
double fx,
double fy,
double fz,
int type,
double dx,
double dy,
double dz )

Definition at line 105 of file mac_cutcell.hpp.

References ccFractionCore(), and ccSampleExt().

Referenced by buildOpenness(), and buildOpennessHighFace().

◆ ccTriFrac()

double peclet::flow::ccTriFrac ( double a,
double b,
double c )

Definition at line 121 of file mac_cutcell.hpp.

Referenced by ccFaceOpenMS().

◆ ccFaceOpenMS()

double peclet::flow::ccFaceOpenMS ( CCConst sdf,
C3 ext,
double fx,
double fy,
double fz,
int type )

Definition at line 176 of file mac_cutcell.hpp.

References ccSampleExt(), and ccTriFrac().

Referenced by buildOpenness(), and buildOpennessHighFace().

◆ buildOpenness()

void peclet::flow::buildOpenness ( CCField ox,
CCField oy,
CCField oz,
CCConst sdf,
C3 ext,
double dx,
double dy,
double dz,
int order = 1 )
inline

◆ buildOpennessHighFace()

void peclet::flow::buildOpennessHighFace ( CCField oa,
CCConst sdf,
C3 ext,
int g,
int a,
double dx,
double dy,
double dz,
int order = 1 )
inline

◆ hostRunSerial()

◆ ccFor3()

template<class F>
void peclet::flow::ccFor3 ( const char * name,
C3 lo,
C3 hi,
F f )
inline

Definition at line 385 of file mac_cutcell.hpp.

References peclet::flow::ccdetail::ccRows3(), and F.

Referenced by peclet::flow::sco::addOnUnknown(), peclet::flow::sco::advectionBands(), peclet::flow::sco::advectionResidual(), applyCutcellOp(), applyCutcellOpBox(), applyCutcellOpBoxFace(), applyCutcellOpExact(), applyCutcellOpExactBox(), applyCutcellOpExactWrap(), applyCutcellOpFace(), applyCutcellOpFaceWrap(), peclet::flow::ScalarMG::applySurrogate(), peclet::flow::ScalarMG::applySurrogateTwo(), peclet::flow::ScalarMG::assembleBands(), peclet::flow::ScalarMG::assembleCoarse(), peclet::flow::skr::axpy(), peclet::flow::skr::aypx(), peclet::flow::sco::buildBands(), peclet::flow::ScalarMG::buildCoarse(), peclet::flow::ScalarMG::buildCoarseSolid(), buildCutcellOp(), buildCutcellOpFace(), peclet::flow::ScalarMG::buildLevel0Faces(), peclet::flow::ScalarMG::buildLevel0SolidFaces(), buildPorousCoeff(), buildPorousCoeffCons(), buildPorousCoeffDrag(), buildRhoCoeff(), buildRhoCoeffHarm(), peclet::flow::sco::buildRhs(), peclet::flow::Solver< Grid >::buildRhs(), peclet::flow::Solver< Grid >::buildRhsVar(), peclet::flow::sco::buildSolidMaterial(), peclet::flow::sco::clampNonNegative(), peclet::flow::ScalarMG::coarsenAdvection(), coarsenOpenAvg(), peclet::flow::ScalarMG::contraction(), peclet::flow::Solver< Grid >::copyBlockShifted(), peclet::flow::FlowReference::copyInner(), peclet::flow::Solver< Grid >::copyInner(), divergOpen(), divergOpenEps(), entryFp32(), peclet::flow::CutcellMG::exitFp32(), peclet::flow::sco::explicitAdvectionRhs(), peclet::flow::sco::explicitFaceFluxes(), peclet::flow::sco::faceFluxes(), fp32AddDouble(), peclet::flow::vof::VofBlockExchange::gatherLocalLaunch(), ibmBuildDiffusionVar(), peclet::flow::sco::meanGradientAdvectionRhs(), peclet::flow::sco::meanGradientFaceRhs(), peclet::flow::CutcellMG::meanSubtractHostCounted(), projectCorrect(), projectCorrectPorousCons(), projectCorrectPorousDrag(), projectCorrectVar(), projectCorrectVarHarm(), peclet::flow::CutcellMG::projectedGuess(), prolongAdd(), prolongConstAdd(), prolongConstFp32(), prolongConstFp32FromD(), prolongFp32(), prolongFp32FromD(), peclet::flow::CutcellMG::removeMean(), peclet::flow::ScalarMG::removeMean(), peclet::flow::ScalarMG::removeMeanTwo(), peclet::flow::skr::residentP(), peclet::flow::skr::residentS(), peclet::flow::skr::residentXHalf(), peclet::flow::skr::residentXR(), peclet::flow::smg::residualBand(), residualCutcell(), residualCutcellBox(), residualCutcellBoxFace(), residualCutcellFace(), residualCutcellFaceWrap(), peclet::flow::smg::residualFace(), peclet::flow::sco::residualFluxForm(), residualFp32Box(), residualFp32Wrap(), peclet::flow::skr::residualFrom(), peclet::flow::smg::residualTwo(), residualVarPin(), restrictAvg(), restrictAvgZeroX(), restrictFp32ToDZeroX(), restrictFp32ZeroX(), peclet::flow::smg::restrictMax(), peclet::flow::sco::smallCells(), peclet::flow::sco::solidBands(), peclet::flow::sco::solidFaceProducts(), peclet::flow::sco::solidMass(), peclet::flow::sco::solidMeanGradientFaceRhs(), peclet::flow::sco::solidResidualFluxForm(), peclet::flow::sco::solidRhs(), peclet::flow::sco::zeroNonUnknown(), and peclet::flow::smg::zeroPinned().

◆ ccForRows3()

template<class F>
void peclet::flow::ccForRows3 ( const char * name,
C3 lo,
C3 hi,
F f )
inline

Definition at line 390 of file mac_cutcell.hpp.

References peclet::flow::ccdetail::ccRows3(), and F.

Referenced by buildCutcellOpFaceFp32().

◆ ccBoxShellRuns()

template<class Run>
void peclet::flow::ccBoxShellRuns ( const char * name,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi,
Run run )
inline

◆ ccMaskNbrs()

CcNbrs peclet::flow::ccMaskNbrs ( int lx,
int ly,
int lz,
C3 n,
int g,
long i,
long sy,
long sz,
int m )

◆ ccMaskRow()

template<class Cell>
void peclet::flow::ccMaskRow ( int ly,
int lz,
int lx0,
int x1,
int step,
C3 e,
C3 n,
int g,
int m,
const Cell & cell )

◆ ccReduce3()

◆ ccReduce3Lanes()

◆ coarsenOpenAvgCell()

template<class CV, class FV>
void peclet::flow::coarsenOpenAvgCell ( const CV & oxc,
const CV & oyc,
const CV & ozc,
const FV & oxf,
const FV & oyf,
const FV & ozf,
C3 cext,
C3 fext,
int gc,
int gf,
C3 ratio,
int icx,
int icy,
int icz )

◆ coarsenOpenAvg()

void peclet::flow::coarsenOpenAvg ( CCField oxc,
CCField oyc,
CCField ozc,
CCConst oxf,
CCConst oyf,
CCConst ozf,
C3 cext,
C3 fext,
int gc,
int gf,
C3 cinner,
C3 ratio )
inline

◆ mgSaveFacePlane()

void peclet::flow::mgSaveFacePlane ( CCField dst,
CCConst src,
C3 e,
int g,
int a,
int s )
inline

Definition at line 146 of file mac_cutcell_mg.hpp.

Referenced by peclet::flow::CutcellMG::saveOutflowPlanes().

◆ mgRestoreFacePlane()

void peclet::flow::mgRestoreFacePlane ( CCField dst,
CCConst src,
C3 e,
int g,
int a,
int s )
inline

◆ mgCoarsenFacePlane()

void peclet::flow::mgCoarsenFacePlane ( CCField oc,
CCConst of,
C3 cext,
C3 fext,
int gc,
int gf,
C3 cinner,
C3 ratio,
int a,
int s )
inline

◆ cutcellResidualCell()

template<class RV, class XV, class BV, class OpV>
void peclet::flow::cutcellResidualCell ( const RV & r,
const XV & x,
const BV & b,
const OpV & AC,
const OpV & AW,
const OpV & AE,
const OpV & AS,
const OpV & AN,
const OpV & AB,
const OpV & AT,
long i,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm )

Definition at line 218 of file mac_cutcell_mg.hpp.

References AC.

Referenced by residualCutcell(), and residualCutcellBox().

◆ residualCutcell()

void peclet::flow::residualCutcell ( CCField r,
CCConst x,
CCConst b,
FPC AC,
FPC AW,
FPC AE,
FPC AS,
FPC AN,
FPC AB,
FPC AT,
C3 e,
int g )
inline

Definition at line 228 of file mac_cutcell_mg.hpp.

References AC, ccFor3(), and cutcellResidualCell().

Referenced by DistMG::vcycle().

◆ residualCutcellBox()

void peclet::flow::residualCutcellBox ( CCField r,
CCConst x,
CCConst b,
FPC AC,
FPC AW,
FPC AE,
FPC AS,
FPC AN,
FPC AB,
FPC AT,
C3 e,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi )
inline

◆ residualCutcellFace()

void peclet::flow::residualCutcellFace ( CCField r,
CCConst x,
CCConst b,
FPC AC,
FPC AFX,
FPC AFY,
FPC AFZ,
C3 e,
int g )
inline

◆ residualCutcellBoxFace()

void peclet::flow::residualCutcellBoxFace ( CCField r,
CCConst x,
CCConst b,
FPC AC,
FPC AFX,
FPC AFY,
FPC AFZ,
C3 e,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi,
int wrapMask = 0,
int g = 1 )
inline

◆ ccWrapNbrs()

◆ ccWrapRowPeeled()

template<class Cell>
void peclet::flow::ccWrapRowPeeled ( int ly,
int lz,
C3 e,
C3 n,
int g,
int lx0,
int step,
const Cell & cell )

◆ ccWrapForPeeled()

template<class Cell>
void peclet::flow::ccWrapForPeeled ( const char * name,
C3 e,
C3 n,
int g,
const Cell & cell )
inline

◆ cutcellSmoothColorFaceWrap()

void peclet::flow::cutcellSmoothColorFaceWrap ( CCField phi,
CCConst b,
FPC AC,
FPC AFX,
FPC AFY,
FPC AFZ,
C3 e,
C3 n,
C3 og,
int g,
int color )
inline

◆ residualCutcellFaceWrap()

void peclet::flow::residualCutcellFaceWrap ( CCField r,
CCConst x,
CCConst b,
FPC AC,
FPC AFX,
FPC AFY,
FPC AFZ,
C3 e,
C3 n,
int g )
inline

◆ applyCutcellOpFaceWrap()

void peclet::flow::applyCutcellOpFaceWrap ( CCField y,
CCConst x,
FPC AC,
FPC AFX,
FPC AFY,
FPC AFZ,
C3 e,
C3 n,
int g )
inline

Definition at line 474 of file mac_cutcell_mg.hpp.

References AC, ccFor3(), ccWrapNbrs(), and cutcellApplyFaceCell().

Referenced by peclet::flow::CutcellMG::matvecOverlap().

◆ applyCutcellOpExactWrap()

void peclet::flow::applyCutcellOpExactWrap ( CCField y,
CCConst x,
CCConst ox,
CCConst oy,
CCConst oz,
C3 e,
C3 n,
int g,
double gfx,
double gfy,
double gfz )
inline

◆ restrictAvgCell()

template<class CV, class FV>
void peclet::flow::restrictAvgCell ( const CV & coarse,
const FV & fine,
C3 cext,
C3 fext,
int gc,
int gf,
C3 ratio,
int icx,
int icy,
int icz )

◆ prolongAddCell()

template<class FV, class CV>
void peclet::flow::prolongAddCell ( const FV & fine,
const CV & coarse,
C3 fext,
C3 cext,
int gf,
int gc,
C3 ratio,
int ifx,
int ify,
int ifz )

Definition at line 529 of file mac_cutcell_mg.hpp.

References peclet::flow::C3::x, and peclet::flow::C3::y.

Referenced by prolongAdd().

◆ prolongConstAddCell()

template<class FV, class CV>
void peclet::flow::prolongConstAddCell ( const FV & fine,
const CV & coarse,
C3 fext,
C3 cext,
int gf,
int gc,
C3 ratio,
int ifx,
int ify,
int ifz )

Definition at line 560 of file mac_cutcell_mg.hpp.

References peclet::flow::C3::x, and peclet::flow::C3::y.

Referenced by prolongConstAdd().

◆ meanSubtractCell()

◆ restrictAvg()

◆ restrictAvgZeroX()

void peclet::flow::restrictAvgZeroX ( CCField coarse,
CCField coarseX,
CCConst fine,
C3 cext,
C3 fext,
int gc,
int gf,
C3 cinner,
C3 ratio )
inline

◆ buildCutcellOpFaceFp32()

template<class OpV, class WV>
void peclet::flow::buildCutcellOpFaceFp32 ( OpV AC,
OpV AFX,
OpV AFY,
OpV AFZ,
WV WX,
WV WY,
WV WZ,
CCConst ox,
CCConst oy,
CCConst oz,
C3 e,
int gb,
double gfx,
double gfy,
double gfz,
int fp64,
int * bad )
inline

◆ prolongAdd()

void peclet::flow::prolongAdd ( CCField fine,
CCConst coarse,
C3 fext,
C3 cext,
int gf,
int gc,
C3 finner,
C3 ratio )
inline

◆ prolongConstAdd()

void peclet::flow::prolongConstAdd ( CCField fine,
CCConst coarse,
C3 fext,
C3 cext,
int gf,
int gc,
C3 finner,
C3 ratio )
inline

◆ mgDebugLevel()

◆ mgDebugSolves()

◆ ibmIsCut()

template<class Real>
bool peclet::flow::ibmIsCut ( Real sc,
const Real sn[6] )

Definition at line 46 of file mac_ibm.hpp.

Referenced by ibmCleanFluidMask().

◆ buildIbmOverlay()

template<int SCHEME>
int peclet::flow::buildIbmOverlay ( CCConst sdf,
C3 ext,
int g,
Off3 off,
int bc_type,
const IbmOverlay & ov,
Kokkos::View< int *, CCMem > idMap,
Kokkos::View< int, CCMem > counter,
CCConst tx = CCConst(),
CCConst ty = CCConst(),
CCConst tz = CCConst(),
C3 nn = C3{0, 0, 0},
mreal slipLambda = mreal(0),
int comp = -1,
Kokkos::View< int, CCMem > sandwichSkipped = Kokkos::View<int, CCMem>(),
mreal hpx = mreal(1),
mreal hpy = mreal(1),
mreal hpz = mreal(1) )
inline

slipLambda (WO-V6b, in CELLS, 0 = the validated no-slip closure) + comp (which velocity component this overlay carries: 0/1/2, -1 = none) turn the tangential wall Dirichlet datum into a NAVIER condition u_t(wall) = lambda du_t/dn.

Per cut cell the unit normal comes from the central difference of the SAME seven SDF samples the closure uses (grad sdf points into the fluid); the component's TANGENTIAL weight is s = 1 - n_comp^2 (0 for the component parallel to the wall normal – that one stays a pure impermeability Dirichlet – 1 for a purely tangential one), and the slip length measured along axis a is s*lambda/|n_a|, because the wall distance along that axis is the normal distance divided by |n_a|. The closure then depends only on lam_a/theta_a = s*lambda/d, the physically meaningful ratio, so the |n_a| division is self-consistent rather than a fudge.

APPROXIMATION, stated because it is not visible from the call: the projector is taken DIAGONAL, u_t,comp ~ (1 - n_comp^2) u_comp; the cross terms -n_comp n_j u_j (j != comp) are dropped. They are EXACTLY zero for an axis-aligned wall (every gate scene), and O(n_c n_j) elsewhere; carrying them would couple the three segregated component solves. sandwichSkipped (optional) counts the axes where a one-cell fluid gap made the slip closure inapplicable and the no-slip one was kept.

PHASE 2 (anisotropic cells, doc/anisotropic_metric.md §6.4). NOTHING in ibmFillEntry reads a distance — theta, D, K, M, X, Nbc, R and D_rescale are all functions of the crossing fractions along an axis, which are invariant under any positive scaling of the SDF. The metric enters in exactly ONE place, the Navier slip length: the Robin condition along axis a reduces with d/dn = (1/(h_a |n_a|)) d/dxi_a, so the slip length measured in CELLS along that axis is the physical one divided by the physical cell size h_a' AND by |n_a| of the PHYSICAL normal. The normal itself is the seven-sample gradient rescaled per axis and renormalised, n_a = (g_a/h_a')/|g/h'| (§6.1), and s = 1 - n_c^2 uses that same n. hp enters in FLOAT and 1.0f is exact (trap 9), so the isotropic path is bit-identical.

Definition at line 88 of file mac_ibm.hpp.

Referenced by peclet::flow::Solver< Grid >::buildVelocityOverlays(), and main().

◆ ibmVolfrac()

void peclet::flow::ibmVolfrac ( CCField theta,
CCConst sdf,
C3 ext,
Off3 off,
bool aniso = false,
double hpx = 1.0,
double hpy = 1.0,
double hpz = 1.0,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

◆ ibmSolidMask()

void peclet::flow::ibmSolidMask ( CCField mask,
CCConst sdf,
C3 ext,
Off3 off )
inline

◆ ibmCleanFluidMask()

void peclet::flow::ibmCleanFluidMask ( CCField m,
CCConst sdf,
C3 ext,
Off3 off )
inline

◆ ibmRbgsStencilColor()

template<class MC>
void peclet::flow::ibmRbgsStencilColor ( CCField x,
CCConst b,
MC AC,
MC AW,
MC AE,
MC AS,
MC AN,
MC AB,
MC AT,
CCConst solidmask,
C3 ext,
C3 og,
int g,
int color )
inline

◆ ibmRbgsStencilColorDu()

template<class MC>
double peclet::flow::ibmRbgsStencilColorDu ( CCField x,
CCConst b,
MC AC,
MC AW,
MC AE,
MC AS,
MC AN,
MC AB,
MC AT,
CCConst solidmask,
C3 ext,
C3 og,
int g,
int color )
inline

◆ ibmRbgsStencilColorBox()

template<class MC>
void peclet::flow::ibmRbgsStencilColorBox ( CCField x,
CCConst b,
MC AC,
MC AW,
MC AE,
MC AS,
MC AN,
MC AB,
MC AT,
CCConst solidmask,
C3 ext,
C3 og,
int color,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi )
inline

◆ ibmRbgsStencilColorDuBox()

template<class MC>
double peclet::flow::ibmRbgsStencilColorDuBox ( CCField x,
CCConst b,
MC AC,
MC AW,
MC AE,
MC AS,
MC AN,
MC AB,
MC AT,
CCConst solidmask,
C3 ext,
C3 og,
int color,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi )
inline

◆ ibmRbgsSweep()

void peclet::flow::ibmRbgsSweep ( CCField x,
CCConst b,
MConst AC,
MConst AW,
MConst AE,
MConst AS,
MConst AN,
MConst AB,
MConst AT,
CCConst solidmask,
C3 ext,
C3 og,
int g )
inline

Definition at line 484 of file mac_ibm.hpp.

References AC, and ibmRbgsStencilColor().

Referenced by main().

◆ mgPeriodicFill()

void peclet::flow::mgPeriodicFill ( SField f,
I3 e,
int N,
int g )
inline

◆ cutcellBuildOpCell()

template<class OpV, class OV>
void peclet::flow::cutcellBuildOpCell ( const OpV & AC,
const OpV & AW,
const OpV & AE,
const OpV & AS,
const OpV & AN,
const OpV & AB,
const OpV & AT,
const OV & ox,
const OV & oy,
const OV & oz,
long i,
long sx,
long sy,
long sz,
double gfx,
double gfy,
double gfz )

Definition at line 33 of file mac_pressure.hpp.

References AC.

Referenced by buildCutcellOp().

◆ cutcellSmoothCell()

template<class PV, class BV, class OpV>
void peclet::flow::cutcellSmoothCell ( const PV & phi,
const BV & b,
const OpV & AC,
const OpV & AW,
const OpV & AE,
const OpV & AS,
const OpV & AN,
const OpV & AB,
const OpV & AT,
long i,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm )

Definition at line 52 of file mac_pressure.hpp.

References AC.

Referenced by cutcellSmoothColor(), and cutcellSmoothColorBox().

◆ cutcellApplyCell()

template<class XV, class OpV>
double peclet::flow::cutcellApplyCell ( const XV & x,
const OpV & AC,
const OpV & AW,
const OpV & AE,
const OpV & AS,
const OpV & AN,
const OpV & AB,
const OpV & AT,
long i,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm )

Definition at line 66 of file mac_pressure.hpp.

References AC.

Referenced by applyCutcellOp(), and applyCutcellOpBox().

◆ cutcellApplyExactCell()

template<class XV, class OV>
double peclet::flow::cutcellApplyExactCell ( const XV & x,
const OV & ox,
const OV & oy,
const OV & oz,
long i,
long sx,
long sy,
long sz,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm,
double gfx,
double gfy,
double gfz )

◆ buildCutcellOp()

template<class OpV>
void peclet::flow::buildCutcellOp ( OpV AC,
OpV AW,
OpV AE,
OpV AS,
OpV AN,
OpV AB,
OpV AT,
CCConst ox,
CCConst oy,
CCConst oz,
C3 e,
int g,
double gfx,
double gfy,
double gfz )
inline

Definition at line 86 of file mac_pressure.hpp.

References AC, ccFor3(), and cutcellBuildOpCell().

Referenced by DistMG::init(), and main().

◆ cutcellBuildFaceOpCell()

template<class OpV, class OV>
void peclet::flow::cutcellBuildFaceOpCell ( const OpV & AC,
const OpV & AFX,
const OpV & AFY,
const OpV & AFZ,
const OV & ox,
const OV & oy,
const OV & oz,
long i,
long sx,
long sy,
long sz,
double gfx,
double gfy,
double gfz,
bool diag )

Definition at line 119 of file mac_pressure.hpp.

References AC.

Referenced by buildCutcellOpFace(), and buildCutcellOpFaceFp32().

◆ cutcellSmoothFaceCell()

template<class PV, class BV, class OpV>
void peclet::flow::cutcellSmoothFaceCell ( const PV & phi,
const BV & b,
const OpV & AC,
const OpV & AFX,
const OpV & AFY,
const OpV & AFZ,
long i,
long sx,
long sy,
long sz,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm )

◆ cutcellApplyFaceCell()

template<class XV, class OpV>
double peclet::flow::cutcellApplyFaceCell ( const XV & x,
const OpV & AC,
const OpV & AFX,
const OpV & AFY,
const OpV & AFZ,
long i,
long sx,
long sy,
long sz,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm )

◆ cutcellResidualFaceCell()

template<class RV, class XV, class BV, class OpV>
void peclet::flow::cutcellResidualFaceCell ( const RV & r,
const XV & x,
const BV & b,
const OpV & AC,
const OpV & AFX,
const OpV & AFY,
const OpV & AFZ,
long i,
long sx,
long sy,
long sz,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm )

◆ buildCutcellOpFace()

template<class OpV>
void peclet::flow::buildCutcellOpFace ( OpV AC,
OpV AFX,
OpV AFY,
OpV AFZ,
CCConst ox,
CCConst oy,
CCConst oz,
C3 e,
int gb,
double gfx,
double gfy,
double gfz )
inline

◆ cutcellSmoothColorFace()

template<class OpV>
void peclet::flow::cutcellSmoothColorFace ( CCField phi,
CCConst b,
OpV AC,
OpV AFX,
OpV AFY,
OpV AFZ,
C3 e,
C3 og,
int g,
int color )
inline

◆ cutcellSmoothColorBoxFace()

template<class OpV>
void peclet::flow::cutcellSmoothColorBoxFace ( CCField phi,
CCConst b,
OpV AC,
OpV AFX,
OpV AFY,
OpV AFZ,
C3 e,
C3 og,
int color,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi,
int wrapMask = 0,
int g = 1 )
inline

◆ applyCutcellOpFace()

template<class OpV>
void peclet::flow::applyCutcellOpFace ( CCField y,
CCConst x,
OpV AC,
OpV AFX,
OpV AFY,
OpV AFZ,
C3 e,
int g )
inline

◆ applyCutcellOpBoxFace()

template<class OpV>
void peclet::flow::applyCutcellOpBoxFace ( CCField y,
CCConst x,
OpV AC,
OpV AFX,
OpV AFY,
OpV AFZ,
C3 e,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi,
int wrapMask = 0,
int g = 1 )
inline

◆ divergOpen()

◆ cutcellSmoothColor()

template<class OpV>
void peclet::flow::cutcellSmoothColor ( CCField phi,
CCConst b,
OpV AC,
OpV AW,
OpV AE,
OpV AS,
OpV AN,
OpV AB,
OpV AT,
C3 e,
C3 og,
int g,
int color )
inline

◆ cutcellSmoothColorBox()

template<class OpV>
void peclet::flow::cutcellSmoothColorBox ( CCField phi,
CCConst b,
OpV AC,
OpV AW,
OpV AE,
OpV AS,
OpV AN,
OpV AB,
OpV AT,
C3 e,
C3 og,
int color,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi )
inline

◆ applyCutcellOp()

template<class OpV>
void peclet::flow::applyCutcellOp ( CCField y,
CCConst x,
OpV AC,
OpV AW,
OpV AE,
OpV AS,
OpV AN,
OpV AB,
OpV AT,
C3 e,
int g )
inline

◆ applyCutcellOpBox()

template<class OpV>
void peclet::flow::applyCutcellOpBox ( CCField y,
CCConst x,
OpV AC,
OpV AW,
OpV AE,
OpV AS,
OpV AN,
OpV AB,
OpV AT,
C3 e,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi )
inline

◆ applyCutcellOpExact()

void peclet::flow::applyCutcellOpExact ( CCField y,
CCConst x,
CCConst ox,
CCConst oy,
CCConst oz,
C3 e,
int g,
double gfx,
double gfy,
double gfz )
inline

Definition at line 540 of file mac_pressure.hpp.

References ccFor3(), and cutcellApplyExactCell().

Referenced by main(), and peclet::flow::CutcellMG::matvecOverlap().

◆ applyCutcellOpExactBox()

void peclet::flow::applyCutcellOpExactBox ( CCField y,
CCConst x,
CCConst ox,
CCConst oy,
CCConst oz,
C3 e,
C3 rlo,
C3 rhi,
C3 slo,
C3 shi,
double gfx,
double gfy,
double gfz,
int wrapMask = 0,
int g = 1 )
inline

◆ projectCorrect()

void peclet::flow::projectCorrect ( CCField u,
CCField v,
CCField w,
CCConst phi,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

Definition at line 610 of file mac_pressure.hpp.

References ccFor3().

◆ projectCorrectVar()

void peclet::flow::projectCorrectVar ( CCField u,
CCField v,
CCField w,
CCConst phi,
CCConst rho,
double rho0,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

Definition at line 627 of file mac_pressure.hpp.

References ccFor3().

◆ buildRhoCoeff()

void peclet::flow::buildRhoCoeff ( CCField cx,
CCField cy,
CCField cz,
CCConst ox,
CCConst oy,
CCConst oz,
CCConst rho,
double rho0,
C3 e,
int g )
inline

Definition at line 646 of file mac_pressure.hpp.

References ccFor3().

Referenced by peclet::flow::Solver< Grid >::projectBuildCoefficients().

◆ buildRhoCoeffHarm()

void peclet::flow::buildRhoCoeffHarm ( CCField cx,
CCField cy,
CCField cz,
CCConst ox,
CCConst oy,
CCConst oz,
CCConst rho,
double rho0,
C3 e,
int g )
inline

Definition at line 688 of file mac_pressure.hpp.

References ccFor3().

Referenced by peclet::flow::Solver< Grid >::projectBuildCoefficients().

◆ buildRhoCoeffOutflowFace()

void peclet::flow::buildRhoCoeffOutflowFace ( CCField ca,
CCConst oa,
CCConst rho,
double rho0,
C3 e,
int g,
int a,
bool harmonic )
inline

◆ projectCorrectVarHarm()

void peclet::flow::projectCorrectVarHarm ( CCField u,
CCField v,
CCField w,
CCConst phi,
CCConst rho,
double rho0,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

Definition at line 742 of file mac_pressure.hpp.

References ccFor3().

◆ divergOpenEps()

void peclet::flow::divergOpenEps ( CCConst u,
CCConst v,
CCConst w,
CCConst ox,
CCConst oy,
CCConst oz,
CCConst eps,
CCField d,
C3 e,
int g )
inline

◆ buildPorousCoeff()

void peclet::flow::buildPorousCoeff ( CCField cx,
CCField cy,
CCField cz,
CCConst ox,
CCConst oy,
CCConst oz,
CCConst eps,
C3 e,
int g )
inline

Definition at line 791 of file mac_pressure.hpp.

References ccFor3().

Referenced by peclet::flow::Solver< Grid >::projectBuildCoefficients().

◆ buildPorousCoeffDrag()

void peclet::flow::buildPorousCoeffDrag ( CCField cx,
CCField cy,
CCField cz,
CCConst ox,
CCConst oy,
CCConst oz,
CCConst eps,
CCConst beta,
double idt,
C3 e,
int g )
inline

Definition at line 811 of file mac_pressure.hpp.

References ccFor3().

Referenced by peclet::flow::Solver< Grid >::projectBuildCoefficients().

◆ buildPorousCoeffCons()

void peclet::flow::buildPorousCoeffCons ( CCField cx,
CCField cy,
CCField cz,
CCConst ox,
CCConst oy,
CCConst oz,
CCConst eps,
CCConst beta,
bool useBeta,
double rhoidt,
C3 e,
int g )
inline

Definition at line 833 of file mac_pressure.hpp.

References ccFor3().

Referenced by peclet::flow::Solver< Grid >::projectBuildCoefficients().

◆ projectCorrectPorousCons()

void peclet::flow::projectCorrectPorousCons ( CCField u,
CCField v,
CCField w,
CCConst phi,
CCConst eps,
CCConst beta,
bool useBeta,
double rhoidt,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

Definition at line 852 of file mac_pressure.hpp.

References ccFor3().

◆ projectCorrectPorousDrag()

void peclet::flow::projectCorrectPorousDrag ( CCField u,
CCField v,
CCField w,
CCConst phi,
CCConst beta,
double idt,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

Definition at line 873 of file mac_pressure.hpp.

References ccFor3().

◆ innerToExt()

std::size_t peclet::flow::innerToExt ( long c,
Ext3 ext,
int ghost,
Ext3 inner )

Definition at line 39 of file mac_reductions.hpp.

References peclet::flow::Ext3::x, and peclet::flow::Ext3::y.

Referenced by localDot(), and localSumMax().

◆ localSumMax()

SumMax peclet::flow::localSumMax ( DConst f,
Ext3 ext,
int ghost,
Ext3 inner )
inline

Local sum and max|.| over the inner cells.

Definition at line 48 of file mac_reductions.hpp.

References innerToExt().

Referenced by main().

◆ localDot()

double peclet::flow::localDot ( DConst a,
DConst b,
Ext3 ext,
int ghost,
Ext3 inner )
inline

Local inner product <a,b> over the inner cells.

Definition at line 67 of file mac_reductions.hpp.

References innerToExt().

Referenced by main().

◆ subtractAll()

void peclet::flow::subtractAll ( DField f,
double m )
inline

Subtract a constant from EVERY cell of the extended block (the mean-removal scatter).

Definition at line 83 of file mac_reductions.hpp.

Referenced by main().

◆ L3()

long peclet::flow::L3 ( int x,
int y,
int z,
I3 e )

Definition at line 30 of file mac_stencils.hpp.

Referenced by peclet::flow::vof::WyAdvector::applySweepCut(), peclet::flow::vof::WyAdvector::applySweepImpl(), peclet::flow::vof::VofMcArea::areaPass(), peclet::flow::vof::VofBlockSet::bubbleBox(), peclet::flow::vof::VofBlockSet::buildCsfForce(), peclet::flow::vof::buildOutsideMask(), peclet::flow::vof::MomentumConsistentAdvector::buildShiftedColour(), peclet::flow::vof::MomentumConsistentAdvector::buildShiftedColourCut(), peclet::flow::vof::WyAdvector::buildWettingNormals(), peclet::flow::vof::VofCurvature::census(), peclet::flow::vof::VofDynamicWetting::census(), peclet::flow::vof::VofInterfaceArea::census(), peclet::flow::vof::VofMcArea::census(), peclet::flow::vof::clampFill(), peclet::flow::vof::WyAdvector::classifyGeometry(), peclet::flow::vof::WyAdvector::clipCutCellsImpl(), peclet::flow::vof::VofCurvature::clipPass(), peclet::flow::vof::VofBlockSet::clipToSeed(), peclet::flow::vof::VofBlockExchange::combineBlockIntoPatch(), peclet::flow::vof::VofBlockExchange::combineBufIntoPatch(), peclet::flow::vof::VofCurvature::compact(), peclet::flow::vof::WyAdvector::computeFluxesCut(), peclet::flow::vof::WyAdvector::computeFluxesImpl(), peclet::flow::MgPoisson::computeResidual(), peclet::flow::vof::copyAdvectedVelocity(), peclet::flow::vof::copyFaceVelocity(), peclet::flow::vof::WyAdvector::cutDiagnostics(), peclet::flow::vof::VofBlockSet::debrisPassBatchImpl(), peclet::flow::vof::MomentumConsistentAdvector::diagnostics(), peclet::flow::vof::WyAdvector::diagnostics(), diffResidualMaxT(), diffResidualT(), diffSmoothColorDuT(), diffSmoothColorT(), divergence(), peclet::flow::vof::VofEnergyAdvector::energyUpdate(), peclet::flow::vof::VofEnergyAdvector::extrema(), peclet::flow::vof::VofCurvature::fallbackPass(), peclet::flow::vof::VofInterfaceArea::fallbackPass(), peclet::flow::vof::VofBlockSet::fillBlockGhosts(), peclet::flow::vof::MomentumConsistentAdvector::freezeGhostFlags(), peclet::flow::vof::MomentumConsistentAdvector::freezeShiftedState(), peclet::flow::vof::VofBlockExchange::gatherLocalLaunch(), peclet::flow::Solver< Grid >::harvestVofBlockUnion(), peclet::flow::vof::VofCurvature::heightPass(), peclet::flow::vof::VofInterfaceArea::heightPass(), peclet::flow::vof::VofDynamicWetting::impose(), peclet::flow::vof::WyAdvector::index(), peclet::flow::vof::VofBlockSet::innerSum(), peclet::flow::vof::VofBlockSet::interfaceArea(), peclet::flow::MgPoisson::maxAbsInner(), peclet::flow::vof::WyAdvector::maxCourant(), peclet::flow::vof::WyAdvector::maxCourantInterface(), peclet::flow::vof::WyAdvector::maxCourantInterfaceCut(), peclet::flow::vof::WyAdvector::maxDiscreteDivergence(), peclet::flow::vof::VofBlockSet::measure(), peclet::flow::vof::VofDynamicWetting::measure(), peclet::flow::vof::MomentumConsistentAdvector::momentumFluxes(), peclet::flow::vof::MomentumConsistentAdvector::momentumFluxesCapped(), peclet::flow::vof::MomentumConsistentAdvector::momentumFluxesCut(), peclet::flow::vof::MomentumConsistentAdvector::momentumFluxesCutCapped(), peclet::flow::vof::MomentumConsistentAdvector::momentumUpdate(), peclet::flow::vof::MomentumConsistentAdvector::momentumUpdateCut(), peclet::flow::vof::MomentumConsistentAdvector::momentumUpdateCutPhase(), peclet::flow::vof::MomentumConsistentAdvector::momentumUpdatePhase(), peclet::flow::vof::VofBlockExchange::movePiece(), peclet::flow::vof::VofBlockSet::outOfBoxSum(), peclet::flow::vof::VofBlockExchange::packFromBlock(), peclet::flow::vof::VofBlockExchange::packFromPatch(), peclet::flow::vof::VofMcArea::planePass(), poisSmoothColor(), peclet::flow::vof::VofBlockSet::recentreTo(), peclet::flow::vof::WyAdvector::reconstructImpl(), peclet::flow::vof::VofCurvature::reconstructPlanes(), peclet::flow::vof::VofInterfaceArea::reconstructPlanes(), peclet::flow::MgPoisson::removeMean(), peclet::flow::vof::VofBlockExchange::scatterColourMaxHost(), peclet::flow::vof::VofBlockSet::seedSphere(), peclet::flow::MgPoisson::smoothColor(), peclet::flow::vof::WyAdvector::solidBandFillPass(), peclet::flow::vof::WyAdvector::solidBandFillPassWetting(), peclet::flow::vof::VofBlockExchange::unpackToBlock(), peclet::flow::Solver< Grid >::updateVofBlockOverlap(), peclet::flow::vof::vofBatchGhostZero(), peclet::flow::vof::vofStatsCellIndex(), peclet::flow::vof::vofStatsM1Cell(), peclet::flow::vof::vofStatsMomentsCell(), peclet::flow::vof::WyAdvector::wettingCensusGhost(), and peclet::flow::vof::VofBlockExchange::zeroPatchInner().

◆ diffSmoothColorT()

template<bool Aniso>
void peclet::flow::diffSmoothColorT ( SField c,
SConst b,
I3 e,
I3 og,
int g,
double bx,
double by,
double bz,
double Ac,
int color,
SConst dcorr )
inline

Definition at line 46 of file mac_stencils.hpp.

References L3().

Referenced by diffSmoothColor(), and diffSmoothColor().

◆ diffSmoothColor() [1/2]

void peclet::flow::diffSmoothColor ( SField c,
SConst b,
I3 e,
I3 og,
int g,
double bx,
double by,
double bz,
double Ac,
int color,
SConst dcorr,
bool aniso )
inline

◆ diffSmoothColor() [2/2]

void peclet::flow::diffSmoothColor ( SField c,
SConst b,
I3 e,
I3 og,
int g,
double beta,
double Ac,
int color,
SConst dcorr )
inline

Definition at line 105 of file mac_stencils.hpp.

References diffSmoothColorT().

◆ diffResidualT()

template<bool Aniso>
void peclet::flow::diffResidualT ( SField r,
SConst c,
SConst b,
I3 e,
int g,
double bx,
double by,
double bz,
double Ac,
SConst dcorr )
inline

Definition at line 114 of file mac_stencils.hpp.

References L3().

Referenced by diffResidual(), and diffResidual().

◆ diffResidualMaxT()

template<bool Aniso>
void peclet::flow::diffResidualMaxT ( SConst c,
SConst b,
I3 e,
int g,
double bx,
double by,
double bz,
double Ac,
SConst dcorr,
int holdAxis,
int holdIdx,
double & rmax,
double & bdmax,
double & bmax )
inline

Definition at line 140 of file mac_stencils.hpp.

References L3().

Referenced by diffResidualMax().

◆ diffResidualMax()

void peclet::flow::diffResidualMax ( SConst c,
SConst b,
I3 e,
int g,
double bx,
double by,
double bz,
double Ac,
SConst dcorr,
bool aniso,
int holdAxis,
int holdIdx,
double & rmax,
double & bdmax,
double & bmax )
inline

Definition at line 173 of file mac_stencils.hpp.

References diffResidualMaxT().

Referenced by peclet::flow::Solver< Grid >::constCoeffResidual().

◆ diffResidual() [1/2]

void peclet::flow::diffResidual ( SField r,
SConst c,
SConst b,
I3 e,
int g,
double bx,
double by,
double bz,
double Ac,
SConst dcorr,
bool aniso )
inline

Definition at line 184 of file mac_stencils.hpp.

References diffResidualT().

◆ diffResidual() [2/2]

void peclet::flow::diffResidual ( SField r,
SConst c,
SConst b,
I3 e,
int g,
double beta,
double Ac,
SConst dcorr )
inline

Definition at line 193 of file mac_stencils.hpp.

References diffResidualT().

◆ diffSmoothColorDuT()

template<bool Aniso>
double peclet::flow::diffSmoothColorDuT ( SField c,
SConst b,
I3 e,
I3 og,
int g,
double bx,
double by,
double bz,
double Ac,
int color,
SConst dcorr )
inline

Definition at line 201 of file mac_stencils.hpp.

References L3().

Referenced by diffSmoothColorDu(), and diffSmoothColorDu().

◆ diffSmoothColorDu() [1/2]

double peclet::flow::diffSmoothColorDu ( SField c,
SConst b,
I3 e,
I3 og,
int g,
double bx,
double by,
double bz,
double Ac,
int color,
SConst dcorr,
bool aniso )
inline

Definition at line 263 of file mac_stencils.hpp.

References diffSmoothColorDuT().

Referenced by peclet::flow::Solver< Grid >::smoothComp().

◆ diffSmoothColorDu() [2/2]

double peclet::flow::diffSmoothColorDu ( SField c,
SConst b,
I3 e,
I3 og,
int g,
double beta,
double Ac,
int color,
SConst dcorr )
inline

Definition at line 270 of file mac_stencils.hpp.

References diffSmoothColorDuT().

◆ poisSmoothColor()

void peclet::flow::poisSmoothColor ( SField phi,
SConst d,
I3 e,
I3 og,
int g,
int color )
inline

Definition at line 276 of file mac_stencils.hpp.

References L3().

Referenced by poisSweep().

◆ divergence()

void peclet::flow::divergence ( SConst u,
SConst v,
SConst w,
SField d,
I3 e,
int g )
inline

Definition at line 292 of file mac_stencils.hpp.

References L3().

Referenced by main(), peclet::flow::FlowReference::maxDivU(), and peclet::flow::FlowReference::step().

◆ poisSweep()

void peclet::flow::poisSweep ( SField phi,
SConst d,
I3 e,
I3 og,
int g )
inline

Definition at line 304 of file mac_stencils.hpp.

References poisSmoothColor().

Referenced by main(), p0bench::runRbgs(), and peclet::flow::FlowReference::step().

◆ restrict_()

void peclet::flow::restrict_ ( TField coarse,
TConst fine,
T3 cext,
T3 fext,
int g,
T3 cinner,
T3 ratio )
inline

◆ trilerp()

double peclet::flow::trilerp ( TConst c,
double x,
double y,
double z,
T3 cext )

Definition at line 50 of file mac_transfer.hpp.

References F, peclet::flow::T3::x, and peclet::flow::T3::y.

Referenced by prolong().

◆ prolong()

void peclet::flow::prolong ( TField fine,
TConst coarse,
T3 fext,
T3 cext,
int g,
T3 finner,
T3 ratio )
inline

◆ correct()

void peclet::flow::correct ( TField u,
TField v,
TField w,
TConst phi,
T3 e,
int g )
inline

Definition at line 85 of file mac_transfer.hpp.

Referenced by main(), and peclet::flow::FlowReference::step().

◆ residualVarPin()

void peclet::flow::residualVarPin ( CCField r,
CCConst x,
CCConst b,
FPC AC,
FPC AW,
FPC AE,
FPC AS,
FPC AN,
FPC AB,
FPC AT,
CCConst pin,
C3 e,
int g )
inline

◆ residualVarPinMax()

void peclet::flow::residualVarPinMax ( CCConst x,
CCConst b,
FPC AC,
FPC AW,
FPC AE,
FPC AS,
FPC AN,
FPC AB,
FPC AT,
CCConst pin,
C3 e,
int g,
int holdAxis,
int holdIdx,
double & rmax,
double & bdmax,
double & bmax )
inline

Definition at line 62 of file mac_velocity_mg.hpp.

References AC, and ccReduce3().

Referenced by peclet::flow::Solver< Grid >::stencilResidual().

◆ prolongMasked()

void peclet::flow::prolongMasked ( CCField fine,
CCConst coarse,
CCConst mask,
C3 fext,
C3 cext,
int g,
C3 finner,
C3 ratio,
double eps )
inline

◆ buildVelocityStaircase()

void peclet::flow::buildVelocityStaircase ( FPV AC,
FPV AW,
FPV AE,
FPV AS,
FPV AN,
FPV AB,
FPV AT,
CCConst theta,
C3 e,
int g,
double bx,
double by,
double bz,
double thresh,
double idiag )
inline

Definition at line 132 of file mac_velocity_mg.hpp.

References AC.

Referenced by peclet::flow::VelocityMG::setStaircase().

◆ pinSolidRows()

void peclet::flow::pinSolidRows ( FPV AC,
FPV AW,
FPV AE,
FPV AS,
FPV AN,
FPV AB,
FPV AT,
CCConst theta,
C3 e,
int g,
double thresh )
inline

Definition at line 159 of file mac_velocity_mg.hpp.

References AC.

Referenced by peclet::flow::VelocityMG::setStaircaseBc().

◆ buildAdvCoarse()

void peclet::flow::buildAdvCoarse ( FPV AC,
FPV AW,
FPV AE,
FPV AS,
FPV AN,
FPV AB,
FPV AT,
CCConst U,
CCConst V,
CCConst W,
int comp,
C3 e,
int g,
double bx,
double by,
double bz,
double fouw,
double sx,
double sy,
double sz,
double idiag )
inline

◆ buildConstAniso()

void peclet::flow::buildConstAniso ( FPV AC,
FPV AW,
FPV AE,
FPV AS,
FPV AN,
FPV AB,
FPV AT,
C3 e,
double bx,
double by,
double bz,
double idiag )
inline

Definition at line 206 of file mac_velocity_mg.hpp.

References AC.

Referenced by main(), and peclet::flow::VelocityMG::setDomainBcOp().

◆ boundaryFold()

void peclet::flow::boundaryFold ( FPV AC,
C3 e,
int g,
int a,
int s,
double beta )
inline

◆ fillBcGhost()

void peclet::flow::fillBcGhost ( CCField x,
C3 e,
int g,
int a,
int s,
int dirichlet )
inline

◆ zeroPlane()

◆ thresholdMask()

void peclet::flow::thresholdMask ( CCField m,
CCConst theta,
double thresh )
inline

Definition at line 283 of file mac_velocity_mg.hpp.

Referenced by peclet::flow::VelocityMG::setStaircase().

◆ maxAbsInner()

◆ maxAbsDiffInner()

double peclet::flow::maxAbsDiffInner ( CCConst a,
CCConst b,
C3 e,
int g )
inline

◆ mulMask()

void peclet::flow::mulMask ( CCField r,
CCConst m )
inline

Definition at line 325 of file mac_velocity_mg.hpp.

Referenced by peclet::flow::VelocityMG::vcycle().

◆ bottomShift()

double peclet::flow::bottomShift ( int attempt)

◆ bottomChoosePlanes()

BottomPlanes peclet::flow::bottomChoosePlanes ( C3 inner,
const int bc[6] )
inline

◆ fp32Diag()

template<class WV>
VReal peclet::flow::fp32Diag ( const WV & WX,
const WV & WY,
const WV & WZ,
long i,
long sx,
long sy,
long sz )

Definition at line 20 of file mg_fp32_vcycle.hpp.

Referenced by peclet::flow::LineRowFp32::coef(), entryFp32(), and fp32SmoothCell().

◆ fp32Flux()

template<class XV, class WV>
VReal peclet::flow::fp32Flux ( const XV & x,
const WV & WX,
const WV & WY,
const WV & WZ,
long i,
long sx,
long sy,
long sz,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm )

◆ fp32SmoothCell()

template<class XV, class BV, class WV>
void peclet::flow::fp32SmoothCell ( const XV & x,
const BV & b,
const WV & WX,
const WV & WY,
const WV & WZ,
long i,
long sx,
long sy,
long sz,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm )

Definition at line 35 of file mg_fp32_vcycle.hpp.

References fp32Diag(), and fp32Flux().

Referenced by cutcellSmoothColorFp32Box(), and cutcellSmoothColorFp32Wrap().

◆ fp32ResidualCell()

template<class RV, class XV, class BV, class WV>
void peclet::flow::fp32ResidualCell ( const RV & r,
const XV & x,
const BV & b,
const WV & WX,
const WV & WY,
const WV & WZ,
long i,
long sx,
long sy,
long sz,
long xp,
long xm,
long yp,
long ym,
long zp,
long zm )

Definition at line 46 of file mg_fp32_vcycle.hpp.

References fp32Flux().

Referenced by residualFp32Box(), and residualFp32Wrap().

◆ cutcellSmoothColorFp32Wrap()

void peclet::flow::cutcellSmoothColorFp32Wrap ( VField x,
VConst b,
VConst WX,
VConst WY,
VConst WZ,
C3 e,
C3 n,
C3 og,
int g,
int color )
inline

◆ residualFp32Wrap()

void peclet::flow::residualFp32Wrap ( VField r,
VConst x,
VConst b,
VConst WX,
VConst WY,
VConst WZ,
C3 e,
C3 n,
int g )
inline

◆ entryFp32()

void peclet::flow::entryFp32 ( VField xf,
VField rhsf,
CCConst rr,
VConst WX,
VConst WY,
VConst WZ,
double sigma,
C3 e,
C3 og,
int g,
int color,
bool smoothFirst )
inline

Definition at line 117 of file mg_fp32_vcycle.hpp.

References ccFor3(), and fp32Diag().

Referenced by peclet::flow::CutcellMG::precondVcycleFp32().

◆ restrictFp32ZeroX()

void peclet::flow::restrictFp32ZeroX ( VField coarse,
VField coarseX,
VConst fine,
C3 cext,
C3 fext,
int gc,
int gf,
C3 cinner,
C3 ratio )
inline

◆ restrictFp32ToDZeroX()

void peclet::flow::restrictFp32ToDZeroX ( CCField coarse,
CCField coarseX,
VConst fine,
C3 cext,
C3 fext,
int gc,
int gf,
C3 cinner,
C3 ratio )
inline

◆ fp32ProlongLow()

int peclet::flow::fp32ProlongLow ( int ratio,
int i,
int gc )

Definition at line 186 of file mg_fp32_vcycle.hpp.

Referenced by prolongFp32(), and prolongFp32FromD().

◆ prolongFp32()

void peclet::flow::prolongFp32 ( VField fine,
VConst coarse,
C3 fext,
C3 cext,
int gf,
int gc,
C3 finner,
C3 ratio )
inline

◆ prolongFp32FromD()

void peclet::flow::prolongFp32FromD ( VField fine,
CCConst coarse,
C3 fext,
C3 cext,
int gf,
int gc,
C3 finner,
C3 ratio )
inline

◆ fp32ProlongParent()

int peclet::flow::fp32ProlongParent ( int ratio,
int i,
int gc )

Definition at line 243 of file mg_fp32_vcycle.hpp.

Referenced by prolongConstFp32(), and prolongConstFp32FromD().

◆ prolongConstFp32()

void peclet::flow::prolongConstFp32 ( VField fine,
VConst coarse,
C3 fext,
C3 cext,
int gf,
int gc,
C3 finner,
C3 ratio )
inline

◆ prolongConstFp32FromD()

void peclet::flow::prolongConstFp32FromD ( VField fine,
CCConst coarse,
C3 fext,
C3 cext,
int gf,
int gc,
C3 finner,
C3 ratio )
inline

◆ cutcellSmoothColorFp32Box()

void peclet::flow::cutcellSmoothColorFp32Box ( VField x,
VConst b,
VConst WX,
VConst WY,
VConst WZ,
C3 e,
C3 og,
int color,
C3 lo,
C3 hi,
C3 exLo,
C3 exHi,
int wrapMask = 0,
int g = 1 )
inline

◆ residualFp32Box()

void peclet::flow::residualFp32Box ( VField r,
VConst x,
VConst b,
VConst WX,
VConst WY,
VConst WZ,
C3 e,
C3 lo,
C3 hi,
C3 exLo,
C3 exHi,
int wrapMask = 0,
int g = 1 )
inline

◆ fp32ToDouble()

void peclet::flow::fp32ToDouble ( CCField d,
VConst f,
C3 e )
inline

Definition at line 407 of file mg_fp32_vcycle.hpp.

◆ fp32AddDouble()

void peclet::flow::fp32AddDouble ( VField f,
CCConst d,
C3 e,
int g )
inline

Definition at line 414 of file mg_fp32_vcycle.hpp.

References ccFor3().

◆ lineAxesOf()

void peclet::flow::lineAxesOf ( int s,
int & a,
int & b )

Definition at line 37 of file mg_line_relax.hpp.

Referenced by lineColumn(), and lineRelaxColor().

◆ lineColumnSolve()

template<class Row, class Store>
void peclet::flow::lineColumnSolve ( const Row & R,
Store & S,
long i0,
int m,
int l3[3],
C3 n,
int g,
int wrapMask,
bool periodic )

Definition at line 123 of file mg_line_relax.hpp.

References ccMaskNbrs(), l3(), and R.

Referenced by lineColumn().

◆ lineColumn()

template<class Row, class SV>
void peclet::flow::lineColumn ( const Row & R,
const SV & c,
const SV & y,
const SV & z,
int la,
int lb,
C3 n,
int g,
int wrapMask,
bool periodic )

Definition at line 210 of file mg_line_relax.hpp.

References kLineRegs, l3(), lineAxesOf(), lineColumnSolve(), and R.

Referenced by lineRelaxColor().

◆ lineRelaxColor()

template<class Row, class SV>
void peclet::flow::lineRelaxColor ( const Row & R,
const SV & c,
const SV & y,
const SV & z,
C3 e,
C3 og,
int g,
int wrapMask,
bool periodic,
int color,
const char * name,
const char * serialName )
inline

Definition at line 232 of file mg_line_relax.hpp.

References hostRunSerial(), lineAxesOf(), lineColumn(), and R.

Referenced by lineRelaxColorFace(), and lineRelaxColorFp32().

◆ lineRelaxColorFace()

template<class OpV>
void peclet::flow::lineRelaxColorFace ( CCField x,
CCConst b,
OpV AC,
OpV AFX,
OpV AFY,
OpV AFZ,
CCField c,
CCField y,
CCField z,
C3 e,
C3 og,
int g,
int s,
bool periodic,
int wrapMask,
int color )
inline

Definition at line 269 of file mg_line_relax.hpp.

References AC, lineRelaxColor(), and R.

Referenced by peclet::flow::CutcellMG::lineSmoothColor().

◆ lineRelaxColorFp32()

void peclet::flow::lineRelaxColorFp32 ( VField x,
VConst b,
VConst WX,
VConst WY,
VConst WZ,
VField c,
VField y,
VField z,
C3 e,
C3 og,
int g,
int s,
bool periodic,
int wrapMask,
int color )
inline

Definition at line 280 of file mg_line_relax.hpp.

References lineRelaxColor(), and R.

Referenced by peclet::flow::CutcellMG::lineSmoothColorFp32().

◆ applyClosure()

◆ applyClosureFaceGhost()

◆ residentKrylov()

template<class State>
void peclet::flow::residentKrylov ( State & st,
ScalarKrylovOps & ops )
inline

Arm ops for the resident pass with the persistent slots of st (ks, pk, allocated once).

Definition at line 165 of file scalar_krylov.hpp.

References peclet::flow::skr::kNSlots.

Referenced by peclet::flow::scd::singleFieldOps(), and peclet::flow::scd::twoFieldOps().

◆ scalarBiCGStab()

template<class Ops>
ScalarKrylovResult peclet::flow::scalarBiCGStab ( Ops & ops,
const ScalarVec & b,
const ScalarVec & x,
const ScalarVec & r,
const ScalarVec & rh,
const ScalarVec & p,
const ScalarVec & v,
const ScalarVec & t,
const ScalarVec & z,
const ScalarVec & z2,
int maxit,
double rtol,
bool singular )

BiCGStab on A x = b.

ops provides void matvec(const ScalarVec& y, const ScalarVec& x) y = A x (exchanges x's ghosts itself) void precond(const ScalarVec& z, const ScalarVec& r) z = M^-1 r (a fixed linear operator) double dot(const ScalarVec& a, const ScalarVec& b) global inner-cell sum, both phases void dot2(a, b, c, double& ab, double& cc) fused (a.b, c.c), one reduction double maxabs(const ScalarVec& a) global inner-cell max |a| void removeMean(const ScalarVec& a) singular case only: the unknown-row mean C3 e; int g; the block Scratch: r, rh, p, v, t, z, z2. x holds the initial guess and the result. One pass, its true residual, and one restart pass when that is above 10 rtol ref.

Definition at line 534 of file scalar_krylov.hpp.

References peclet::flow::skr::bicgPass(), peclet::flow::skr::bicgPassResident(), and peclet::flow::skr::bicgTrueResidual().

Referenced by peclet::flow::scd::solveSingle(), and peclet::flow::scd::solveTwo().

◆ scalarBuildDiffusionVarK()

void peclet::flow::scalarBuildDiffusionVarK ( CCField AC,
CCField AW,
CCField AE,
CCField AS,
CCField AN,
CCField AB,
CCField AT,
CCConst ox,
CCConst oy,
CCConst oz,
CCConst kc,
CCConst rcp,
CCConst mask,
double idt,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

◆ scalarBuildRhsHeat()

void peclet::flow::scalarBuildRhsHeat ( CCField b,
CCConst cOld,
CCConst rcp,
double idt,
C3 e,
int g )
inline

Definition at line 133 of file scalar_transport.hpp.

Referenced by peclet::flow::Solver< Grid >::advanceScalars().

◆ scalarMaskStencil()

void peclet::flow::scalarMaskStencil ( CCField AC,
CCField AW,
CCField AE,
CCField AS,
CCField AN,
CCField AB,
CCField AT,
CCConst mask,
C3 e,
int g )
inline

Definition at line 147 of file scalar_transport.hpp.

References AC.

Referenced by peclet::flow::Solver< Grid >::advanceScalars().

◆ scalarMaskRhs()

void peclet::flow::scalarMaskRhs ( CCField b,
CCField c,
CCConst mask,
CCConst val,
C3 e,
int g )
inline

Definition at line 169 of file scalar_transport.hpp.

References val().

Referenced by peclet::flow::Solver< Grid >::advanceScalars().

◆ scalarMaskGfm()

void peclet::flow::scalarMaskGfm ( CCField AC,
CCField AW,
CCField AE,
CCField AS,
CCField AN,
CCField AB,
CCField AT,
CCField gfmB,
CCConst ox,
CCConst oy,
CCConst oz,
CCConst mask,
CCConst tgam,
CCConst gnx,
CCConst gny,
CCConst gnz,
CCConst gphi,
CCConst kc,
double Dconst,
bool useK,
double thMin,
double thMax,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0,
vof::VofMetric gm = vof::VofMetric{} )
inline

Definition at line 199 of file scalar_transport.hpp.

References AC.

Referenced by peclet::flow::Solver< Grid >::advanceScalars().

◆ scalarMaskGfm2()

void peclet::flow::scalarMaskGfm2 ( CCField AC,
CCField AW,
CCField AE,
CCField AS,
CCField AN,
CCField AB,
CCField AT,
CCField gfmB,
CCConst ox,
CCConst oy,
CCConst oz,
CCConst mask,
CCConst tgam,
CCConst gnx,
CCConst gny,
CCConst gnz,
CCConst gphi,
CCConst kap,
CCConst kc,
double Dconst,
bool useK,
double thMin,
double thMax,
int order,
bool useKappa,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0,
vof::VofMetric gm = vof::VofMetric{} )
inline

Definition at line 265 of file scalar_transport.hpp.

References AC.

Referenced by peclet::flow::Solver< Grid >::advanceScalars().

◆ scalarAddGfmRhs()

void peclet::flow::scalarAddGfmRhs ( CCField b,
CCConst gfmB,
CCConst mask,
C3 e,
int g )
inline

Definition at line 323 of file scalar_transport.hpp.

Referenced by peclet::flow::Solver< Grid >::advanceScalars().

◆ scalarBuildDiffusionOpen()

void peclet::flow::scalarBuildDiffusionOpen ( CCField AC,
CCField AW,
CCField AE,
CCField AS,
CCField AN,
CCField AB,
CCField AT,
CCConst ox,
CCConst oy,
CCConst oz,
double D,
double idt,
C3 e,
int g,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

Definition at line 343 of file scalar_transport.hpp.

References AC.

Referenced by peclet::flow::Solver< Grid >::advanceScalars().

◆ scalarBuildRhs()

void peclet::flow::scalarBuildRhs ( CCField b,
CCConst cOld,
CCConst U,
CCConst V,
CCConst W,
CCConst ox,
CCConst oy,
CCConst oz,
double idt,
int scheme,
C3 e,
int g )
inline

◆ starMakeOverlay()

StarOverlay peclet::flow::starMakeOverlay ( long n)
inline

◆ starAval()

double peclet::flow::starAval ( const StarOverlay & ov,
long k,
bool exact )

One stored aperture, at the precision the gate selects.

Gate OFF returns the float-rounded value the overlay used to store, so the default path is bitwise unchanged by the widening; gate ON returns the exact double the openness actually carries.

Definition at line 55 of file star_elimination.hpp.

References peclet::flow::StarOverlay::a.

Referenced by starApplyDelta(), and starCorrectFaces().

◆ starWrap()

int peclet::flow::starWrap ( int v,
int n )

Definition at line 62 of file star_elimination.hpp.

Referenced by starApplyDelta(), and starCorrectFaces().

◆ buildStarOverlay()

int peclet::flow::buildStarOverlay ( CCConst sdf,
CCConst ox,
CCConst oy,
CCConst oz,
C3 ext,
int g,
C3 nn,
const StarOverlay & ov,
Kokkos::View< int, CCMem > counter )
inline

Count + fill the star overlay from the cell-centered sdf and the ORIGINAL (unfiltered) apertures on the extended block (ext, ghost width g); nn = inner extents.

Single-rank periodic (neighbour access wraps over the inner grid). Pass ov with capacity >= the count of a prior sizing call (fill = ov.cell.extent(0) > 0). Returns the row count via the host copy of counter.

Definition at line 72 of file star_elimination.hpp.

References peclet::flow::StarOverlay::a, peclet::flow::StarOverlay::cell, peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

Referenced by peclet::flow::Solver< Grid >::setSolidStarOverlay().

◆ starApplyDelta()

void peclet::flow::starApplyDelta ( CCField y,
CCConst x,
const StarOverlay & ov,
int nOv,
C3 nn,
C3 extY,
int gY,
C3 extX,
int gX,
bool exact )
inline

y += S_star x over the inner cells of the (extY, gY) block, x read from the (extX, gX) block, both periodic via inner-grid wrap.

Sign convention of applyCutcellOp (positive-definite): row i gains a_si (x_i - phibar_s). Atomic adds (several stars can touch one row).

Definition at line 114 of file star_elimination.hpp.

References peclet::flow::StarOverlay::cell, starAval(), starWrap(), peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

Referenced by peclet::flow::CutcellMG::guessMatvec().

◆ starCorrectFaces()

void peclet::flow::starCorrectFaces ( CCField uf,
CCField vf,
CCField wf,
CCConst phi,
const StarOverlay & ov,
int nOv,
C3 nn,
C3 ext,
int g,
C3 extP,
int gP,
bool exact,
double wx = 1.0,
double wy = 1.0,
double wz = 1.0 )
inline

Fix the face correction at fluid|solid faces: projectCorrect applied -(phi_hi - phi_lo) with the solid side's (decoupled) phi = 0; the mode-B correction wants the solid value phibar_s.

Difference per face: +phibar_s when s is the LOW cell, -phibar_s when s is the HIGH cell. Each such face has exactly one solid side (both-solid faces carry no constraint), so no atomics. phi is read on the (extP, gP) block; the face fields live on the (ext, g) block with the o(i)-is-low-face convention (face k=+side of s == low face of the + neighbour).

PHASE 2 (anisotropic cells, doc/anisotropic_metric.md §3): this is a FIX-UP of what projectCorrect applied, and projectCorrect now applies -w_a (phi_hi - phi_lo) per axis – so the difference this kernel adds back carries the SAME per-axis weight w_a of the face's own axis, applied outside the existing expression. w = (1,1,1) isotropic (exact).

Definition at line 181 of file star_elimination.hpp.

References peclet::flow::StarOverlay::cell, starAval(), starWrap(), peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

Variable Documentation

◆ kVofMomBlocksMsg

const char* peclet::flow::kVofMomBlocksMsg
inlineconstexpr
Initial value:
=
"enable_vof_momentum and enable_vof_blocks* are not composable: momentum-consistent transport "
"advects rho*u with the geometric fluxes of the ONE structured colour field (at the head of "
"step()) and skips the colour stage that advects the block markers, so the markers would never "
"move and the momentum fluxes would not be theirs. Use the structured colour field with "
"enable_vof_momentum, or the block container without it."

enable_vof_momentum x enable_vof_blocks*: refused in EITHER call order.

Momentum consistency advects rho^c u with the fluxes of the ONE structured colour field (vofAdv_) at the head of step() and then skips advectVof() – which is the only slot that advects the block markers. The combination would leave every marker frozen while the momentum rode the fluxes of a union field that is not the markers' own.

Definition at line 19 of file flow_ibm_vof.hpp.

Referenced by peclet::flow::Solver< Grid >::enableVofMomentum(), and peclet::flow::Solver< Grid >::prepareVofBlocks().

◆ gpStateName

const char* peclet::flow::gpStateName[5] = {"COUPLED", "QUAD", "LIN", "BC_ONLY", "EXPLICIT"}
inlineconstexpr

Face-state names, indexed by GpOverlayT::state (GP_COUPLED .. GP_EXPLICIT).

Definition at line 57 of file ghost_projection_debug.hpp.

Referenced by gpPrintCensus(), and gpPrintWorstRows().

◆ kHostSerialCellCutoff

long peclet::flow::kHostSerialCellCutoff = 8192L
inlineconstexpr

Definition at line 285 of file mac_cutcell.hpp.

Referenced by hostRunSerial().

◆ kShellRunCells

long peclet::flow::kShellRunCells = 8L
inlineconstexpr

Definition at line 289 of file mac_cutcell.hpp.

Referenced by ccBoxShellRuns().

◆ kBottomMaxCells

◆ kAutoMinLevels

int peclet::flow::kAutoMinLevels = 4
inlineconstexpr

◆ kAutoMaxLevels

int peclet::flow::kAutoMaxLevels = 30
inlineconstexpr

Definition at line 687 of file mac_cutcell_mg.hpp.

Referenced by peclet::flow::CutcellMG::init().

◆ kAnchoredFollowsGrid

bool peclet::flow::kAnchoredFollowsGrid = false
inlineconstexpr

Definition at line 688 of file mac_cutcell_mg.hpp.

Referenced by peclet::flow::CutcellMG::bottomAdmissible().

◆ kBottomTau

double peclet::flow::kBottomTau = 1e-5
inlineconstexpr

◆ kBottomMaxComponents

int peclet::flow::kBottomMaxComponents = 64
inlineconstexpr

◆ kBottomCap

int peclet::flow::kBottomCap = 100
inlineconstexpr

◆ kBottomHostTeam

int peclet::flow::kBottomHostTeam = 1
inlineconstexpr

Definition at line 702 of file mac_cutcell_mg.hpp.

Referenced by peclet::flow::CutcellMG::directTeam().

◆ kBottomHostFactorTeam

int peclet::flow::kBottomHostFactorTeam = 6
inlineconstexpr

Definition at line 710 of file mac_cutcell_mg.hpp.

Referenced by peclet::flow::CutcellMG::launchDirectFactor().

◆ kCaDefault

int peclet::flow::kCaDefault = std::is_same_v<CCMem, Kokkos::HostSpace> ? kCaBoth : 0
inlineconstexpr

Definition at line 1092 of file mac_cutcell_mg.hpp.

◆ kBottomMaxPlane

◆ kBottomTile

◆ kBottomPivotTol

◆ kBottomAttempts

◆ kLineRegs

int peclet::flow::kLineRegs = 64
constexpr

Definition at line 103 of file mg_line_relax.hpp.

Referenced by lineColumn().