1#ifndef MOMENTUMSOLVERS_H
2#define MOMENTUMSOLVERS_H
94#define MomentumSolver_DualTime_Picard_RK4 MomentumSolver_DualTime_Picard_JamesonRK
225PetscInt
MomCellActiveRows(PetscReal ***nvert, PetscInt k, PetscInt j, PetscInt i,
226 PetscInt mx, PetscInt my, PetscInt mz,
227 PetscBool np_x1, PetscBool np_y1, PetscBool np_z1, PetscInt twoD);
Logging utilities and macros for PETSc-based applications.
PetscBool estimate_incomplete
PetscErrorCode MomentumSolver_DualTime_Picard_JamesonRK(UserCtx *user, IBMNodes *ibm, FSInfo *fsi)
Solves the momentum equations using dual-time Picard iteration with Jameson RK smoothing.
MomStabLimiter
Dominant stiffness contributor at the controlling cell.
@ MOM_STAB_LIMITER_CONVECTION
@ MOM_STAB_LIMITER_VISCOSITY
PetscBool MomentumUsesBDF2(SimCtx *simCtx)
Returns whether the current physical step uses the BDF2 discretization.
PetscReal MomentumBDFCoefficient(SimCtx *simCtx)
Returns the BDF physical-time coefficient a0 for the current step.
MomStabCandidate
Convective-estimate candidate selector.
PetscErrorCode ComputeTotalResidual(UserCtx *user)
Computes the shared spatial-plus-BDF momentum residual in user->Rhs.
PetscInt MomCellActiveRows(PetscReal ***nvert, PetscInt k, PetscInt j, PetscInt i, PetscInt mx, PetscInt my, PetscInt mz, PetscBool np_x1, PetscBool np_y1, PetscBool np_z1, PetscInt twoD)
Active staggered-momentum row mask for a cell (exposed for unit testing).
PetscErrorCode ComputeMomentumStabilityEstimate(UserCtx *user, PetscInt block_number, PetscReal dt, MomStabCandidate candidate, MomStabilityReport *rep)
Compute the momentum pseudo-time stability estimate (shadow/diagnostic).
PetscErrorCode MomentumSolver_Explicit_RungeKutta4(UserCtx *user, IBMNodes *ibm, FSInfo *fsi)
Advances the momentum equations using an explicit 4th-order Runge-Kutta scheme.
Diagnostic report produced by ComputeMomentumStabilityEstimate().
#define MomentumSolver_NewtonKrylov
Main header file for a complex fluid dynamics solver.
Holds all data related to the state and motion of a body in FSI.
Represents a collection of nodes forming a surface for the IBM.
The master context for the entire simulation.
User-defined context containing data specific to a single computational grid level.