mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
MULES and CMULES have been extended so that the limits can be supplied as fields. These arguments are templated so that zeroField, oneField or UniformField<scalar> can be used in place of a scalar value with no additional overhead. The flux argument has been removed from the unlimited CMULES correct functions in order to make this templating possible. An additional form of limit sum has also been added to MULES. This limits the flux sum by ofsetting in proportion to the phase fraction, rather than by reducing the magnitude of the fluxes with the same sign as the imbalance. The new procedure makes it possible to limit the flux sum in the presence of constraints without encountering a divide by zero.