-
Notifications
You must be signed in to change notification settings - Fork 176
Hysteresis37 #4241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Hysteresis37 #4241
Conversation
| parameter Real M(final unit="T")=0.95 | ||
| "Related to saturation value of magnetization"; | ||
| parameter Real r(final unit="1")=0.55 | ||
| parameter Real r(final unit="T-(1/2)")=0.55 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See: modelica/ModelicaSpecification#3439 for this new unit-string, added after Modelica Language 3.6.
|
I understand that the proposed change of units somehow leads to a consistent set of units:
|
True, that would imply mat.r.unit="1". The derivation of the unit for P1...P4 was independent of that; so then the conclusion is then that P1.unit="T(1/2)", mat.r.unit="1", and mat.M.unit="T(1/2)" (since Someone really need to look up the original models - to me the most likely way to solve that is that the eps-binding equation is wrong in some way; likely that it seemed logical to relate the eps to mat.M and it wasn't considered in detail. Also note that |
I would guess the quantity |
Seems that way; I tried some simple experiment, and it seemed the result was fairly unchanged even if eps was changed by an order of magnitude. |
…tly but it should not matter. Note that it is similar to mat.M^2, but easier to understand.
|
I have now updated to mat.r.unit="1" and changed eps to a unit-consistent value. |
|
In order to somehow understand the physics behind the equations we need know the literature source. From what ist listed in I guess the first step where to identify the literature reference, on which the implemented equations are based. So far I could only identify the variable This does not indicate what unit |
|
I wonder if @ThomasBoedrich could give some input here. |
|
This solution is weird: Units like T^(-1/2) bare physical meaning.
|
I agree that it is somewhat odd. However, it is now T^(1/2) instead of T^(-1/2) and the logic is that we have: So basically But I have no idea if that formula is correct, and why one would have
Agreed. The really confusing part is that this model references Ya89, which isn't even listed (but it could the paper from the same year by Y& others.)
That is a valid approach, but I'm not sure it is ideal. One downside is that as soon as you have constructed dimensionless variables there is no unit-checking of the formula. (See also below.)
I agree, but in this case the benefit is that we remove the Note that we have to differentiate between using I'm getting more and more suspicious about those factors, except for well-defined cases like s-parametrization.
|
Thinking more it could also be that |
I am very unhappy with the units |
I can understand that we just keep the model broken if we cannot find a solution. To me this has shown that:
Note that there are square-root-units in some applications, e.g., the spice-parameter gamma - #4377 - but likely not for this case. |


This clears up the unit-issues in the Hysteresis models.
Facts about the PR:
It requires more than Modelica Language 3.6, due to the odd units.