Noise reduction for flows using nonlinear constraints