GunnsDraw Network - nasa/gunns GitHub Wiki

Background

This is a custom Draw.io container that represents the GUNNS network, and its contents, in a GunnsDraw drawing. The GunnsDraw script: gunns/draw/netexport.py is use to auto-generate the network C++ class from this network container and its contents.

The name of this container is used as the name of the exported network C++ code .hh and .cpp files, and the main network class inside them.

This network container’s shape data configures the GUNNS solver that is in the exported network class.

How To Use In GunnsDraw

Rules

  • This must always be placed in the original layer of the drawing, or the ‘Network’ layer when starting from the gunns/draw/drawings/EmptyNetwork.xml starter drawing. GunnsDraw won’t export this to the output C++ code unless it is in this layer.
  • Only place one of these network containers in a network drawing.
  • Name the network container the same name as the drawing .xml file. We recommend <System><Subsystem><Aspect>, like IssEclssFluid. So if the drawing were named IssEclssFluid.xml, then this network container name would be IssEclssFluid. If these don’t match, then the exported network code name doesn’t match the drawing .xml file, which can lead to confusion, so the netexport.py script will give a warning if these don’t match.

Configuration Data Parameters:

See solver configuration data for an explanation of these terms.

Input Data Parameters:

None.

Common Problems

  • N/A.

References

  • N/A
⚠️ **GitHub.com Fallback** ⚠️