The FuelBus is a component that manages the fuel network topology on a spacecraft.
It owns all connections (edges) between fuel components and provides APIs for
connecting, disconnecting, and querying the fuel network. The FuelSystem iterates
over all FuelBus instances to solve fuel flow across the simulation.
Adds signed flow to the edge between two components. Positive flow is stored in the→ direction when that edge exists; otherwiseflow is stored as negative on the reverse-oriented edge.
Connects two fuel components on specified ports. Creates an edge in the networkand adds both components to the cache if not already present.For cross-spacecraft connections, the edge is added to both buses.
Disconnects two fuel components on specified ports. Removes the edge from the network.For cross-spacecraft connections, the edge is removed from both buses.
Returns the signed flow rate through the edge between two components on the specified ports.Positive flow means flow from to .Returns 0 if the edge does not exist in the network.
Sets signed flow on the edge between two components. Positive flow is stored in the→ direction when that edge exists; otherwiseflow is stored as negative on the reverse-oriented edge.