Study and implementation of computational methods for differential equations in heterogeneous systems