I am working on GFM and GFL mode in dynamic simulation. In both cases I am using the following code(Examples from GFM and GFL). Would appreciate if someone can share why I am having this weired behavior!
However below scenarios are happening.
In GFM mode = PV output power is showing zero. If I command "edit PVSystem.myPV ControlMode=GFL SafeVoltage=0" then the PV acts as load. Battery supplies power but PV consumes it. The loads are live during this time but don't get much load. Also, closing command doesn't work. Below is the code.
New InvControl.PVCtrl DERList=[Storage.mystorage PVsystem.mypv] mode=GFM !eventlog=yes
! Opens switch sw5 creating an island
open Line.SWFeeder
solve
edit storage.mystorage ControlMode=GFM SafeVoltage=0
//edit PVSystem.myPV ControlMode=GFL SafeVoltage=0 (If I put this line then PV works as load)
! Starts in dynamics mode and goes for 200 ms
set mode=dynamics steptime=0.001 maxiterations=30 number=200
set loadshapeclass=daily
set time=(10,0)
solve
// Below line doesn't work
close Line.SWFeeder
solve
In GFL mode - same thing but in this case battery output shows zero. PV works as load and draws power from feeder. Configuration same. Only sharing simulation part.
! Simulation starts at 10 hours, then there is a fault in the system
! Starts in dynamics mode and goes for 200 ms
edit storage.mystorage State = Discharging
set mode=dynamics steptime=0.001 maxiterations=500 number=200
set loadshapeclass=daily
set time=(10,0)
solve
! Then the fault happens at bus 104 (1.6 mi from the storage, 2.21 mi from the PV)
New Fault.myFault phases=3 bus1=104
! Enables the storage device (fully charged) and simulate the behavior during the fault
set number=70
solve
! The fault is cleared
Fault.myFault.enabled=False
! Goes for another 200 ms to bring the system back
set number=200
solve
Thank you
Niloy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am working on GFM and GFL mode in dynamic simulation. In both cases I am using the following code(Examples from GFM and GFL). Would appreciate if someone can share why I am having this weired behavior!
However below scenarios are happening.
// Define Storage
New "Storage.mystorage" phases=3 conn=delta bus1=204 kV=13.8 kva=4000 kWrated=4000 kWhrated=12000 %stored=100 %reserve=20
~ %EffCharge=90 %EffDischarge=90 %IdlingkW=1 %R=50 %X=0 state=IDILING kP=0.3 KVDC=0.700 PITol=0.1
// Define PV
New "PVSystem.myPV" phases=3 conn=delta bus1=LDG kV=13.8 kva=3500 pmpp=3500 daily=pvshape %R=50 %X=50 kP=0.1 KVDC=0.700 PITol=0.1
New InvControl.PVCtrl DERList=[Storage.mystorage PVsystem.mypv] mode=GFM !eventlog=yes
! Opens switch sw5 creating an island
open Line.SWFeeder
solve
edit storage.mystorage ControlMode=GFM SafeVoltage=0
//edit PVSystem.myPV ControlMode=GFL SafeVoltage=0 (If I put this line then PV works as load)
! Starts in dynamics mode and goes for 200 ms
set mode=dynamics steptime=0.001 maxiterations=30 number=200
set loadshapeclass=daily
set time=(10,0)
solve
// Below line doesn't work
close Line.SWFeeder
solve
! Simulation starts at 10 hours, then there is a fault in the system
! Starts in dynamics mode and goes for 200 ms
edit storage.mystorage State = Discharging
set mode=dynamics steptime=0.001 maxiterations=500 number=200
set loadshapeclass=daily
set time=(10,0)
solve
! Then the fault happens at bus 104 (1.6 mi from the storage, 2.21 mi from the PV)
New Fault.myFault phases=3 bus1=104
! Enables the storage device (fully charged) and simulate the behavior during the fault
set number=70
solve
! The fault is cleared
Fault.myFault.enabled=False
! Goes for another 200 ms to bring the system back
set number=200
solve
Thank you
Niloy