Class NewellFundamentalDiagram

    • Constructor Detail

      • NewellFundamentalDiagram

        public NewellFundamentalDiagram​(double freeSpeedKmHour)
        Constructor using all defaults except for the free speed to apply
        Parameters:
        freeSpeedKmHour - to use
      • NewellFundamentalDiagram

        public NewellFundamentalDiagram​(double freeSpeedKmHour,
                                        double jamDensityPcuKm)
        Constructor using all defaults except for the free speed to apply
        Parameters:
        freeSpeedKmHour - to use
        jamDensityPcuKm - maximum density allowed
      • NewellFundamentalDiagram

        public NewellFundamentalDiagram​(double freeSpeedKmHour,
                                        double capacityPcuHour,
                                        double jamDensityPcuKm)
        Constructor using all defaults except for the free speed to apply
        Parameters:
        freeSpeedKmHour - to use
        capacityPcuHour - to allow
        jamDensityPcuKm - maximum density allowed
      • NewellFundamentalDiagram

        public NewellFundamentalDiagram​(NewellFundamentalDiagram newellFundamentalDiagram)
        Copy constructor
        Parameters:
        newellFundamentalDiagram - to copy
    • Method Detail

      • computeBackwardWaveSpeedForCapacity

        protected double computeBackwardWaveSpeedForCapacity​(double capacityPcuHour)
        Compute the backward wave speed that goes with a given capacity keeping all other variables the same
        Parameters:
        capacityPcuHour - to compute backward wave speed for ceteris paribus
        Returns:
        proposed backward wave speed
      • getCapacityFlowPcuHour

        public double getCapacityFlowPcuHour()
        Provide the capacity flow rate per hour
        Returns:
        capacity flow rate in pcu per hour
      • setCapacityPcuHour

        public void setCapacityPcuHour​(double capacityPcuHour)
        For the Newell FD this means that all remains the same except for the congested wave speed to ensure the FD remains viable since the capacity is derived and not explicitly set. By chaning the backward wave speed to the adjusted value we ensure we obtain the desired capacity
        Parameters:
        capacityPcuHour - to use
      • setMaximumDensityPcuKmHour

        public void setMaximumDensityPcuKmHour​(double maxDensityPcuKm)
        Change the maximum density to the new value
        Parameters:
        maxDensityPcuKm - to use
      • setMaximumSpeedKmHour

        public void setMaximumSpeedKmHour​(double maxSpeedKmHour)
        Change the maximum speed to the new value
        Parameters:
        maxSpeedKmHour - to use