Lorentzian approximation of the fundamental mode in single mode linear and nonlinear fiber