https://github.com/sedfoam/sedfoam/blob/master/solver/packingLimiter.H file

Original source file packingLimiter.H