-
Notifications
You must be signed in to change notification settings - Fork 165
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
Fix initial conditions of Magnetic.FluxTubes hysteresis examples #3410
Fix initial conditions of Magnetic.FluxTubes hysteresis examples #3410
Conversation
…TransformerWithHysteresis1 In order to setup the initial equation system to Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 additional equations are needed in order to obtain a balanced system. That the equations below are added is natural as a consequence of the start values and fixed=true for these states: ``` winding1.i = 0; winding2.i = 0; core.MagRel = 0.5; ``` However, the fourth equation that is needed is not clearly defined, and different compiler heuristics will lead to different initial equations. We suggest to explicitly add ``` initial equation core.derHstat = 0.0; ```
Is this also relevant for master (i.e., 4.0.0) or only for 3.2.3 as maintenance bugfix? |
|
Yes this is also relevant to master. |
Plus remove protected to allow access to the transformer components from outside the model
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.
So now all the hysteresis examples shall work with exact initial conditions
In the three phase transformer model |
It was reported here, but it is not detected since
|
I will update the MSL release checks to improve the error detection. |
|
This is related to issue #3409
In order to setup the initial equation system to Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 additional equations are needed in order to obtain a balanced system.
That the equations below are added is natural as a consequence of the start values and fixed=true for these states:
However, the fourth equation that is needed is not clearly defined, and different compiler heuristics will lead to different initial equations.
We suggest to explicitly add