Skip to content

Commit 74c1caa

Browse files
authored
Merge pull request modelica#4739 from AHaumer/FT_EMconverter
FluxTubes.Basic.ElectroMagneticConverter: L_stat
2 parents eb3d604 + 5786583 commit 74c1caa

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

Modelica/Magnetic/FluxTubes/Basic/ElectroMagneticConverter.mo

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ model ElectroMagneticConverter "Ideal electromagnetic energy conversion"
1818

1919
// For information only:
2020
SI.MagneticFlux Psi "Flux linkage";
21-
SI.Inductance L_stat "Static inductance abs(Psi/i)";
21+
SI.Inductance L_stat "Static inductance (valid if this coil is the only source)";
2222

2323
protected
2424
Real eps=100*Modelica.Constants.eps;
@@ -38,7 +38,7 @@ equation
3838
// For information only
3939
Psi = N*Phi;
4040
// Use of abs() for positive results; due to Modelica sign conventions for flow into connectors
41-
L_stat = noEvent(if abs(i) > eps then abs(Psi/i) else abs(Psi/eps));
41+
L_stat = if noEvent(abs(i) > eps) then abs(Psi/i) else abs(Psi/eps);
4242

4343
annotation (
4444
defaultComponentName="converter",
@@ -164,9 +164,12 @@ v is the induced voltage in the coil due to the derivative of magnetic flux &Phi
164164
If a coil wound clockwise has to be modeled instead, the parameter N (Number of turns) can be set to a negative value.
165165
</p>
166166
167+
168+
<h4>Note</h4>
167169
<p>
168-
The flux linkage &Psi; and the static inductance L_stat = |&Psi;/i| are calculated for information only. Note that L_stat is set to |&Psi;/eps| if |i| &lt; eps
169-
(= 100*Modelica.Constants.eps).
170+
The flux linkage &Psi; and the static inductance L_stat = |&Psi;/i| are calculated for information only.
171+
Note that L_stat is set to |&Psi;/eps| if |i| &lt; eps (= 100*Modelica.Constants.eps).<br>
172+
<strong>Note</strong> that this local calculation of L_stat is only valid if this coil is the only source in the magnetic circuit.
170173
</p>
171174
</html>"));
172175
end ElectroMagneticConverter;

Modelica/Magnetic/FluxTubes/Basic/ElectroMagneticConverterWithLeakageInductance.mo

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ model ElectroMagneticConverterWithLeakageInductance
3535

3636
// For information only
3737
SI.MagneticFlux Psi "Flux linkage";
38-
SI.Inductance L_stat "Static inductance abs(Psi/i)";
38+
SI.Inductance L_stat "Static inductance (valid if this coil is the only source)";
3939

4040
protected
4141
constant Real eps=100*Modelica.Constants.eps;
@@ -59,7 +59,7 @@ equation
5959
// For information only
6060
Psi = N*Phi_ind;
6161
//use of abs() for positive results; due to Modelica sign conventions for flow into connectors
62-
L_stat = noEvent(if abs(i) > eps then abs(Psi/i) else abs(Psi/eps));
62+
L_stat = if noEvent(abs(i) > eps) then abs(Psi/i) else abs(Psi/eps);
6363

6464
annotation (
6565
defaultComponentName="converter",
@@ -158,7 +158,16 @@ equation
158158
Line(points={{-30,-100},{-30,-60}}, color={28,108,200})}),
159159
Documentation(info="<html>
160160
<p>
161-
Same as <a href=\"modelica://Modelica.Magnetic.FluxTubes.Basic.ElectroMagneticConverter\">ElectroMagneticConverter</a> with an additional leakage path on the magnetic side (leakage inductance, leakage flux). This model may improve stability especially when the magnetic circuit contains more than one electromagnetic converter.
161+
Same as <a href=\"modelica://Modelica.Magnetic.FluxTubes.Basic.ElectroMagneticConverter\">ElectroMagneticConverter</a>
162+
with an additional leakage path on the magnetic side (leakage inductance, leakage flux).
163+
This model may improve stability especially when the magnetic circuit contains more than one electromagnetic converter.
164+
</p>
165+
166+
<h4>Note</h4>
167+
<p>
168+
The flux linkage &Psi; and the static inductance L_stat = |&Psi;/i| are calculated for information only.
169+
Note that L_stat is set to |&Psi;/eps| if |i| &lt; eps (= 100*Modelica.Constants.eps).<br>
170+
<strong>Note</strong> that this local calculation of L_stat is only valid if this coil is the only source in the magnetic circuit.
162171
</p>
163172
</html>"));
164173
end ElectroMagneticConverterWithLeakageInductance;

0 commit comments

Comments
 (0)