GunnsThermalCapacitorHeatQueues - nasa/gunns GitHub Wiki
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.
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.
This should be &network->CAPACITOR, where CAPACITOR is replaced with the name of the GunnsThermalCapacitor link this spotter object services.
This spotter has no configuration data.
This spotter has no input data.
- N/A.
- N/A.