Skip to content

User guide

You have a GridLAB-D .glm model and want CIM, or a CIM model and want a .glm. This guide runs both directions on the IEEE 13-node model that ships in the repository's tests.

  • Getting started


    Installation, then a quick start notebook that reads the model, imports it to CIM, looks at the .cimtbl text and exports a .glm.

  • Converting


    Import (.glm to CIM): reader and importer options, the artifact files, what raises. Export (CIM to .glm): names, the header, switch state, what raises. Players and schedules: time series and the time_points tables. Round trip: checking a converted model against the original.

  • What converts


    What converts lists every GLM class the importer and exporter handle, and the ones they skip. The conversion reference gives each class's CIM mapping.

The pipeline

flowchart LR
    glm[".glm"] -->|GlmReader| model["GlmModel"]
    model -->|GlmImporter| tbl[".cimtbl text"]
    tbl -->|cimtables| cim["CIM network"]
    cim -->|GlmExporter| model2["GlmModel"]
    model2 -->|GlmWriter| glm2[".glm"]

glm_to_cim runs the middle row (model to CIM) and cim_to_glm the last two steps. The shared parts of the pipeline, the .cimtbl contract and the getters that read CIM, are documented in CIMHub core.