Numerical simulation of the plasma equilibrium in a Tokamak