Numerical calculation of magnetovolume effect in ferromagnetic metals