Skip to content

Commit

Permalink
Update MultipleResonance.mo (modelica#4351)
Browse files Browse the repository at this point in the history
Fixed to make type more clear, and make it work in Modelon Impact. Also, removed an unused line of code.
  • Loading branch information
hubertus65 committed Mar 13, 2024
1 parent 5b7c3c5 commit 1f8e25f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ within Modelica.Electrical.QuasiStatic.SinglePhase.Examples;
model MultipleResonance
"Demonstrates series and parallel resonance using a transformer"
extends Icons.Example;
import Modelica.Constants.pi;
import Modelica.ComplexMath.j;
import Modelica.Constants.small;
parameter Modelica.Units.SI.Voltage V=0.5 "Source rms voltage";
parameter Modelica.Units.SI.Frequency fLo=5.e6 "Lower source frequency";
parameter Modelica.Units.SI.Frequency fUp=15e6 "Upper source frequency";
parameter Modelica.Units.SI.ComplexImpedance Zi=100 +j*0 "Source inner impedance";
parameter Modelica.Units.SI.ComplexImpedance Zi=Modelica.Units.SI.ComplexImpedance(100 +j*0) "Source inner impedance";
parameter Modelica.Units.SI.Inductance L1=30e-6 "Transformer primary inductance";
parameter Modelica.Units.SI.Inductance L2=1.e-6 "Transformer secondary inductance";
parameter Real k(min=small, max=1)=0.95 "Transformer coupling factor";
Expand Down

0 comments on commit 1f8e25f

Please sign in to comment.