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

Classes

struct  CutContext
 The solver state the phases of one cut-cell solve read: the block, the operator's unknown and kappa masks, and the communicator with the solve's all-rank reductions. More...
struct  KrylovContext
 What the Krylov closures of one solve read beyond cx: the state, and the singular projection's solid unknown mask (two-field only) and unknown count. More...
struct  FaceFluxCounts
 What the face-flux pass counted: the faces carrying flux, those the guard zeroed, and the largest face speed of the projection. More...

Functions

void ensureField (CCField &f, std::size_t n, const std::string &name, const char *tag)
 (Re)allocate a per-scalar cell field when the block size changed.
CutContext cutContext (C3 e, int g, std::size_t n, const scg::ScalarCutGeometry &gm, bool distributed)
 The context of one cut-cell solve on this rank's block; in MPI builds the caller sets comm.
template<class Grid>
FaceFluxCounts faceFluxPass (Solver< Grid > &s, ScalarField &sc, bool steady, const bool openHere[6], const CCField openFlux[6], const CutContext &cx)
 The face flux of the projection in force, guarded (sco::faceFluxes); the open (inflow/outflow) global faces this rank touches take the captured boundary-face flux openFlux[f], written over the guard's 0 (WO-5b, §6.5).
template<class Units>
void advectionMaxima (const ScalarCutState &st, double vmax, double vcell, const CutContext &cx, const Units &u, double mx[4])
 The all-rank maxima of the face flux: max |phi|, the face speed, A2's census max_cell_peclet (max |phi_a| / (Lam' w_a) over interior faces) and the collocated CELL speed vcell.
void refuseUnadvectable (const std::string &name, const double mx[4], bool noFaceField, bool noProjection, bool noOpenFlux)
 The moving fluids the cut-cell scalar cannot advect, refused rather than silently ignored: noFaceField (collocated, the projected face field never built), noProjection (no cut-cell pressure operator), noOpenFlux (an open face whose flux no projection has supplied yet).
void resetAdvectionCensus (ScalarCutState &st)
 The advection census of the last advance, zeroed before it is counted.
void countGuardedOnly (ScalarCutState &st, long nGuard, const CutContext &cx)
 No face carries flux: only the guarded faces are counted (all ranks).
template<class Grid>
void classifySmallCells (Solver< Grid > &s, ScalarField &sc, const scg::ScalarCutGeometry &gm, double dt, const CutContext &cx)
 §6.3, transient: C_bulk = the global MAX over full cells of dt Out / V, then the per-cell small-cell flags, their ghosts the owner's.
void countAdvection (ScalarField &sc, bool steady, const bool openHere[6], const FaceFluxCounts &fc, const CutContext &cx)
 The advection census (all ranks): small cells, implicit faces, faces carrying flux, guarded faces and outflow-face backflow rows; it also marks the open-face rows built.
template<class Grid>
void warnBackflow (const Solver< Grid > &s, ScalarField &sc, bool steady)
 Review finding 2a (ruling D-WOR-2a): A2 requires an implicit backflow row to be reported.
void allocateWork (ScalarField &sc, std::size_t n, long numFacets)
 The surrogate diagonal, the Krylov scratch and the per-facet coefficients, sized to the block.
template<class Units>
void operatorScalars (ScalarCutState &st, bool steady, double dt, double D, const Units &u, long numUnknowns)
 The operator's internal coefficients from the stored physical values (§1.2, at advance time) and the mean-gradient mode (§1.5).
template<class Units>
sco::WallTable wallTable (ScalarCutState &st, int nb, const Units &u)
 The per-body wall table, resolved and converted (§4.2), and its persistent device copy.
