Skip to content

Commit 54c07f2

Browse files
henrikt-mabeutlich
authored andcommitted
Set Evaluate = true for IdealTransformer.considerMagnetization
Leaving this parameter unevaluated seems like making things overly complicated, and as far as I can see there is nothing that clearly requires the parameter to be treated structurally. Hence, adding an explicit annotation will increase chances of models being treated equally efficiently across tools. Of course, I would have preferred to declare considerMagnetization a constant with Dialog annotation instead, but I'm afraid the general preference is to use a parameter with Evaluate = true instead.
1 parent 9895491 commit 54c07f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modelica/Electrical/Analog/Ideal/IdealTransformer.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ model IdealTransformer "Ideal transformer core with or without magnetization"
33
extends Modelica.Electrical.Analog.Interfaces.TwoPort;
44
parameter Real n(start=1) "Turns ratio primary:secondary voltage";
55
parameter Boolean considerMagnetization=false
6-
"Choice of considering magnetization";
6+
"Choice of considering magnetization" annotation(Evaluate = true);
77
parameter SI.Inductance Lm1(start=1)
88
"Magnetization inductance w.r.t. primary side"
99
annotation (Dialog(enable=considerMagnetization));

0 commit comments

Comments
 (0)