Skip to content

Commit

Permalink
Merge pull request #1 from sjoelund/master
Browse files Browse the repository at this point in the history
Fixes from OpenModelica testing
  • Loading branch information
dietmarw committed Oct 7, 2014
2 parents d420439 + cedb254 commit 425fc8b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion PowerSystems/Examples/Spot/DrivesAC3ph.mo
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ The machine defines the reference-system independent of the system choice (as ne
Ti=0.2,
Td=0.1,
controllerType=Modelica.Blocks.Types.SimpleController.PI,
initType=Modelica.Blocks.Types.Init.SteadyState)
initType=Modelica.Blocks.Types.InitPID.SteadyState)
annotation (Placement(transformation(extent={{-60,10},{-40,30}},
rotation=0)));
PowerSystems.Examples.Spot.Data.Machines.Synchron3rd_pm400V_30kVA syn3rdpm400_30k
Expand Down
8 changes: 4 additions & 4 deletions PowerSystems/Examples/Spot/DrivesDC.mo
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ package DrivesDC "DC drives"
fileName=TableDir + "hNormProfile.tab",
colData=3)
annotation (Placement(transformation(extent={{60,-20},{80,0}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Machines.DCser1500V_1p5MVA DCs1500_1p5M
parameter PowerSystems.Examples.Spot.Data.Machines.DCser1500V_1p5MVA DCs1500_1p5M
annotation (Placement(transformation(extent={{-60,80},{-20,100}},
rotation=0)));

Expand Down Expand Up @@ -115,7 +115,7 @@ package DrivesDC "DC drives"
slope_perc=2.5,
cFrict={50,15})
annotation (Placement(transformation(extent={{60,-20},{80,0}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Machines.DCpar1500V_1p5MVA DCp1500_1p5M
parameter PowerSystems.Examples.Spot.Data.Machines.DCpar1500V_1p5MVA DCp1500_1p5M
annotation (Placement(transformation(extent={{-60,80},{-20,100}},
rotation=0)));

Expand Down Expand Up @@ -189,7 +189,7 @@ package DrivesDC "DC drives"
useSupport=false)
annotation (Placement(transformation(extent={{90,20},{70,40}},
rotation=0)));
PowerSystems.Examples.Spot.Data.Machines.DCpm100V_1kVA DCpm100_1k
parameter PowerSystems.Examples.Spot.Data.Machines.DCpm100V_1kVA DCpm100_1k
annotation (Placement(transformation(
extent={{-60,80},{-20,100}}, rotation=0)));

Expand Down Expand Up @@ -279,7 +279,7 @@ package DrivesDC "DC drives"
useSupport=false)
annotation (Placement(transformation(extent={{90,20},{70,40}},
rotation=0)));
PowerSystems.Examples.Spot.Data.Machines.BLDC100V_1kVA bldc100_1k
parameter PowerSystems.Examples.Spot.Data.Machines.BLDC100V_1kVA bldc100_1k
annotation (Placement(transformation(
extent={{-60,80},{-20,100}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC100V_10A idealSC100V_10A
Expand Down
8 changes: 4 additions & 4 deletions PowerSystems/Examples/Spot/GenerationAC3ph.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ annotation (Placement(transformation(extent={{-100,80},{-80,100}}, rotation=0)))
Td=0.1,
Ti=0.5,
k=1/vDC_nom,
initType=Modelica.Blocks.Types.Init.SteadyState)
initType=Modelica.Blocks.Types.InitPID.SteadyState)
annotation (Placement(transformation(extent={{40,20},{20,40}},
rotation=0)));
Modelica.Blocks.Sources.Constant set_vDC(k=vDC_nom)
Expand Down Expand Up @@ -1486,7 +1486,7 @@ annotation (Placement(transformation(extent={{-100,80},{-80,100}}, rotation=0)))
Modelica.Blocks.Continuous.LimPID PI_vDC(
Td=0.05,
controllerType=Modelica.Blocks.Types.SimpleController.PI,
initType=Modelica.Blocks.Types.Init.SteadyState,
initType=Modelica.Blocks.Types.InitPID.SteadyState,
Ti=0.1,
k=0.3*I_nom/vDC_nom,
yMax=1.4*I_nom)
Expand All @@ -1495,11 +1495,11 @@ annotation (Placement(transformation(extent={{-100,80},{-80,100}}, rotation=0)))
Modelica.Blocks.Math.Gain gain(k=-1) "generator: negative torque tau_act"
annotation (Placement(transformation(
extent={{-40,20},{-20,40}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Machines.Synchron3rd_pm560V_100kVA syn3rdpm560_100k(
parameter PowerSystems.Examples.Spot.Data.Machines.Synchron3rd_pm560V_100kVA syn3rdpm560_100k(
neu_iso=true)
annotation (Placement(transformation(extent={{-60,80},{-20,100}},
rotation=0)));
PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC1kV_100A idealSC1k_100(
parameter PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC1kV_100A idealSC1k_100(
Vf=0)
annotation (Placement(transformation(extent={{0,80},{40,100}}, rotation=0)));

Expand Down
6 changes: 3 additions & 3 deletions PowerSystems/Examples/Spot/InvertersAC1ph_DC.mo
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package InvertersAC1ph_DC "Inverters 1 phase and DC"
extent={{90,0},{110,20}}, rotation=0)));
PowerSystems.Common.Thermal.BdCondV bdCond(m=2) annotation (Placement(
transformation(extent={{10,20},{30,40}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC100V_10A idealSC100V_10A
parameter PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC100V_10A idealSC100V_10A
annotation (Placement(transformation(extent={{0,80},{40,100}}, rotation=0)));

equation
Expand Down Expand Up @@ -316,7 +316,7 @@ package InvertersAC1ph_DC "Inverters 1 phase and DC"
extent={{80,-20},{100,0}}, rotation=0)));
PowerSystems.Common.Thermal.BdCondV bdCond(m=1) annotation (Placement(
transformation(extent={{-30,0},{-10,20}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC100V_10A idealSC100V_10A
parameter PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC100V_10A idealSC100V_10A
annotation (Placement(transformation(extent={{0,80},{40,100}}, rotation=0)));

equation
Expand Down Expand Up @@ -400,7 +400,7 @@ package InvertersAC1ph_DC "Inverters 1 phase and DC"
extent={{-80,-20},{-100,0}}, rotation=0)));
PowerSystems.Common.Thermal.BdCondV bdCond(m=2) annotation (Placement(
transformation(extent={{-10,0},{10,20}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC100V_10A idealSC100V_10A
parameter PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC100V_10A idealSC100V_10A
annotation (Placement(transformation(extent={{0,80},{40,100}}, rotation=0)));

equation
Expand Down
2 changes: 1 addition & 1 deletion PowerSystems/Examples/Spot/InvertersAC3ph.mo
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ package InvertersAC3ph "Inverters dqo"
0},{110,20}}, rotation=0)));
PowerSystems.Common.Thermal.BdCondV bdCond(m=3) annotation (Placement(
transformation(extent={{10,20},{30,40}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC100V_10A idealSC100V_10A
parameter PowerSystems.Examples.Spot.Data.Semiconductors.IdealSC100V_10A idealSC100V_10A
annotation (Placement(transformation(extent={{0,80},{40,100}}, rotation=0)));

equation
Expand Down
4 changes: 2 additions & 2 deletions PowerSystems/Examples/Spot/TransmissionAC3ph.mo
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ Compare with FaultRXline.</p>
extent={{-90,-20},{-110,0}}, rotation=0)));
PowerSystems.AC3ph.Nodes.GroundOne grd2 annotation (Placement(transformation(
extent={{90,-20},{110,0}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Lines.OHline400kV OH400kV
parameter PowerSystems.Examples.Spot.Data.Lines.OHline400kV OH400kV
annotation (Placement(transformation(extent=
{{0,80},{40,100}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Transformers.TrafoStray trafo20k_400k_YD
Expand Down Expand Up @@ -707,7 +707,7 @@ Compare with DoublePIline.</p>
rotation=0)));
PowerSystems.AC3ph.Sensors.PVImeter meterF(S_nom=1000e6, V_nom=400e3)
annotation (Placement(transformation(extent={{-10,0},{10,20}}, rotation=0)));
PowerSystems.Examples.Spot.Data.Lines.OHline_400kV OH_400kV
parameter PowerSystems.Examples.Spot.Data.Lines.OHline_400kV OH_400kV
annotation (Placement(transformation(
extent={{0,80},{40,100}}, rotation=0)));
PowerSystems.AC3ph.Nodes.GroundOne grd1 annotation (Placement(transformation(
Expand Down

0 comments on commit 425fc8b

Please sign in to comment.