11#define RHS_INNER_BLANK 7.0
21 return (PetscBool)(nvert < POISSON_SOLID_THRESHOLD || nvert >
RHS_INNER_BLANK);
Momentum source terms added to the contravariant RHS.
Logging utilities and macros for PETSc-based applications.
Pressure-Poisson projection: the multigrid pressure-correction solve, the pressure update,...
PetscErrorCode ComputeBodyForces(UserCtx *user, Vec Rct)
General dispatcher for applying all active body forces (momentum sources).
PetscErrorCode ComputeConvection(UserCtx *user, Vec Ucont, Vec Ucat, Vec Conv)
Computes the convective contribution to the contravariant momentum RHS.
static PetscBool RHSIsBlankedSolid(PetscReal nvert)
Whether a cell is a blanked solid cell, which ComputeViscous()'s transverse differences avoid with a ...
#define RHS_INNER_BLANK
Cells whose nvert exceeds this are blanked inner-body cells, which convect as fluid.
PetscErrorCode ComputeViscous(UserCtx *user, Vec Ucat, Vec Visc)
Computes the viscous contribution to the contravariant momentum RHS.
static PetscBool RHSConvectsAsFluid(PetscReal nvert)
Whether a cell takes part in convection: fluid, or a blanked inner-body cell.
PetscErrorCode ComputeRHS(UserCtx *user, Vec Rhs)
Computes the Right-Hand Side (RHS) of the momentum equations.
Main header file for a complex fluid dynamics solver.
#define PICURV_ALWAYS_INLINE
Forces inlining of a per-cell or per-face kernel whose size defeats the compiler's inlining heuristic...
User-defined context containing data specific to a single computational grid level.