void rightHandSide (ScalarField &sc, const scg::ScalarCutGeometry &gm, const CutContext &cx)
 The right-hand side: kappa (idt c^n + S') + the walls' rw.
template<class Units>
Kokkos::View< double *, CCMem > dirichletFaceValues (ScalarField &sc, int f, const int n[3], C3 origin, const Units &u)
 The Dirichlet value per face cell of domain face f (§1.4), in the persistent gFace[f]: the profile or the uniform value, in mean-gradient mode theta_bf = g - G.x_bf (§1.5).
template<class Grid, class Units>
void advectionOperator (Solver< Grid > &s, ScalarField &sc, bool steady, const CutContext &cx, const Units &u)
 The advection operator (WO-5, §6) once some face carries flux: the implicit FOU bands (their outflow lumps into the surrogate diagonal through AC), the explicit faces' net outflow at c^n on the rhs, the open domain faces' rows and the mean-gradient source.
template<class Units>
void conjugateOperator (ScalarField &sc, const scg::ScalarCutGeometry &gm, const sco::MaterialTable &mt, const sco::MeanGradPosition &mgPos, const CutContext &cx, const Units &u)
 WO-7: the solid phase's operator (§1.4 solid row, §4.1): psi_s^n, the face products, the mass C_s K kappa_s idt, the 7 bands, the rhs; the per-facet interface coupling cc; the mean-gradient terms of §1.5 on the solid faces and the conjugate facets; the two-field level-0 surrogate.
bool singularSolve (const ScalarCutState &st, bool steady, bool anyDir, const int bc[6], const CutContext &cx)
 The singular case (§5.1): steady, no facet with G > 0, no Dirichlet domain face anywhere.
template<class Units>
ScalarMG::Inputs mgInputs (ScalarField &sc, const scg::ScalarCutGeometry &gm, bool steady, const CutContext &cx, const Units &u)
 Everything ScalarMG's build reads from this operator (§5.2; ruling D-WO3-3).
template<class Grid>
void warnShallowBottom (const Solver< Grid > &s, ScalarField &sc, bool fullTable)
 Review finding 4 (ruling D-WOR-4): the full table's bottom is a fixed number of smoothing sweeps on whatever level the table stops at – there is no agglomerated exact coarse solve (CutcellMG's 'auto' bottom).
void removeMean (const CutContext &cx, CCField a, double nUnk)
 Subtract the unknowns' mean from a fluid field (the singular projection, §5.1).
void removeMeanTwo (const CutContext &cx, CCField a, CCField as, const CCConst &sunk, double nTot)
 The same over both phases' unknowns (the null vector is constant in psi).
CCField projectedRhs (ScalarField &sc, const CutContext &cx)
 The right-hand side the single-field Krylov sees: b, or (singular) its projection onto the range, with the incompatibility |sum b| / sum |b| recorded.
template<class Grid>
ScalarKrylovOps singleFieldOps (Solver< Grid > &s, ScalarField &sc, const KrylovContext &k)
 The single-field Krylov operations: the operator, one ScalarMG V-cycle on the surrogate (§5.2; level 0 alone under the transient level rule), the all-rank dots and maxima; single rank, the device-resident pass (WO-9b, scalar_krylov.hpp).
ScalarVec fieldVec (CCField f)
ScalarVec fieldVecTwo (CCField f, CCField s2)
void remeasureAfterGauge (ScalarKrylovResult &kr, const ScalarKrylovOps &ops, const ScalarVec &t, const ScalarVec &x, const ScalarVec &b, const ScalarCutState &st, const CutContext &cx)
 Review finding 5 (ruling D-WOR-5): the gauge shift delta adds delta A 1 = delta div to the residual, so the reported residual and flag are re-measured after it – the Krylov's own true-residual definition (the projected rhs, mean removed), its reference and its 10 rtol.
template<class Grid>
ScalarKrylovResult solveSingle (Solver< Grid > &s, ScalarField &sc, const CutContext &cx)
 The single-field solve: BiCGStab on c, and for the singular case the gauge sum kappa V c kept at its pre-solve value (§5.1; 0 in mean-gradient mode).
void projectedRhsTwo (ScalarField &sc, const CutContext &cx, CCField &bKf, CCField &bKs)
 The two-field right-hand side {b, b_s}, or (singular) its projection over both phases.
void twoFieldMoments (ScalarField &sc, const sco::MaterialTable &mt, const CutContext &cx, double m[2])
 gauge (§5.1): sum kappa V c + sum C_s K kappa_s V psi_s over both phases, all ranks.
template<class Grid>
ScalarKrylovOps twoFieldOps (Solver< Grid > &s, ScalarField &sc, const KrylovContext &k)
 The two-field Krylov operations: ScalarVec {c, psi_s}; dots and maxima over both fields; the singular projection over both phases' unknowns (k.sunk, k.nUnk = both phases' count).
template<class Grid>
ScalarKrylovResult solveTwo (Solver< Grid > &s, ScalarField &sc, const sco::MaterialTable &mt, const CutContext &cx)
 WO-7: the two-field solve (§5.1 on both phases): the same BiCGStab on {c, psi_s}, the gauge weights kappa and C_s K kappa_s.
void recordSolve (ScalarField &sc, const ScalarKrylovResult &kr, const CutContext &cx)
 The solve's statistics and the once-per-scalar non-convergence warning (rank 0).

Function Documentation

◆ ensureField()

void peclet::flow::scd::ensureField ( CCField & f,
std::size_t n,
const std::string & name,
const char * tag )
inline

(Re)allocate a per-scalar cell field when the block size changed.

Definition at line 717 of file flow_ibm_scalars_cutcell.hpp.

Referenced by allocateWork(), conjugateOperator(), projectedRhs(), projectedRhsTwo(), peclet::flow::Solver< Grid >::scalarCutAdvection(), and solveTwo().

◆ cutContext()

◆ faceFluxPass()

template<class Grid>
FaceFluxCounts peclet::flow::scd::faceFluxPass ( Solver< Grid > & s,
ScalarField & sc,
bool steady,
const bool openHere[6],
const CCField openFlux[6],
const CutContext & cx )
inline

The face flux of the projection in force, guarded (sco::faceFluxes); the open (inflow/outflow) global faces this rank touches take the captured boundary-face flux openFlux[f], written over the guard's 0 (WO-5b, §6.5).

A steady solve fills the face velocity's ghosts itself.

Definition at line 793 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::scd::CutContext::e, peclet::flow::sco::faceFluxCountsLocal(), peclet::flow::sco::faceFluxes(), peclet::flow::scd::CutContext::g, peclet::flow::sco::maxabsLocal(), peclet::flow::Solver< Grid >::ScalarFaceFlux::open, peclet::flow::sco::openFaceFluxes(), peclet::flow::scd::CutContext::unk, and peclet::flow::Solver< Grid >::ScalarFaceFlux::vel.

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

◆ advectionMaxima()

template<class Units>
void peclet::flow::scd::advectionMaxima ( const ScalarCutState & st,
double vmax,
double vcell,
const CutContext & cx,
const Units & u,
double mx[4] )
inline

The all-rank maxima of the face flux: max |phi|, the face speed, A2's census max_cell_peclet (max |phi_a| / (Lam' w_a) over interior faces) and the collocated CELL speed vcell.

Definition at line 822 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::scd::CutContext::distributed, peclet::flow::scd::CutContext::e, peclet::flow::scd::CutContext::g, peclet::flow::sco::maxAbsFluxLocal(), peclet::flow::sco::maxCellPecletLocal(), and peclet::flow::scd::CutContext::unk.

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

◆ refuseUnadvectable()

void peclet::flow::scd::refuseUnadvectable ( const std::string & name,
const double mx[4],
bool noFaceField,
bool noProjection,
bool noOpenFlux )
inline

The moving fluids the cut-cell scalar cannot advect, refused rather than silently ignored: noFaceField (collocated, the projected face field never built), noProjection (no cut-cell pressure operator), noOpenFlux (an open face whose flux no projection has supplied yet).

Definition at line 844 of file flow_ibm_scalars_cutcell.hpp.

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

◆ resetAdvectionCensus()

void peclet::flow::scd::resetAdvectionCensus ( ScalarCutState & st)
inline

The advection census of the last advance, zeroed before it is counted.

Definition at line 877 of file flow_ibm_scalars_cutcell.hpp.

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

◆ countGuardedOnly()

void peclet::flow::scd::countGuardedOnly ( ScalarCutState & st,
long nGuard,
const CutContext & cx )
inline

No face carries flux: only the guarded faces are counted (all ranks).

Definition at line 887 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::scd::CutContext::distributed.

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

◆ classifySmallCells()

◆ countAdvection()

