Description

The Fuel Transfer Software manages propellant transfer between tanks by coordinating valves, pumps, and destination tank demand. It implements a state machine that handles the complete transfer sequence from path initialization through completion or abort. The software supports both same-spacecraft transfers and cross-spacecraft transfers via a Fuel Interconnect.


Example Use Cases

  • On-Orbit Refueling: Transfer propellant from a tanker spacecraft to a client spacecraft through a docked interconnect.
  • Tank Balancing: Equalize propellant mass between tanks to maintain spacecraft center of mass.
  • Depot Operations: Automated filling of destination tanks to a target level.

Module Implementation

State Machine

The transfer sequence follows a state machine with the following states:

StateDescription
IdleReady to begin a new transfer
OpeningOpening valves and enabling pumps
TransferringActively moving propellant
ClosingShutting down path components
CompleteTransfer finished successfully
AbortedTransfer stopped due to error or abort command

When a transfer is started, the software transitions from Idle to Opening. Once all path components are ready (valves open, pumps enabled), it transitions to Transferring. The transfer continues until a completion condition is met or a stop is requested, at which point it transitions through Closing to either Complete or Aborted.

Transfer Modes

The software supports multiple operating modes that determine when a transfer completes:

ModeCompletion Condition
ManualRuns until explicitly stopped
Transfer AmountStops after transferring target mass
Transfer To PercentStops when destination reaches target fill percentage
Balance TanksStops when tanks reach equal mass
ContinuousRuns until stopped or source depleted

Demand Calculation

During transfer, the software sets the destination tank’s desired ingoing flow rate. For most modes, this equals the configured desired flow rate , clamped to the remaining tank capacity:

where is the destination tank capacity and is its current mass.

In Balance Tanks mode, the target is the average mass of both tanks:

Flow demand is set to zero once the destination tank reaches or exceeds this average.

Progress Tracking

The software computes percent complete based on the transfer mode. For Transfer Amount mode:

For Balance Tanks mode, progress is computed from the reduction in tank mass difference:

where the subscript 0 denotes initial values at transfer start.

Estimated time remaining is computed when flow rate is non-zero:

Abort Conditions

The transfer is automatically aborted if any of the following conditions occur:

  • Source or destination tank becomes unavailable
  • Destination tank enters thermal shutoff (if enabled)
  • Cross-spacecraft interconnect link breaks (if enabled)
  • Source tank reaches minimum reserve level

Assumptions/Limitations

  • The software coordinates existing fuel network components; it does not model fluid dynamics directly.
  • Path readiness requires valves to be at least 99% open before transitioning to the Transferring state.
  • Cross-spacecraft transfers require a physical dock to be established before the transfer can begin.
  • The software assumes instantaneous command execution for valve and pump state changes.
  • Tank balancing targets exact equality; it does not account for different tank geometries or ullage effects.