GRIDAPPSD / CIMHub

16 stars 10 forks source link

Incorrect pmpp values in base.dss export #16

Closed AAndersn closed 3 years ago

AAndersn commented 3 years ago

When exporting a CIM XML model to DSS, the script is changing the irradiance value, rather than maximum power point.

Original DSS file:

New PVsystem.PV_6 phases=2 Bus1=SX2000404A.1.2 kV=0.208 kVA=12.14 Pmpp=9.71

CIM XML version:

<cim:PowerElectronicsConnection rdf:ID="_FB1A8349-4CC8-45E9-A0AE-233677BC63E4">
  <cim:IdentifiedObject.mRID>_FB1A8349-4CC8-45E9-A0AE-233677BC63E4</cim:IdentifiedObject.mRID>
  <cim:IdentifiedObject.name>pv_6</cim:IdentifiedObject.name>
  <cim:Equipment.EquipmentContainer rdf:resource="#_EE71F6C9-56F0-4167-A14E-7F4C71F10EAA"/>
  <cim:PowerElectronicsConnection.PowerElectronicsUnit rdf:resource="#_390B62F6-FDDA-48D4-BB7E-BD2D2E72E9E9"/>
  <cim:PowerElectronicsConnection.maxIFault>1.1111111</cim:PowerElectronicsConnection.maxIFault>
  <cim:PowerElectronicsConnection.p>9710</cim:PowerElectronicsConnection.p>
  <cim:PowerElectronicsConnection.q>0</cim:PowerElectronicsConnection.q>
  <cim:PowerElectronicsConnection.ratedS>12140</cim:PowerElectronicsConnection.ratedS>
  <cim:PowerElectronicsConnection.ratedU>208</cim:PowerElectronicsConnection.ratedU>
  <cim:PowerSystemResource.Location rdf:resource="#_B94760ED-FD86-4185-9414-49C59F919B46"/>
</cim:PowerElectronicsConnection>

Exported base.dss file:

new PVSystem.pv_6 phases=2 bus1=sx2000404a.1.2 conn=w kva=12.140 kv=0.208 pmpp=12.140 irrad=0.800 pf=1.0000 vminpu=0.9000 LimitCurrent=yes
temcdrm commented 3 years ago

This is actually a CIM version upgrade, to include the recently implemented PowerElectronicsUnit.maxP attribute. The PowerElectronicsConnection.p attribute value represents instantaneous power output, not the Pmpp rating. For now, the meaning of Pmpp is lost in the CIM XML, but the export pmpp and irrad should recover the original instantaneous power output.

temcdrm commented 3 years ago

Fixed by https://github.com/GRIDAPPSD/CIMHub/commit/9931df14ffdfc9abeeef0c471c7517f424c39305.

Test procedure is der/go.sh on feature/cimext