Output Files

Overview

LOFT-Sim can emit optional XML output files configured through the output block in simulation_config.xml. A file is generated only when its element carries a file attribute (for example <fcd_output file="..."/>); the retired path attribute is rejected. Batch replication additionally writes JSON metrics files under the selected batch output directory.

Supported Outputs

Output block Purpose Typical XML element
summary_output Simulation-wide aggregate statistics <step ... />
fcd_output Per-vehicle kinematic and energy snapshots <vehicle ... />
tripinfo_output Completed-mission summaries <tripinfo ... />
preflight_schedule Strategic 4D reservation plan and request admission metadata <flight ... />
corridor_output Per-corridor traffic snapshots <corridor ... />
element_output Monitored corridor/node state from the network operation layer <corridor ... />, <node ... />
safety_metrics_output Aggregate separation, risk-precursor, geofence, queueing, and holding diagnostics <metrics ... />

The fcd_output vehicle rows include the active vehicle_type and the 6-DOF shell state exposed by the true-state model: position, ground speed, heading/yaw, roll, pitch, body rates, air-relative horizontal and vertical speeds, along-corridor progress, realized acceleration magnitude, energy, state of charge, power, flight mode, corridor ID, and runtime state.

The safety_metrics_output separation count is a same-corridor longitudinal metric. It compares vehicles on the same directed corridor using along-corridor progress; conflicts between different corridors are reported through controlled-node diagnostics rather than global Euclidean pair checks.

The same file now reports lower-tail gap, required-deceleration ratio (DRR), and time-to-conflict (TTC) precursors over consecutive same-corridor cruise pairs: gap_p05, gap_min, drr_peak, drr_p95, ttc_min, and ttc_p05, together with sample counts and the reference gap/deceleration constants. These are simulation-based comparative precursors, not regulatory separation or certification criteria.

Vertiport measurement scope. The vertiport model is deliberately simplified: all of a vertiport’s pads share one modeled coordinate, and the pad count (pad_count) — not geometric spacing — is what limits concurrent use (see Traffic Model). Vehicles legally parked or climbing on separate pads of the same vertiport therefore register near-zero mutual distances that are an artifact of the shared coordinate, not proximity events. Every gap/DRR/TTC statistic accordingly excludes pairs whose members are both inside a derived vertiport terminal zone — and so do minimum_observed_separation, separation_violation_count and their all_pair_* twins, which ask the same one predicate; the excluded exposure is reported as terminal_zone_pair_samples / terminal_zone_pair_seconds. Note that the cruise flight mode does not by itself exclude those vehicles: flight_mode classifies vertical speed only, so a vehicle parked on a pad reads cruise. Neither does queue_speed_threshold, which is airborne arrival-queue exposure accounting (both vehicles crawling while waiting for a pad or node slot) and overlaps the pad case only by accident. The correct safety check inside that region is pad concurrency: pad_overcapacity_seconds (time any vertiport’s concurrent resource holders exceeded its pad_count) and max_pad_concurrency_excess — both must be zero in a healthy run. Do not apply coordinate-distance collision checks to vehicles inside vertiport terminal zones.

element_output records occupancy, reported count/speed, density, entry/exit flow, queue/pad use, closure status, and closure reason. It is the element-side history complement to vehicle-side FCD/trip outputs.

corridor_output uses vehicle_count for instantaneous occupancy. The former drone-named fields are not part of the current output schema.

When a named operation-strategy file is loaded, runtime snapshots and supporting outputs carry its strategy_id. ACI request snapshots expose the internal default decision, active ACI override, effective decision, and decision history separately for runtime inspection.

Example

<output> is a container of attribute-style rows: one element per output kind, named by the kind, carrying file plus an optional sampling window. Optional Outputs lists the parameters each kind accepts, including the separation_threshold of safety_metrics_output.

<output>
  <summary_output file="../outputs/preflight/summary.xml" interval="60.0"/>
  <tripinfo_output file="../outputs/preflight/tripinfo.xml"/>
  <element_output file="../outputs/preflight/elements.xml" interval="10.0"/>
</output>

Unit Convention

Result-file column names follow the same rule as configuration keys: SI base units are implicit and carry no unit suffix (time, x, speed, energy, power, altitude, minimum_observed_separation). Only a value in a non-SI unit names that unit, spelled out in full — density_per_km, entry_flow_per_hour, queue_pair_seconds_per_cruise_flight_hour, and the batch metrics’ *_megajoules (present only when the run writes its XML outputs). The per-column unit of every output is documented in the writer tables in loft/output/writers.py.

Storage Behavior

  • Output paths are resolved relative to the selected simulation_config.xml, except a path that starts with outputs/ or output/, which is resolved from the folder that contains the loft package (the repository root in the editable install the guides use). See Where output files are written.
  • A relative --batch-output-dir, and the default outputs/batch/ folder, are resolved from that same folder.
  • Absolute paths are used as-is.
  • Disabled outputs are omitted entirely.
  • Output files are flushed incrementally during the run.
  • The checked-in strategic pre-flight example writes to example/scenarios/default/outputs/preflight/.

Batch Metrics

When loft-sim batch is launched, each worker writes a per-run metrics.json containing its random seed, workload counts, timing breakdown, active model configuration and operation-strategy identity, intervention count, and fast-time factor, plus metrics derived from the run’s XML outputs (see below). Capacity-meter values are not in metrics.json; they are written as attributes of the summary_output rows when capacity_limited_departure is active. The batch root writes summary.json with the run count, worker count, batch wall time and aggregate fast-time throughput, all per-run records, and the aggregate mean, standard deviation, minimum, and maximum of every numeric metric. Batch Replication shows the folder layout.

Per-run activity metrics use the vehicle vocabulary: peak_active_vehicles_sampled_1hz, mean_active_vehicles_sampled_1hz, peak_active_vehicles_step, mean_active_vehicles_step, and vehicle_step_updates.

For timing-focused studies, --batch-disable-xml-outputs disables XML writers inside each replication while preserving JSON metrics. Only the seed, workload, timing, policy and fast-time-factor keys then remain: the metrics that are derived from the XML outputs (plan and ground-delay counts from the pre-flight schedule, trip speed and energy, corridor density, and safety and geofence counts) are left out.

Output Analysis

Outputs are analysed offline with your own scripts; the editor has no output-analysis action. The experiments/ directory shows the pipeline used for the paper results.