A Class of Discretization Methods for Structured and Unstructured Grids in Anisotropic, Inhomogeneous Media