void peclet::flow::scd::countAdvection ( ScalarField & sc,
bool steady,
const bool openHere[6],
const FaceFluxCounts & fc,
const CutContext & cx )
inline

The advection census (all ranks): small cells, implicit faces, faces carrying flux, guarded faces and outflow-face backflow rows; it also marks the open-face rows built.

Definition at line 944 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::sco::countImplicitLocal(), peclet::flow::sco::countSmallLocal(), peclet::flow::scd::CutContext::distributed, peclet::flow::scd::CutContext::e, peclet::flow::scd::CutContext::g, peclet::flow::sco::openFaceCountsLocal(), and peclet::flow::scd::CutContext::unk.

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

◆ warnBackflow()

template<class Grid>
void peclet::flow::scd::warnBackflow ( const Solver< Grid > & s,
ScalarField & sc,
bool steady )
inline

Review finding 2a (ruling D-WOR-2a): A2 requires an implicit backflow row to be reported.

Such a row is AC += F_out < 0 (inflow at the zero-gradient value c_i); it costs the column its dominance (no M-matrix there), and A2's coarse mass omega_open is clamped at 0 on it.

Definition at line 983 of file flow_ibm_scalars_cutcell.hpp.

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

◆ allocateWork()

void peclet::flow::scd::allocateWork ( ScalarField & sc,
std::size_t n,
long numFacets )
inline

The surrogate diagonal, the Krylov scratch and the per-facet coefficients, sized to the block.

Definition at line 1001 of file flow_ibm_scalars_cutcell.hpp.

References ensureField().

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

◆ operatorScalars()

template<class Units>
void peclet::flow::scd::operatorScalars ( ScalarCutState & st,
bool steady,
double dt,
double D,
const Units & u,
long numUnknowns )
inline

The operator's internal coefficients from the stored physical values (§1.2, at advance time) and the mean-gradient mode (§1.5).

Definition at line 1020 of file flow_ibm_scalars_cutcell.hpp.

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

◆ wallTable()

template<class Units>
sco::WallTable peclet::flow::scd::wallTable ( ScalarCutState & st,
int nb,
const Units & u )
inline

The per-body wall table, resolved and converted (§4.2), and its persistent device copy.

Definition at line 1042 of file flow_ibm_scalars_cutcell.hpp.

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

◆ rightHandSide()

◆ dirichletFaceValues()

template<class Units>
Kokkos::View< double *, CCMem > peclet::flow::scd::dirichletFaceValues ( ScalarField & sc,
int f,
const int n[3],
C3 origin,
const Units & u )
inline

The Dirichlet value per face cell of domain face f (§1.4), in the persistent gFace[f]: the profile or the uniform value, in mean-gradient mode theta_bf = g - G.x_bf (§1.5).

Definition at line 1107 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::sco::faceTangents(), peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

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

◆ advectionOperator()

template<class Grid, class Units>
void peclet::flow::scd::advectionOperator ( Solver< Grid > & s,
ScalarField & sc,
bool steady,
const CutContext & cx,
const Units & u )
inline

◆ conjugateOperator()

◆ singularSolve()

bool peclet::flow::scd::singularSolve ( const ScalarCutState & st,
bool steady,
bool anyDir,
const int bc[6],
const CutContext & cx )
inline

The singular case (§5.1): steady, no facet with G > 0, no Dirichlet domain face anywhere.

Definition at line 1260 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::scd::CutContext::distributed, and peclet::flow::sco::maxFacetLocal().

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

◆ mgInputs()

template<class Units>
ScalarMG::Inputs peclet::flow::scd::mgInputs ( ScalarField & sc,
const scg::ScalarCutGeometry & gm,
bool steady,
const CutContext & cx,
const Units & u )
inline

Everything ScalarMG's build reads from this operator (§5.2; ruling D-WO3-3).

