Skip to content

Conversation

@modelonrobinandersson
Copy link
Owner

See issue modelica#3417

…elica#3410)

* Update to Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1

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;
```

* Fix single phase hysteresis transformer example

* Fix initial conditions of HysteresisModelComparison

* Fix initial conditions of three phase hysteresis transformer model
Plus remove protected to allow access to the transformer components from outside the model

Co-authored-by: Christian Kral <[email protected]>
maint/3.2.3: Fix mass flow rate calculation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants