|
Autopysta
|
Parameter class for Newell's car-following model. More...
#include <p_newell.h>
Public Member Functions | |
| p_newell () | |
| Default constructor for p_newell. | |
| p_newell (double u, double w, double kj) | |
| Constructor with custom parameter values. | |
Public Member Functions inherited from params | |
| params () | |
| Default constructor for the params class. | |
Parameter class for Newell's car-following model.
The p_newell class manages the specific parameters required for Newell's car-following model. These parameters control the behavior of vehicles in free-flow and congested traffic conditions.
Key Parameters:
u): The speed at which vehicles travel under free-flow conditions (i.e., no congestion). This is typically set in meters per second.w): The speed at which congestion waves propagate backward through the traffic. This helps simulate how quickly disturbances in the flow of traffic spread.kj): The density of vehicles in a jammed traffic condition, which helps define the minimum spacing between vehicles. | p_newell::p_newell | ( | ) |
Default constructor for p_newell.
Initializes the parameters with default values for free-flow speed, wave speed, and jam density. These defaults represent typical traffic conditions.
Default Values:
| p_newell::p_newell | ( | double | u, |
| double | w, | ||
| double | kj ) |
Constructor with custom parameter values.
This constructor allows setting custom values for free-flow speed (u), wave speed (w), and jam density (kj). These values can be used to simulate specific traffic scenarios.
| u | Free-flow speed in meters per second. |
| w | Wave speed in meters per second. |
| kj | Jam density in vehicles per meter. |