Overview
MultiphaseConvectiveManager manages all routines required to approximate the momentum convective operator for the multiphase equations. It performs flux-differencing of the phase-weighted momenta using a limited upwind scheme on the staggered MAC grid.
Namespace: multiphase
Header: multiphase/MultiphaseConvectiveManager.h
The class lazily allocates patch data on first use and does not maintain state across a regridding operation.
Available limiters
The followingIBAMR::LimiterType values are supported:
Constructors
Database-based constructor
"limiter_type" with one of the supported limiter strings: "UPWIND", "CUI", "FBICS", or "MGAMMA".
The AMR patch hierarchy on which convective terms are computed.
Input database. Must contain
"limiter_type" specifying one of the supported limiter strings.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 volume fraction. Pass
nullptr to use linear extrapolation at physical boundaries.LimiterType-based constructor
LimiterType value.
The AMR patch hierarchy on which convective terms are computed.
Limiter to use for momentum interpolation. One of
UPWIND, CUI, FBICS, or MGAMMA.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 volume fraction.
Methods
approximateConvectiveOperator (with copy)
dst_un_idx and dst_us_idx. Either destination index may be an invalid index, in which case that copy is skipped.
For ts_type = FORWARD_EULER, the new-time indices (un_new_idx, us_new_idx, thn_new_idx) are not used and may be invalid.
Patch data index to receive the network-phase convective operator result. Pass an invalid index to skip.
Patch data index to receive the solvent-phase convective operator result. Pass an invalid index to skip.
Time-stepping scheme:
FORWARD_EULER, MIDPOINT_RULE, or TRAPEZOIDAL_RULE.approximateConvectiveOperator (without copy)
fillWithConvectiveOperator or getConvectiveIndices.
Time-stepping scheme:
FORWARD_EULER, MIDPOINT_RULE, or TRAPEZOIDAL_RULE.fillWithConvectiveOperator
getConvectiveIndices
deallocateData
resetData
setBoundaryConditions
Robin BC coefficients for the network velocity.
Robin BC coefficients for the solvent velocity.
Robin BC coefficient for the volume fraction. May be
nullptr.Regridding note
MultiphaseConvectiveManager does not rebuild its internal state after a regridding event. Before calling any regrid routine, either destroy the object or call deallocateData. After regridding, reconstruct or reinitialise the manager with the updated hierarchy.