GunnsThermalCapacitorHeatQueues - nasa/gunns GitHub Wiki

Background

This spotter interfaces a GunnsThermalCapacitor link with a Trick thread-safe sim bus queue. The GunnsThermalCapacitor doesn't have variables to receive queues directly from the sim bus. So, this spotter collects heat values from a sim bus queue for the capacitor. This allows heats generated by a model with a higher execution rate than the capacitor to be queued and integrated, for better conservation of energy.

The contrast between using or not using this spotter is illustrated below. In this example, the GunnsThermalCapacitor is running in Network A, and is wanting heat flux values from a faster model running in Network B:

In the non-queued case, the capacitor only sees the last value from the faster model in Network B, and must assume that value is constant for the entire previous time step. In the queued case, the capacitor gets the average of all 3 values in the queue, and this results in a more accurate integration of the heats from the faster model, and better conservation of energy.

How To Use in GunnsDraw

You'll find this spotter in the gunns/draw/libraries/GUNNS_Spotters.xml shape library. This is a spotter, so doesn't have port connections to nodes or links in the drawing. Rather, it is associated with a GunnsThermalCapacitor by name, in its ConstructorArgs parameter, below.

ConstructorArgs Parameter:

This should be &network->CAPACITOR, where CAPACITOR is replaced with the name of the GunnsThermalCapacitor link this spotter object services.

Configuration Data Parameters:

This spotter has no configuration data.

Input Data Parameters:

This spotter has no input data.

Common Problems

  • N/A.

References

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