MultiphaseStaggeredStokesBoxRelaxationFACOperator is a concrete IBTK::FACPreconditionerStrategy that provides the level-smoothing, restriction, and prolongation operations used inside FullFACPreconditioner. It implements a Red-Black Gauss–Seidel (RBGS) box-relaxation smoother for the coupled two-fluid staggered Stokes system.
Namespace: multiphaseHeader:
multiphase/MultiphaseStaggeredStokesBoxRelaxationFACOperator.h
This class is not used directly by most users. It is constructed internally by
MultiphaseStaggeredHierarchyIntegrator and passed as the fac_strategy argument to FullFACPreconditioner. See FullFACPreconditioner for higher-level usage.Constructor
Physical parameters struct (
eta_n, eta_s, xi, nu_n, nu_s) used to assemble the local box systems during smoothing. See MultiphaseParameters.Configuration methods
setUnderRelaxationParameter
0.75. This corresponds to the W parameter in the simulation input file.
Under-relaxation factor. Values in
(0, 1] are stable; 0.75 is the recommended default from the input file.setCandDCoefficients
C (mass-like diagonal) and D (viscous/drag scaling) coefficients used when assembling the local patch systems during smoothing. These must match the coefficients set on the associated MultiphaseStaggeredStokesOperator.
setThnIdx
thn. Must be called before smoothing operations are performed.
setPhysicalBcCoefs
nullptr, in which case homogeneous conditions are applied.
Robin BC coefficients for the network velocity, one per spatial dimension.
Robin BC coefficients for the solvent velocity, one per spatial dimension.
Robin BC coefficient for the pressure. Pass
nullptr for homogeneous Neumann.Robin BC coefficient for the volume fraction. Pass
nullptr for linear extrapolation.FAC strategy interface
These methods implementIBTK::FACPreconditionerStrategy and are called by FullFACPreconditioner during the multigrid cycle. You do not call them directly.
smoothError
num_sweeps box-relaxation sweeps on the specified level. The RBGS smoother is implemented in src/RBGS.f.
restrictResidual
dest_level_num using the cached restriction schedules.
prolongError / prolongErrorAndCorrect
dest_level_num. prolongErrorAndCorrect additionally adds the prolongated correction to the existing fine-level error.
solveCoarsestLevel
true on convergence.
computeResidual
r = rhs - A*solution on the specified range of levels.
initializeOperatorState / deallocateOperatorState
FullFACPreconditioner::initializeSolverState and deallocateSolverState.
Relation to W input parameter
The under-relaxation factor w is exposed in the simulation input file as the top-level parameter W:
input2d
MultiphaseStaggeredHierarchyIntegrator and forwarded to setUnderRelaxationParamater before each solve.