|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
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). | |
|
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().
|
inline |
The context of one cut-cell solve on this rank's block; in MPI builds the caller sets comm.
Definition at line 770 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::scd::CutContext::kap, peclet::flow::scg::ScalarCutGeometry::kappa, peclet::flow::scd::CutContext::n, peclet::flow::scd::CutContext::unk, and peclet::flow::scg::ScalarCutGeometry::unknown.
Referenced by peclet::flow::Solver< Grid >::scalarCutAdvection(), and peclet::flow::Solver< Grid >::scalarCutAssembleSolve().
|
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().
|
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().
|
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().
|
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().
|
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().
|
inline |
§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.
Definition at line 903 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::sco::bulkCourantLocal(), peclet::flow::scd::CutContext::distributed, peclet::flow::scd::CutContext::e, peclet::flow::scd::CutContext::g, peclet::flow::scd::CutContext::kap, peclet::flow::scg::ScalarCutGeometry::sax, peclet::flow::scg::ScalarCutGeometry::say, peclet::flow::scg::ScalarCutGeometry::saz, peclet::flow::sco::smallCells(), peclet::flow::scd::CutContext::unk, and peclet::flow::sco::zeroNonUnknown().
Referenced by peclet::flow::Solver< Grid >::scalarCutAdvection().
|
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().
|
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().
|
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().
|
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().
|
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().
|
inline |
The right-hand side: kappa (idt c^n + S') + the walls' rw.
Definition at line 1092 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::sco::buildRhs(), peclet::flow::scd::CutContext::e, peclet::flow::scg::ScalarCutGeometry::fac, peclet::flow::scd::CutContext::g, peclet::flow::scd::CutContext::kap, peclet::flow::scd::CutContext::n, peclet::flow::sco::overlayRhs(), and peclet::flow::scd::CutContext::unk.
Referenced by peclet::flow::Solver< Grid >::scalarCutAssembleSolve().
|
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().
|
inline |
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.
Definition at line 1150 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::sco::advectionBands(), peclet::flow::sco::cellVelocitySumLocal(), peclet::flow::sco::clampNonNegative(), peclet::flow::scd::CutContext::distributed, peclet::flow::scd::CutContext::e, peclet::flow::sco::explicitAdvectionRhs(), peclet::flow::sco::explicitFaceFluxes(), peclet::flow::scd::CutContext::g, peclet::flow::scd::CutContext::kap, peclet::flow::sco::kappaMomentsLocal(), peclet::flow::sco::meanGradientAdvectionRhs(), peclet::flow::scd::CutContext::n, peclet::flow::sco::openFaceAdvection(), and peclet::flow::scd::CutContext::unk.
Referenced by peclet::flow::Solver< Grid >::scalarCutAssembleSolve().
|
inline |
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.
Definition at line 1211 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::sco::conjMeanGradientShift(), peclet::flow::sco::conjSurrogate(), peclet::flow::sco::conjugateCoefficients(), peclet::flow::scd::CutContext::e, ensureField(), peclet::flow::scg::ScalarCutGeometry::fac, peclet::flow::scd::CutContext::g, peclet::flow::scd::CutContext::kap, peclet::flow::scd::CutContext::n, peclet::flow::scg::ScalarFacetOverlay::n, peclet::flow::scg::ScalarCutGeometry::sax, peclet::flow::scg::ScalarCutGeometry::say, peclet::flow::scg::ScalarCutGeometry::saz, peclet::flow::sco::solidBands(), peclet::flow::sco::solidFaceProducts(), peclet::flow::sco::solidMass(), peclet::flow::sco::solidMeanGradientFaceRhs(), peclet::flow::sco::solidRhs(), peclet::flow::scd::CutContext::unk, and peclet::flow::sco::zeroNonUnknown().
Referenced by peclet::flow::Solver< Grid >::scalarCutAssembleSolve().
|
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().
|
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().
|
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().
|
inline |
Subtract the unknowns' mean from a fluid field (the singular projection, §5.1).
Definition at line 1373 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::sco::addOnUnknown(), peclet::flow::scd::CutContext::allSum(), peclet::flow::scd::CutContext::e, peclet::flow::scd::CutContext::g, peclet::flow::sco::sumUnknownLocal(), and peclet::flow::scd::CutContext::unk.
Referenced by singleFieldOps().
|
inline |
The same over both phases' unknowns (the null vector is constant in psi).
Definition at line 1382 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::sco::addOnUnknown(), peclet::flow::scd::CutContext::allSum(), peclet::flow::scd::CutContext::e, peclet::flow::scd::CutContext::g, peclet::flow::sco::sumUnknownLocal(), and peclet::flow::scd::CutContext::unk.
Referenced by twoFieldOps().
|
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().
|
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().
Definition at line 1475 of file flow_ibm_scalars_cutcell.hpp.
Referenced by solveSingle().
Definition at line 1481 of file flow_ibm_scalars_cutcell.hpp.
Referenced by solveTwo().
|
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().
|
inline |
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).
Definition at line 1507 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::sco::addOnUnknown(), peclet::flow::scd::CutContext::allSum(), peclet::flow::scd::CutContext::e, fieldVec(), peclet::flow::scd::CutContext::g, peclet::flow::scd::CutContext::kap, peclet::flow::sco::kappaMomentsLocal(), projectedRhs(), remeasureAfterGauge(), peclet::flow::scalarBiCGStab(), singleFieldOps(), and peclet::flow::scd::CutContext::unk.
Referenced by peclet::flow::Solver< Grid >::scalarCutAssembleSolve().
|
inline |
The two-field right-hand side {b, b_s}, or (singular) its projection over both phases.
Definition at line 1537 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 solveTwo().
|
inline |
gauge (§5.1): sum kappa V c + sum C_s K kappa_s V psi_s over both phases, all ranks.
Definition at line 1567 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::scd::CutContext::allSum(), peclet::flow::scd::CutContext::e, peclet::flow::scd::CutContext::g, peclet::flow::scd::CutContext::kap, peclet::flow::sco::kappaMomentsLocal(), peclet::flow::sco::solidMomentsLocal(), and peclet::flow::scd::CutContext::unk.
Referenced by solveTwo().
|
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().
|
inline |
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.
Definition at line 1646 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::sco::addOnUnknown(), peclet::flow::scd::CutContext::e, ensureField(), fieldVecTwo(), peclet::flow::scd::CutContext::g, peclet::flow::scd::CutContext::n, projectedRhsTwo(), remeasureAfterGauge(), peclet::flow::scalarBiCGStab(), twoFieldMoments(), twoFieldOps(), and peclet::flow::scd::CutContext::unk.
Referenced by peclet::flow::Solver< Grid >::scalarCutAssembleSolve().
|
inline |
The solve's statistics and the once-per-scalar non-convergence warning (rank 0).
Definition at line 1689 of file flow_ibm_scalars_cutcell.hpp.
References peclet::flow::ScalarKrylovResult::converged, peclet::flow::scd::CutContext::distributed, peclet::flow::ScalarKrylovResult::iterations, peclet::flow::ScalarKrylovResult::ref, and peclet::flow::ScalarKrylovResult::trueRes.
Referenced by peclet::flow::Solver< Grid >::scalarCutAssembleSolve().