Definition at line 1291 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::ScalarMG::Inputs::AB, peclet::flow::ScalarMG::Inputs::advective, peclet::flow::ScalarMG::Inputs::AE, peclet::flow::ScalarMG::Inputs::AN, peclet::flow::ScalarMG::Inputs::AS, peclet::flow::ScalarMG::Inputs::AT, peclet::flow::ScalarMG::Inputs::AW, peclet::flow::ScalarMG::Inputs::dirFace, peclet::flow::ScalarMG::Inputs::fac, peclet::flow::scg::ScalarCutGeometry::fac, peclet::flow::ScalarMG::Inputs::facetC, peclet::flow::ScalarMG::Inputs::facetW, peclet::flow::ScalarMG::Inputs::fullTable, peclet::flow::ScalarMG::Inputs::hasOutflow, peclet::flow::ScalarMG::Inputs::idt, peclet::flow::scd::CutContext::kap, peclet::flow::ScalarMG::Inputs::kappa, peclet::flow::ScalarMG::kFullTableKappa, peclet::flow::ScalarMG::Inputs::lam, peclet::flow::ScalarMG::Inputs::ms0, peclet::flow::ScalarMG::Inputs::omegaOpen, peclet::flow::ScalarMG::Inputs::outflow, peclet::flow::ScalarMG::Inputs::phi, peclet::flow::ScalarMG::Inputs::SAC, peclet::flow::ScalarMG::Inputs::SACs, peclet::flow::ScalarMG::Inputs::sax, peclet::flow::scg::ScalarCutGeometry::sax, peclet::flow::ScalarMG::Inputs::say, peclet::flow::scg::ScalarCutGeometry::say, peclet::flow::ScalarMG::Inputs::saz, peclet::flow::scg::ScalarCutGeometry::saz, peclet::flow::ScalarMG::Inputs::singular, peclet::flow::ScalarMG::Inputs::spx, peclet::flow::ScalarMG::Inputs::spy, peclet::flow::ScalarMG::Inputs::spz, peclet::flow::ScalarMG::Inputs::sunk, peclet::flow::ScalarMG::Inputs::twoPhase, peclet::flow::scd::CutContext::unk, peclet::flow::ScalarMG::Inputs::unknown, and peclet::flow::ScalarMG::Inputs::W0.

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

◆ warnShallowBottom()

template<class Grid>
void peclet::flow::scd::warnShallowBottom ( const Solver< Grid > & s,
ScalarField & sc,
bool fullTable )
inline

Review finding 4 (ruling D-WOR-4): the full table's bottom is a fixed number of smoothing sweeps on whatever level the table stops at – there is no agglomerated exact coarse solve (CutcellMG's 'auto' bottom).

An axis that cannot halve (odd, 2-poor, or an odd MPI block or origin) stops the table on a large grid, and the iterations then grow with it. Warned once per scalar, against the pressure's own bottom extent (set_pressure_bottom_extent).

Definition at line 1352 of file flow_ibm_scalars_cutcell.hpp.

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

◆ removeMean()

void peclet::flow::scd::removeMean ( const CutContext & cx,
CCField a,
double nUnk )
inline

◆ removeMeanTwo()

void peclet::flow::scd::removeMeanTwo ( const CutContext & cx,
CCField a,
CCField as,
const CCConst & sunk,
double nTot )
inline

◆ projectedRhs()

CCField peclet::flow::scd::projectedRhs ( ScalarField & sc,
const CutContext & cx )
inline

The right-hand side the single-field Krylov sees: b, or (singular) its projection onto the range, with the incompatibility |sum b| / sum |b| recorded.

Definition at line 1397 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::sco::addOnUnknown(), peclet::flow::scd::CutContext::allSum(), peclet::flow::scd::CutContext::e, ensureField(), peclet::flow::scd::CutContext::g, peclet::flow::scd::CutContext::n, peclet::flow::sco::sumUnknownLocal(), and peclet::flow::scd::CutContext::unk.

Referenced by solveSingle().

◆ singleFieldOps()

template<class Grid>
ScalarKrylovOps peclet::flow::scd::singleFieldOps ( Solver< Grid > & s,
ScalarField & sc,
const KrylovContext & k )
inline

The single-field Krylov operations: the operator, one ScalarMG V-cycle on the surrogate (§5.2; level 0 alone under the transient level rule), the all-rank dots and maxima; single rank, the device-resident pass (WO-9b, scalar_krylov.hpp).

The closures hold references to s, sc, k and k.cx, all owned by the caller of the solve and alive until it returns.

