Skip to content

Commit

Permalink
Replace unit-incorrect eps by better one. The value will differ sligh…
Browse files Browse the repository at this point in the history
…tly but it should not matter.

Note that it is similar to mat.M^2, but easier to understand.
  • Loading branch information
HansOlsson committed Dec 14, 2023
1 parent f502692 commit d0dbf4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected
mat.Hsat,-mat.Hsat, mat, false)
"Saturation polarization";
//final parameter Real mu0 = mat.K * mu_0;
parameter SI.MagneticFluxDensity eps=mat.M/1000;
parameter SI.MagneticFluxDensity eps=Js/1000;
parameter Real P1(final unit="T(1/2)") = (mat.M*mat.r*(2/pi*atan(mat.q*(mat.Hsat-mat.Hc))+1)+(2*mat.M*(1-mat.r))/(1+1/2*(exp(-mat.p1*(mat.Hsat-mat.Hc))+exp(-mat.p2*(mat.Hsat-mat.Hc)))));
parameter Real P4(final unit="T(1/2)") = (mat.M*mat.r*(2/pi*atan(mat.q*(-mat.Hsat-mat.Hc))+1)+(2*mat.M*(1-mat.r))/(1+1/2*(exp(-mat.p1*(-mat.Hsat-mat.Hc))+exp(-mat.p2*(-mat.Hsat-mat.Hc)))));

Expand Down

0 comments on commit d0dbf4b

Please sign in to comment.