Is it just the one single slab? How big is the slab? What is your wavelength? What material? Are there any other materials around like a substrate? I would need this information to help steer you in the right direction. Meanwhile, if you want to see an overview of a bunch of numerical methods for this sort of thing, check out Lecture 1 here: