Numerical analysis of an embedded optical waveguide