CIM models built from scratch¶
CIM-Builder writes IEC CIM power system models directly, with no OpenDSS, PSS/E or GIS file to convert. Build equipment one object at a time, or whole node-breaker substations in a few calls, and insert existing distribution feeders into them. Everything lands in a cim-graph model, ready to save as CIM RDF/XML or JSON-LD.
Substation builder Object builders Installation Developer docs
from cimgraph.utils import write_xml
from cimtables.units import Qty
from cimbuilder.network import new_feeder_model
from cimbuilder.object_builder import BaseVoltageBuilder
from cimbuilder.substation_builder import RingBusSubstationBuilder
network = new_feeder_model(authority="https://example.com/models", model="demo", Feeder="fdr_demo")
BaseVoltageBuilder(network, network.container).create(mRID="bv_115kV", nominalVoltage=Qty(115, "kV"))
builder = RingBusSubstationBuilder(network, network.container)
substation = builder.create(mRID="sub_ring", name="Ring bus")
substation, voltage_level = builder.add_voltage_level(substation, mRID="vl_115", BaseVoltage="bv_115kV")
voltage_level, busbars, ring = builder.add_buses(voltage_level, sections=4)
for section in (1, 2, 3, 4):
builder.add_branch(voltage_level, section=section, node=f"line_{section}")
write_xml(network, "ring_bus.xml") # 4 busbars, 4 breakers, 12 disconnectors
The builder makes the parts of a node-breaker model that are tedious to write by hand: every
ConnectivityNode, Terminal, BusbarSection, breaker and disconnector, with consistent mRIDs, all in the
right VoltageLevel with its BaseVoltage.
Substation layouts¶
-
Single bus
One bus, a breaker bay per branch. The simplest and cheapest layout.
-
Sectionalized bus
Bus sections joined by tie breakers, so a bus fault takes out only its own section.
-
Main and transfer
A transfer bus and normally open bypasses, to take a branch breaker out for maintenance.
-
Double bus, single breaker
Two buses, each branch switched onto either one by its bus selectors.
-
Ring bus
Bus sections in a closed loop of breakers. Any one breaker can open without an outage.
-
Breaker and a half
Diameters of three breakers between two buses, two branches per diameter.
Each layout page inserts the IEEE 13 node test feeders into a new 115 kV substation, writes the result to CIM XML and reads it back.
Equipment, one object at a time¶
Underneath the layouts, there is one object builder per CIM class: lines, switches, transformers and regulators, loads and capacitors, sources, generators and inverters, and their measurements and limits. Each one creates the object, then fills it in one CIM profile part at a time, with values in any unit. A feeder from scratch builds a complete small feeder this way.
Where it fits¶
flowchart LR
profiles["<b>cim-profiles</b><br/>CIM classes and units"] --> cimgraph["<b>cim-graph</b><br/>the model in memory,<br/>CIM XML and JSON-LD"]
cimgraph --> tables["<b>cimtables</b><br/>attribute and<br/>association writes"]
tables --> builder["<b>CIM-Builder</b><br/>object and<br/>substation builders"]
CIM-Builder is one of the PNNL CIM tools, alongside CIM-Graph and CIM-Tables.