added functions for eddy length scale computation