Discretization of Semiconductor Device Problems (I)