6.3. Calculation of magnetization curve