Configuration for the mid-air refueling simulation.
Configuration of the airliner.
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.
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.
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.
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.
"a320" 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.
The speed (in kilometers per hour) required for the airplane to take off.
The distance (in kilometers) for the airplane to accelerate from a standstill until reaching the takeoff speed.
See "Flight path configuration" diagram.
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.
See "Flight path configuration" diagram. Affects how long the airplane takes of level off between climb and cruise.
See "Flight path configuration" diagram.
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.
See "Flight path configuration" diagram. Affects how long the airplane takes to land.
The distance (in kilometers) for the airplane to decelerate from landing speed to a standstill.
The speed (in kilometers per hour) at which the airplane lands.
The three-letter IATA airport code of the origin airport from which the airliner departs.
The codes of the airports over which the airliner flies to be mid-air refueled by those airports' UAVs.
No Additional ItemsThe code of the destination airport at which the airliner will land.
The altitude (in kilometers) of the airliner while in the cruise phase of flight.
The radius (in kilometers) of the arc followed by the airliner over each flyover airport.
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.
The number of UAVs at each flyover airport.
Each additional property must conform to the following schema
Type: objectThe number of UAVs at a specific airport.
The number of UAVs to refuel the airliner just before flying over the airport.
The number of UAVs to refuel the airliner just after flying over the airport.
Configuration of the UAVs (all of which are assumed to be the same).
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.
"At200" 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.
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).
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).
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.
"cessna" 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.
The speed (in kilometers per hour) required for the airplane to take off.
The distance (in kilometers) for the airplane to accelerate from a standstill until reaching the takeoff speed.
See "Flight path configuration" diagram.
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.
See "Flight path configuration" diagram. Affects how long the airplane takes of level off between climb and cruise.
See "Flight path configuration" diagram.
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.
See "Flight path configuration" diagram. Affects how long the airplane takes to land.
The distance (in kilometers) for the airplane to decelerate from landing speed to a standstill.
The speed (in kilometers per hour) at which the airplane lands.
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.
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.
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.
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.
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.
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.
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.
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.
See smallest_cruise_altitude_km and smallest_airliner_clearance_altitude_km.
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.
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
The time step (in seconds) with which to advance the simulation time at elapsed_mins.
Configuration to use when --simulation-viz-enabled=true (the default).
A number by which to multiply the time steps specified in the ratepoints.
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.
Configuration of the viewport in which the 3D visualization is rendered.
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 (in pixels) relative to the left edge of the screen.
Y-coordinate (in pixels) relative to the top edge of the screen.
Color theme to use for the sky and (if no map_texture_filename is specified) the ground.
Whether to enable the zoompoints. Requires zoompoints_config if true. For free zoom (using the scrollwheel over the viewport), set this to false.
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.
Zoompoints when the airliner is the airplane being tracked.
No Additional ItemsMinutes 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
The zoom level of the visualization at elapsed_mins.
Zoompoints when a UAV is the airplane being tracked.
Zoompoints for a "to-airport" UAV.
No Additional ItemsZoompoints for a "from-airport" UAV.
No Additional ItemsWhen 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).
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/).
Configuration to use when --view=map-view.
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/).
Scale factor for the 3D models (how much to enlarge them to still be visible in the map view).
An override zoom level to use exclusively for the map view.