Definition at line 1422 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::scd::CutContext::allMax(), peclet::flow::scd::CutContext::allSum(), peclet::flow::scd::CutContext::distributed, peclet::flow::sco::dot2Local(), peclet::flow::sco::dot2Reduce(), peclet::flow::sco::dotLocal(), peclet::flow::sco::dotReduce(), peclet::flow::scd::CutContext::e, peclet::flow::scd::CutContext::g, peclet::flow::sco::maxabsLocal(), peclet::flow::sco::maxabsReduce(), removeMean(), and peclet::flow::residentKrylov().

Referenced by solveSingle().

◆ fieldVec()

ScalarVec peclet::flow::scd::fieldVec ( CCField f)
inline

Definition at line 1475 of file flow_ibm_scalars_cutcell.hpp.

Referenced by solveSingle().

◆ fieldVecTwo()

ScalarVec peclet::flow::scd::fieldVecTwo ( CCField f,
CCField s2 )
inline

Definition at line 1481 of file flow_ibm_scalars_cutcell.hpp.

Referenced by solveTwo().

◆ remeasureAfterGauge()

void peclet::flow::scd::remeasureAfterGauge ( ScalarKrylovResult & kr,
const ScalarKrylovOps & ops,
const ScalarVec & t,
const ScalarVec & x,
const ScalarVec & b,
const ScalarCutState & st,
const CutContext & cx )
inline

Review finding 5 (ruling D-WOR-5): the gauge shift delta adds delta A 1 = delta div to the residual, so the reported residual and flag are re-measured after it – the Krylov's own true-residual definition (the projected rhs, mean removed), its reference and its 10 rtol.

Definition at line 1492 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::ScalarKrylovResult::converged, peclet::flow::scd::CutContext::e, peclet::flow::scd::CutContext::g, peclet::flow::ScalarKrylovResult::ref, peclet::flow::skr::residualFrom(), and peclet::flow::ScalarKrylovResult::trueRes.

Referenced by solveSingle(), and solveTwo().

◆ solveSingle()

template<class Grid>
ScalarKrylovResult peclet::flow::scd::solveSingle ( Solver< Grid > & s,
ScalarField & sc,
const CutContext & cx )
inline

◆ projectedRhsTwo()

void peclet::flow::scd::projectedRhsTwo ( ScalarField & sc,
const CutContext & cx,
CCField & bKf,
CCField & bKs )
inline

◆ twoFieldMoments()

void peclet::flow::scd::twoFieldMoments ( ScalarField & sc,
const sco::MaterialTable & mt,
const CutContext & cx,
double m[2] )
inline

◆ twoFieldOps()

template<class Grid>
ScalarKrylovOps peclet::flow::scd::twoFieldOps ( Solver< Grid > & s,
ScalarField & sc,
const KrylovContext & k )
inline

The two-field Krylov operations: ScalarVec {c, psi_s}; dots and maxima over both fields; the singular projection over both phases' unknowns (k.sunk, k.nUnk = both phases' count).

The closures hold references to s, sc, k and k.cx, all owned by the caller of the solve and alive until it returns.

Definition at line 1584 of file flow_ibm_scalars_cutcell.hpp.

References peclet::flow::scd::CutContext::allMax(), peclet::flow::scd::CutContext::allSum(), peclet::flow::scd::CutContext::distributed, peclet::flow::sco::dot2TwoLocal(), peclet::flow::sco::dot2TwoReduce(), peclet::flow::sco::dotTwoLocal(), peclet::flow::sco::dotTwoReduce(), peclet::flow::scd::CutContext::e, peclet::flow::scd::CutContext::g, peclet::flow::sco::maxabsLocal(), peclet::flow::sco::maxabsReduce(), removeMeanTwo(), and peclet::flow::residentKrylov().

Referenced by solveTwo().

◆ solveTwo()

template<class Grid>
ScalarKrylovResult peclet::flow::scd::solveTwo ( Solver< Grid > & s,
ScalarField & sc,
const sco::MaterialTable & mt,
const CutContext & cx )
inline

◆ recordSolve()

void peclet::flow::scd::recordSolve ( ScalarField & sc,
const ScalarKrylovResult & kr,
const CutContext & cx )
inline