Skip to content

Commit

Permalink
fix references to Connections package
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke committed Aug 15, 2014
1 parent 0197ae1 commit fc13902
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PowerSystems/Generic.mo
Expand Up @@ -162,7 +162,7 @@ package Generic "Simple components for basic investigations"
if PhaseSystem.m > 0 then
if synchronous then
flange.phi = PhaseSystem.thetaRef(terminal.theta);
if isRoot(terminal.theta) then
if Connections.isRoot(terminal.theta) then
V = V_ref;
if PhaseSystem.m > 1 then
PhaseSystem.thetaRel(terminal.theta) = 0;
Expand Down Expand Up @@ -235,7 +235,7 @@ package Generic "Simple components for basic investigations"
SI.Angle thetaRel;
equation
if PhaseSystem.m > 0 then
if isRoot(terminal.theta) then
if Connections.isRoot(terminal.theta) then
PhaseSystem.thetaRef(terminal.theta) = 2*pi*f_ref*time;
if PhaseSystem.m > 1 then
PhaseSystem.thetaRel(terminal.theta) = 0;
Expand Down Expand Up @@ -300,7 +300,7 @@ package Generic "Simple components for basic investigations"
SI.Angle thetaRel;
equation
if PhaseSystem.m > 0 then
if isRoot(terminal.theta) then
if Connections.isRoot(terminal.theta) then
PhaseSystem.thetaRef(terminal.theta) = 2*pi*f*time;
if PhaseSystem.m > 1 then
PhaseSystem.thetaRel(terminal.theta) = 0;
Expand Down Expand Up @@ -388,7 +388,7 @@ package Generic "Simple components for basic investigations"
SI.Angle thetaRel;
equation
if PhaseSystem.m > 0 then
if isRoot(terminal.theta) then
if Connections.isRoot(terminal.theta) then
PhaseSystem.thetaRef(terminal.theta) = 2*pi*f*time;
if PhaseSystem.m > 1 then
PhaseSystem.thetaRel(terminal.theta) = 0;
Expand Down

0 comments on commit fc13902

Please sign in to comment.