Many researchers use software package Comsol Multiphysics and the built-in electric currents module in their computations of the electric current passage. However, this module has limitations and may produce incorrect solutions when the artificial space charge emerges along with the surface charge near the interfaces. For example, electrohydrodynamics of two-phase liquids and a droplet deformation under an external electric field. The presence of a fictitious charge leads to the incorrect calculation of the forces on the droplet, resulting in the incorrect deformation of the droplet. To avoid such issues, an approach based on two independent modules used simultaneously is proposed. Since the investigation of problems related to moving geometry requires more careful study, it was decided to begin with a problem of stationary geometry. This approach is tested for modeling a pulsed capacitive storage device with layers of inhomogeneous conductive liquid. The standard electrostatics module is used in our model, besides, two mathematical modules PDE and BODE are added with equations for accumulation of surface and space charges. The contribution compares two approaches to solve the following problems - charging and discharging of a pulsed capacitive storage device using both the standard electric currents' module of Comsol Multiphysics and our one.