-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: OpenDSS PVSystem to PM Generators (#105)
Adds a section to the dss2tppm_gen! function to parse PVSystem OpenDSS objects into simple generators as a first approximation. Uses exclusively the kVA property to determine the generator limits pmin/pmax and qmin/qmax, i.e. 0/kVA and -kVA/kVA, respectively. Includes a warning to inform users of pvsystem to gen conversion. Added unit test assumes more generation than necessary from PV, and therefore power is expected to be injected back into the sourcebus generator (transmission network). Single-phase PV source unit test included. Comparisons were made to OpenDSS results. Closes #11
- Loading branch information
1 parent
887a0f9
commit 0bb5c24
Showing
5 changed files
with
158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Clear | ||
New Circuit.3Bus_example | ||
! define a really stiff source | ||
~ basekv=0.4 pu=0.9959 MVAsc1=1e6 MVAsc3=1e6 | ||
|
||
!Define Linecodes | ||
|
||
|
||
New linecode.556MCM nphases=3 basefreq=50 ! ohms per 5 mile | ||
~ rmatrix = ( 0.1000 | 0.0400 0.1000 | 0.0400 0.0400 0.1000) | ||
~ xmatrix = ( 0.0583 | 0.0233 0.0583 | 0.0233 0.0233 0.0583) | ||
~ cmatrix = (50.92958178940651 | -0 50.92958178940651 | -0 -0 50.92958178940651 ) ! small capacitance | ||
|
||
|
||
New linecode.4/0QUAD nphases=3 basefreq=50 ! ohms per 100ft | ||
~ rmatrix = ( 0.1167 | 0.0467 0.1167 | 0.0467 0.0467 0.1167) | ||
~ xmatrix = (0.0667 | 0.0267 0.0667 | 0.0267 0.0267 0.0667 ) | ||
~ cmatrix = (50.92958178940651 | -0 50.92958178940651 | -0 -0 50.92958178940651 ) ! small capacitance | ||
|
||
!Define lines | ||
|
||
New Line.OHLine bus1=sourcebus.1.2.3.0 Primary.1.2.3.0 linecode = 556MCM length=1 ! 5 mile line | ||
New Line.Quad Bus1=Primary.1.2.3.0 loadbus.1.2.3.0 linecode = 4/0QUAD length=1 ! 100 ft | ||
|
||
!Loads - single phase | ||
|
||
New Load.L1 phases=1 loadbus.1.0 ( 0.4 3 sqrt / ) kW=6 kvar=3 model=1 | ||
New Load.L2 phases=1 loadbus.2.0 ( 0.4 3 sqrt / ) kW=6 kvar=3 model=1 | ||
New Load.L3 phases=1 loadbus.3.0 ( 0.4 3 sqrt / ) kW=6 kvar=3 model=1 | ||
|
||
New PVSystem.PV1 phases=3 bus1=primary.1.2.3 kv=0.4 kva=25 | ||
|
||
Set voltagebases=[0.4] | ||
Set tolerance=0.000001 | ||
set defaultbasefreq=50 | ||
Calcvoltagebases | ||
|
||
Solve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Clear | ||
New Circuit.3Bus_example | ||
! define a really stiff source | ||
~ basekv=0.4 pu=0.9959 MVAsc1=1e6 MVAsc3=1e6 | ||
|
||
!Define Linecodes | ||
New linecode.556MCM nphases=3 basefreq=50 ! ohms per 5 mile | ||
~ rmatrix = ( 0.1000 | 0.0400 0.1000 | 0.0400 0.0400 0.1000) | ||
~ xmatrix = ( 0.0583 | 0.0233 0.0583 | 0.0233 0.0233 0.0583) | ||
~ cmatrix = (50.92958178940651 | -0 50.92958178940651 | -0 -0 50.92958178940651 ) ! small capacitance | ||
|
||
|
||
New linecode.4/0QUAD nphases=3 basefreq=50 ! ohms per 100ft | ||
~ rmatrix = ( 0.1167 | 0.0467 0.1167 | 0.0467 0.0467 0.1167) | ||
~ xmatrix = (0.0667 | 0.0267 0.0667 | 0.0267 0.0267 0.0667 ) | ||
~ cmatrix = (50.92958178940651 | -0 50.92958178940651 | -0 -0 50.92958178940651 ) ! small capacitance | ||
|
||
!Define lines | ||
|
||
New Line.OHLine bus1=sourcebus.1.2.3.0 Primary.1.2.3.0 linecode = 556MCM length=1 ! 5 mile line | ||
New Line.Quad Bus1=Primary.1.2.3.0 loadbus.1.2.3.0 linecode = 4/0QUAD length=1 ! 100 ft | ||
|
||
!Loads - single phase | ||
|
||
New Load.L1 phases=1 loadbus.1.0 ( 0.4 3 sqrt / ) kW=8 kvar=3 model=1 | ||
New Load.L2 phases=1 loadbus.2.0 ( 0.4 3 sqrt / ) kW=6 kvar=3 model=1 | ||
New Load.L3 phases=1 loadbus.3.0 ( 0.4 3 sqrt / ) kW=6 kvar=3 model=1 | ||
|
||
New PVSystem.PV1 phases=1 bus1=primary.1 kv=0.4 kva=2 | ||
|
||
Set voltagebases=[0.4] | ||
Set tolerance=0.000001 | ||
set defaultbasefreq=50 | ||
Calcvoltagebases | ||
|
||
Solve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters