SimulationConfig

Type: object

Configuration for the mid-air refueling simulation.

Airliner Config

Type: object

Configuration of the airliner.

Airplane Spec Name

Type: enum (of string)

Which airplane spec to use for the airliner. Must be one of those listed below. specs.py acts as a registry for these and, if a different airliner is desired, a new spec can be added there.

Must be one of:

  • "JetFueledA320"
  • "Lh2FueledA320"
  • "LionFueledA320"
  • "LipoFueledA320"

Refueling Rate (kW)

Type: number

The maximum rate (in kilowatts / joules per second) at which the airliner can be refueled (by a UAV). Can represent refueling at a rate of x joules of fuel per second, or recharging at a rate of x kilowatts of electricity.

Initial Energy Level (%)

Type: number

The amount of energy (alternately, the corresponding amount of fuel) that the airliner starts with before takeoff from its origin airport. Expressed as a percentage (0-100) of the airliner's energy capacity.

Viz Model Name

Type: const

Which 3D model to use for the airliner, when --simulation-viz-enabled=true (the default). Must be one of those listed below. viz_models.py acts as a registry for these and, if a different 3D model is desired, a new one can be added there.

Must be one of:

  • "a320"
Specific value: "a320"

Airliner Flight Path Config

Type: object

Configuration of the airliner's flight path. Many fields are explained in the "Flight path configuration" diagram. Fields takeoff_speed_kmph through landing_speed_kmph are shared between the airliner_flight_path_config and the uavs_flight_path_config and are described as applying to an "airplane" rather than to an "airliner" or "UAV" specifically. Fields after that differ.

Takeoff Speed (km/h)

Type: number

The speed (in kilometers per hour) required for the airplane to take off.

Takeoff Distance (km)

Type: number

The distance (in kilometers) for the airplane to accelerate from a standstill until reaching the takeoff speed.

Takeoff Leveling Distance (km)

Type: number

See "Flight path configuration" diagram.

Rate of Climb (m/s)

Type: number

The speed (in meters per second) at which the airliner climbs between takeoff and cruise. This is only the vertical component of the aiplane's velocity.

Climb Leveling Distance (km)

Type: number

See "Flight path configuration" diagram. Affects how long the airplane takes of level off between climb and cruise.

Type: number

See "Flight path configuration" diagram.

Rate of Descent (m/s)

Type: number

The speed (in meters per second) at which the airliner descends between cruise and landing. This is only the vertical component of the airplane's velocity.

Landing Leveling Distance (km)

Type: number

See "Flight path configuration" diagram. Affects how long the airplane takes to land.

Landing Distance (km)

Type: number

The distance (in kilometers) for the airplane to decelerate from landing speed to a standstill.

Landing Speed (km/h)

Type: number

The speed (in kilometers per hour) at which the airplane lands.

Origin Airport Code

Type: string

The three-letter IATA airport code of the origin airport from which the airliner departs.

Flyover Airport Codes

Type: array of string

The codes of the airports over which the airliner flies to be mid-air refueled by those airports' UAVs.

No Additional Items

Each item of this array must be:

Type: string

Destination Airport Code

Type: string

The code of the destination airport at which the airliner will land.

Cruise Altitude (km)

Type: number

The altitude (in kilometers) of the airliner while in the cruise phase of flight.

Turning Radius (km)

Type: number

The radius (in kilometers) of the arc followed by the airliner over each flyover airport.

Speed Change Distance (km)

Type: number

The distance (in kilometers) over which the airliner slows down for refueling (from its cruise speed to the UAVs' cruise speed) or speeds up again after refueling.

# UAVs Per Flyover Airport

Type: object

The number of UAVs at each flyover airport.

Each additional property must conform to the following schema

Type: object

The number of UAVs at a specific airport.

To Airport

Type: integer

The number of UAVs to refuel the airliner just before flying over the airport.

From Airport

Type: integer

The number of UAVs to refuel the airliner just after flying over the airport.

UAVs Config

Type: object

Configuration of the UAVs (all of which are assumed to be the same).

Airplane Spec Name

Type: const

Which airplane spec to use for every UAV. Must be one of those listed below. specs.py acts as a registry for these and, if a different UAV is desired, a new spec can be added there.

Must be one of:

  • "At200"
Specific value: "At200"

Refueling Rate (kW)

Type: number

The maximum rate (in kilowatts / joules per second) at which every UAV can refuel the airliner. Can represent refueling at a rate of x joules of fuel per second, or recharging at a rate of x kilowatts of electricity.

Initial Energy Level (%)

Type: number

The amount of energy/fuel that every UAV starts with for its own use before takeoff from its airport. Expressed as a percentage (0-100) of the UAV's own energy capacity (based on its own fuel tank space).

Initial Refueling Energy Level (%)

Type: number

The amount of energy (alternately, the corresponding amount of fuel) for refueling the airliner that every UAV starts with before takeoff from its airport. Expressed as a percentage (0-100) of the UAV's refueling energy capacity (based on its cargo space).

Viz Model Name

Type: const

Which 3D model to use for every UAV, when --simulation-viz-enabled=true (the default). Must be one of those listed below. viz_models.py acts as a registry for these and, if a different 3D model is desired, a new one can be added there.

Must be one of:

  • "cessna"
Specific value: "cessna"

UAVs Flight Path Config

Type: object

Configuration of the UAVs' flight paths (all of which are assumed to follow the same parameters).
A UAV is described as having a "service side". The service side is "to-airport" for UAVs that refuel the airliner just before it flies over a given airport, and "from-airport" for UAVs that refuel the airliner just after it flies over it. Many fields are explained in the "Flight path configuration" diagram. Fields takeoff_speed_kmph through landing_speed_kmph are shared between the airliner_flight_path_config and the uavs_flight_path_config and are described as applying to an "airplane" rather than to an "airliner" or "UAV" specifically. Fields after that differ.

Takeoff Speed (km/h)

Type: number

The speed (in kilometers per hour) required for the airplane to take off.

Takeoff Distance (km)

Type: number

The distance (in kilometers) for the airplane to accelerate from a standstill until reaching the takeoff speed.

Takeoff Leveling Distance (km)

Type: number

See "Flight path configuration" diagram.

Rate of Climb (m/s)

Type: number

The speed (in meters per second) at which the airliner climbs between takeoff and cruise. This is only the vertical component of the aiplane's velocity.

Climb Leveling Distance (km)

Type: number

See "Flight path configuration" diagram. Affects how long the airplane takes of level off between climb and cruise.

Type: number

See "Flight path configuration" diagram.

Rate of Descent (m/s)

Type: number

The speed (in meters per second) at which the airliner descends between cruise and landing. This is only the vertical component of the airplane's velocity.

Landing Leveling Distance (km)

Type: number

See "Flight path configuration" diagram. Affects how long the airplane takes to land.

Landing Distance (km)

Type: number

The distance (in kilometers) for the airplane to decelerate from landing speed to a standstill.

Landing Speed (km/h)

Type: number

The speed (in kilometers per hour) at which the airplane lands.

Smallest Cruise Altitude (km)

Type: number

The minimum cruise altitude (in kilometers) among the UAVs. Among the UAVs with "to-airport" service, and among the UAVs with "from-airport" service, this is the actual cruise altitude of the UAV that refuels the airliner first. Subsequent UAVs must cruise at higher altitudes (differing by the inter_uav_vertical_distance_km) to stay out of each other's flight paths.

Arc Radius (km)

Type: number

The radius (in kilometers) of the arc followed by every UAV in the following cases. For the "to-airport" UAVs, this is the arc followed by the UAV after departing from the airport, when turning around to fly with and refuel the airliner. For the "from-airport" UAVs, this is the arc followed by the UAV after refueling and ascending from the airliner, when turning around to return to the airport.

Airliner-UAV Docking Distance (km)

Type: number

The distance (in kilometers) between the airliner and UAV when docked for refueling. Evident when --simulation-viz-enabled=true (the default), this is not the distance between the top of the airliner's fueselage and the bottom of the UAV, but the distance between their respective 3D models' origins. This means that if either the airliner's or UAV's 3D models are changed, then the airliner_uav_docking_distance_km may need to be changed accordingly.

Smallest (Un)Docking Distance From Airport (km)

Type: number

For the "to-airport" UAVs, this is the minimum distance (in kilometers) from the airport at which the UAV will undock from the airliner after refueling. For the "from-airport" UAVs, this is the minimum distance from the airport at which the UAV will dock with the airliner for refueling. For the UAVs that refuel the airliner closest to a given flyover airport, this is their actual (un)docking distance. For UAVs farther from the airport, their distance is obviously greater.

Inter-UAV Clearance (km)

Type: number

Among the "to-airport" UAVs at a given flyover airport, and among the "from-airport" UAVs at a given flyover airport, this is the distance between one UAV undocking with the airliner and a subsequent UAV docking with it.

Airliner Clearance Speed (km/h)

Type: number

After the airliner is refueled once, it must remain at the UAVs' cruise speed for any further refuelings at the same flyover airport. Therefore, after undocking and ascending above the airliner, every UAV must temporarily slow down to this airliner_clearance_speed_kmph in order to 'fall behind' it, to allow the UAV to then descend below the airliner's cruise altitude on its way back to the airport, to allow further UAVs to safely refuel the airliner.

Airliner Clearance Distance (km)

Type: number

See airliner_clearance_speed_kmph. The airliner_clearance_distance_km is the distance (in kilometers) by which every UAV will 'fall behind' the airliner after undocking.

Smallest Airliner Clearance Altitude (km)

Type: number

See airliner_clearance_speed_kmph. The smallest_airliner_clearance_altitude_km is the minimum altitude (in kilometers) at which the UAVs will fly after descending below the airliner's cruise altitude on its way back to the airport. Among the UAVs with "to-airport" service, and among the UAVs with "from-airport" service, this is the actual airliner clearance altitude of the UAV that refuels the airliner first. Subsequent UAVs must have higher airliner clearance altitudes (differing by the inter_uav_vertical_distance_km) to stay out of each other's flight paths.

Inter-UAV Vertical Distance (km)

Type: number

See smallest_cruise_altitude_km and smallest_airliner_clearance_altitude_km.

Ratepoints

Type: array

The rate at which the simulation advances does not need to be constant. A non-constant rate is achieved by specifying ratepoints: the rate at which to advance the simulation at different times in the simulation. This is most useful when vis_enabled is true for speeding up mundane parts of the visualization in a reproduceable way, such as when the airliner is between flyover airports, and slowing down parts of the visualization that are of greater interest or require a finer simulation resolution, such as when the airliner is being refueled. Each ratepoint specifies a time_step_s with which to advance the simulation at a specified number of minutes elapsed. Between ratepoints, linear interpolation is used to smoothly transition from one rate to the next. A constant rate can be set by specifying a single ratepoint.

No Additional Items

Each item of this array must be:

Type: object

Elapsed Mins


Minutes into the simulation. Can be either a number or a string containing an algebraic expression with number(s), one of the below-listed variables, and add/subtract operations. In other words, it can be in any of the following formats:

{number}
{variable}
{number} +/- {number}
{variable} +/- {number}

Valid variables are as follows:

The following variables are specific to the airliner and can be used regardless of whether the airliner is the airplane being tracked.
Airliner_takeoff_point
Airliner_ascended_point
{UAV ID}_on_airliner_docking_point
{UAV ID}_on_airliner_undocking_point
Airliner_curve_over_{flyover airport code}_midpoint
Airliner_descent_point
Airliner_landing_point
Airliner_landed_point

The following variables are specific to UAVs and can only be used when a UAV is the airplane being tracked; the following variables refer to that UAV.
first_point
takeoff_point
ascended_point
arc_start_point
arc_end_point
descent_to_airliner_point
on_airliner_docking_point
on_airliner_undocking_point
ascended_from_airliner_point
lowering_point
lowered_point
descent_point
landing_point
landed_point

Type: number
Type: string

Time Step (s)

Type: number

The time step (in seconds) with which to advance the simulation time at elapsed_mins.

Viz Config

Default: null

Configuration to use when --simulation-viz-enabled=true (the default).

Type: object

Time Step Multiplier

Type: number Default: 1.0

A number by which to multiply the time steps specified in the ratepoints.

Max Frame Rate (FPS)

Type: integer

Maximum frame rate (in frames per second) at which to render the visualization. If updating a frame takes too long, the actual frame rate will be less.

Viewport Config

Type: object

Configuration of the viewport in which the 3D visualization is rendered.

Viewport Size

Type: object

Width (px)

Type: integer

Height (px)

Type: integer

Origin

Type: object

The position of the viewport with respect to the top-left corner of your screen. Cannot be set to your liking, but must be set when using the --record command-line argument to record the correct region of your screen.

X-Coordinate (px)

Type: integer

X-coordinate (in pixels) relative to the left edge of the screen.

Y-Coordinate (px)

Type: integer

Y-coordinate (in pixels) relative to the top edge of the screen.

Theme

Type: enum (of string)

Color theme to use for the sky and (if no map_texture_filename is specified) the ground.

Must be one of:

  • "day"
  • "night"

Zoompoints Enabled

Type: boolean Default: true

Whether to enable the zoompoints. Requires zoompoints_config if true. For free zoom (using the scrollwheel over the viewport), set this to false.

Zoompoints Config

Default: null

Type: object

The zoom level of the visualization does not need to be constant. A non-constant zoom level is achieved by specifying zoompoints: the zoom level at different times in the simulation. This allows the zoom to be controlled in a reproduceable way. Each zoompoint specifies a zoom level at a specified number of minutes elapsed. Between zoompoints, linear interpolation is used to smoothly transition from one zoom level to the next. A constant zoom can be set by specifying a single zoompoint.

Airliner Zoompoints

Type: array

Zoompoints when the airliner is the airplane being tracked.

No Additional Items

Each item of this array must be:

Type: object

Elapsed Mins


Minutes into the simulation. Can be either a number or a string containing an algebraic expression with number(s), one of the below-listed variables, and add/subtract operations. In other words, it can be in any of the following formats:

{number}
{variable}
{number} +/- {number}
{variable} +/- {number}

Valid variables are as follows:

The following variables are specific to the airliner and can be used regardless of whether the airliner is the airplane being tracked.
Airliner_takeoff_point
Airliner_ascended_point
{UAV ID}_on_airliner_docking_point
{UAV ID}_on_airliner_undocking_point
Airliner_curve_over_{flyover airport code}_midpoint
Airliner_descent_point
Airliner_landing_point
Airliner_landed_point

The following variables are specific to UAVs and can only be used when a UAV is the airplane being tracked; the following variables refer to that UAV.
first_point
takeoff_point
ascended_point
arc_start_point
arc_end_point
descent_to_airliner_point
on_airliner_docking_point
on_airliner_undocking_point
ascended_from_airliner_point
lowering_point
lowered_point
descent_point
landing_point
landed_point

Type: number
Type: string

Zoom

Type: number

The zoom level of the visualization at elapsed_mins.

UAVs Zoompoints Config

Type: object

Zoompoints when a UAV is the airplane being tracked.

To Airport

Type: array

Zoompoints for a "to-airport" UAV.

No Additional Items

Each item of this array must be:

From Airport

Type: array

Zoompoints for a "from-airport" UAV.

No Additional Items

Each item of this array must be:

Type: null

Landed UAVs Waiting Time (Mins)

Type: number

When tracking a UAV, how long (in minutes) to wait after a flyover airport's last UAV lands before ending that UAV's visualization / starting the next UAV's visualization (depending on which UAV is the airplane being tracked).

Map Texture Filename

Default: null

Name of the texture image file (e.g., a .jpg file) to use for the ground. For some reason, this file must be added to vpython's textures folder (e.g., ~/miniconda3/envs/{conda-env-name}/lib/{python-version}/site-packages/vpython/vpython_data/).

Type: string
Type: null

Map View Config


Configuration to use when --view=map-view.

Type: object

Map Texture Filename

Default: null

Name of the texture image file (e.g., a .jpg file) to use as the map view's background. For some reason, this file must be added to vpython's textures folder (e.g., ~/miniconda3/envs/<conda-env-name>/lib/<python-version>/site-packages/vpython/vpython_data/).

Type: string
Type: null

Models Scale Factor

Type: number

Scale factor for the 3D models (how much to enlarge them to still be visible in the map view).

Zoom

Type: number

An override zoom level to use exclusively for the map view.

Type: null
Type: null