diy solar

diy solar

Topology Code?

bryanxwhite

New Member
Joined
Mar 22, 2022
Messages
11
I've been searching the forum for the past few hours before asking this question. I see a number of folks posting topology code in posts. What is that code used in? I couldn't find any instances where someone mentions what site/software/program they use the code in to generate the topology layouts. Thanks in advance for your help!
 
I've been searching the forum for the past few hours before asking this question. I see a number of folks posting topology code in posts. What is that code used in? I couldn't find any instances where someone mentions what site/software/program they use the code in to generate the topology layouts. Thanks in advance for your help!
Its not code.
Its only embedded in code block to preserve the formatting.
Its a human readable description of what connects to what in a system.
The systems we make are like a ladder where the busbars are the risers and the circuits are the rungs.
Most of the topologies have a block called "legend".
The describes all the basic components in the topology.
I am developing it with an eye toward being a domain specific language but being able to code is not required to be able to read it.

Here is a relatively simple example.
If you have any questions I'm glad to answer.
Code:
dc_domain_legend {
    {} { functional block }
    // { comment }
    nnn|NNN| { fused busbar position where nnn is wire size in awg and NNN is the fuse rating in amps }
    nnn|UUU| { un-fused busbar position where nnn is wire size in awg }
    <-> { bi-directional current flow }
    -> { uni-directional current flow }
    <- { uni-directional current flow }
    dpst { double pole single through switch }
    @ { back reference }
    & { not connected }
    gl { grounding lug }
}
dc_domain {
    busbars { // 12 volt floating
        positive { // fhz busbar
            1/0|250|<->250A_mrbf_fuse<->battery.1
            1/0|250|<->250A_mrbf_fuse<->battery.2
            4/0|400|<->inverter_charger
            006|100|->fuse_block
            006|100|<-scc.out
            016|001|->shunt.positive
        }
        negative { // fhz busbar
                               |<->battery.1
            4/0|UUU|<->shunt<->|<->battery.2
            4/0|UUU|<->inverter_charger
            006|UUU|<-fuse_block
            006|UUU|->scc.out
        }
    }
}
 
Its not code.
Its only embedded in code block to preserve the formatting.
Its a human readable description of what connects to what in a system.
The systems we make are like a ladder where the busbars are the risers and the circuits are the rungs.
Most of the topologies have a block called "legend".
The describes all the basic components in the topology.
I am developing it with an eye toward being a domain specific language but being able to code is not required to be able to read it.

Here is a relatively simple example.
If you have any questions I'm glad to answer.
Code:
dc_domain_legend {
    {} { functional block }
    // { comment }
    nnn|NNN| { fused busbar position where nnn is wire size in awg and NNN is the fuse rating in amps }
    nnn|UUU| { un-fused busbar position where nnn is wire size in awg }
    <-> { bi-directional current flow }
    -> { uni-directional current flow }
    <- { uni-directional current flow }
    dpst { double pole single through switch }
    @ { back reference }
    & { not connected }
    gl { grounding lug }
}
dc_domain {
    busbars { // 12 volt floating
        positive { // fhz busbar
            1/0|250|<->250A_mrbf_fuse<->battery.1
            1/0|250|<->250A_mrbf_fuse<->battery.2
            4/0|400|<->inverter_charger
            006|100|->fuse_block
            006|100|<-scc.out
            016|001|->shunt.positive
        }
        negative { // fhz busbar
                               |<->battery.1
            4/0|UUU|<->shunt<->|<->battery.2
            4/0|UUU|<->inverter_charger
            006|UUU|<-fuse_block
            006|UUU|->scc.out
        }
    }
}
Thank you for the quick reply, it makes a lot more sense now! I wasn't sure if this related to the color wiring diagrams I've seen others post. Seems they are 2 sides of the same coin; 1 is color pictures, the other is raw "data". I'm new to solar so I tend to gravitate to the color pictures first.
 
Back
Top