nasa / gunns

The NASA General-Use Nodal Network Solver (GUNNS) software
Other
46 stars 12 forks source link

Compressed link admittance matrix #76

Closed jasonlharvey closed 1 year ago

jasonlharvey commented 1 year ago

Links with a large number of ports tend to have a large, sparsely-populated internal admittance matrix of size nPorts * nPorts that wastes a significant amount of memory as nPorts increases. This is not a problem for most links, which have 2 ports, but as an example, the GunnsThermalSource link in GunnShowThermalTest.xml has 12 ports and admittance matrix of 144 doubles, which is entirely unused. We envision applications having specialized links with hundreds or even thousands of ports and needing to use a compressed admittance matrix to avoid wasting too much memory.

jasonlharvey commented 1 year ago

This feature is documented in the wiki here: https://github.com/nasa/gunns/wiki/Admittance#the-links-admittance-matrix