Tutorial Average Speed

Main Page > Tutorials > Average Speed

Space-Mean Speed Space-Mean Speed is the average speed of all vehicles occupying a given section of roadway over a specified time (essentially, the inverse of travel time for all vehicles over the specified section length). Space-Mean Speed is calculated by $$S=\frac{VMT}{VHT}$$

where The steps to verify Space-Mean Speed are as follow. Step 1. Run the Simulation Step 2. Verify the Link Data Calculations
 * 1) Open Swashsim (version 2019.12.6.1).
 * 2) Open the project file and the network file.
 * 3) Hit the Simulation Button.
 * 4) Set a warm-up time and a simulation Duration.
 * 5) Select Link Performance Measure data, Detector Aggregate Measures Data, Vehicle Time Step Data and Detector Vehicle Actuation Data for output options.
 * 6) Click the Customize to select the links you want to verify.
 * 7) Hit the Run Simulation button.
 * 1) Calculate the VMT and VHT following the steps in VMT tutorial and VHT tutorial.
 * 2) Divide the VMT by the VHT.
 * 3) The result should match the Avg.Speed (mi/h) (column G) in the LinkResults file.

Time-Mean Speed Time-Mean Speed is the average speed of all vehicles passing a point on a roadway over a specified time (instantaneous point speed, as taken by a radar gun for example). Time-Mean Speed is then calculated by $$S=\frac{1}{N} \sum_{i=1}^\N\ u_{i}$$ where The steps to verify Time-Mean Speed are as follow. Step 1. Run the Simulation Step 2. Verify the Detector Data Calculations
 * 1) Open Swashsim (version 2019.12.6.1).
 * 2) Open the project file and the network file.
 * 3) Hit the Simulation Button.
 * 4) Set a warm-up time and a simulation Duration.
 * 5) Select Link Performance Measure data, Detector Aggregate Measures Data, Vehicle Time Step Data and Detector Vehicle Actuation Data for output options.
 * 6) Click the Customize to select the links you want to verify.
 * 7) Hit the Run Simulation button.
 * 1) Open the Link_46_Lane_1_Detector_1_1_1, Link_46_Lane_1_Detector_2_1_1, Link_46_Lane_1_Detector_3_1_1 file in Excel (Take Link 46 as example, which has 3 lanes) and aggregate the three files to one file.
 * 2) Exclude the records that belong to the warm-up time.
 * 3) Sum the Speed(mi/h) (column J) of all the vehicles.
 * 4) Count the total number of vehicles.
 * 5) Divide the sum of the speed by the number of vehicles.
 * 6) The value should match the corresponding AverageSpeedMiPerHr (column I) in the DetetorAggeraegatMeasures file.