Magnetic field calculation of a permanent magnet with a nonlinear demagnetization curve
I try to calculate a magnetic field of a permanent magnet with a nonlinear demagnetization curve. I am using the template magnets.pro and an interpolated function instead of a constant mu, nu, as given in the template. As arguments for the calculation of the field in the section Formulation, and also in the postprocessing part, I use mu[{d phi}] and nu[{Curl a}] instead of a mu[] and nu[]. I also include some demagnetization curve from the manufacturer of the permanent magnet. Should it work this way? I have already sucessfully tested the method described here for a nonlinear steel material.