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
}
}
}