Re: [sumo-user] Defining Electric Vehicles

2020-05-10 Thread Jakob Erdmann
This is recuperative braking (configured with param
"recuperationEfficiency". (The parameter is listed but no further
documentation currently exists).

Am So., 10. Mai 2020 um 15:39 Uhr schrieb Radha Reddy <
radha.reddy@gmail.com>:

> Dear Jakob,
>
> In the battery results, I saw *negative values for energy consumption and
> acceleration*.
>
> Is there any reason or documentation that explains this effect?
>
> Regards
> Radha
>
> On Sun, May 10, 2020 at 11:09 AM Radha Reddy 
> wrote:
>
>> Thank you very much for the clarity.
>>
>> Regards
>> Radha
>>
>> On Sun, May 10, 2020 at 11:04 AM Jakob Erdmann 
>> wrote:
>>
>>> The model is for plug-in-electric vehicles which burn no fossil fuels at
>>> all and thus generate no CO, CO2 and NOx.
>>> You are right, that most vehicles generate PMx from braking and tire
>>> wear but this in not modeled by SUMO (neither for electric nor combustion
>>> vehicles).
>>>
>>> regards,
>>> Jakob
>>>
>>> Am So., 10. Mai 2020 um 11:35 Uhr schrieb Radha Reddy <
>>> radha.reddy@gmail.com>:
>>>
 Dear Jakob,

 Many thanks for your kind response.

 I see that the emissions such as CO, CO2, NOx, PMx of electric vehicles
 are 0.00.
 Is these values are correct? But in general electric vehicles generate
 some emissions right.

 Regards
 Radha

 On Sun, May 10, 2020 at 7:40 AM Jakob Erdmann 
 wrote:

> see the example at
> https://sumo.dlr.de/docs/Models/Electric.html#defining_electric_vehicles
>
> Am Sa., 9. Mai 2020 um 18:51 Uhr schrieb Radha Reddy <
> radha.reddy@gmail.com>:
>
>> Hello,
>>
>> I need to analyze the Electric Vehicles.
>>
>> How I can define electric vehicles in TraCI (attached runner file)?
>>
>> > length="5" minGap="2.5" maxSpeed="8.3" guiShape="passenger"
>> carFollowModel="ACC" tau="1" sigma="0.5" *type="ElectricVehicle"*
>> probability="0.5" color="1, 1, 0" />
>>
>> Please help me in this.
>>
>> Regards
>> Radha
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
 ___
 sumo-user mailing list
 sumo-user@eclipse.org
 To unsubscribe from this list, visit
 https://www.eclipse.org/mailman/listinfo/sumo-user

>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Defining Electric Vehicles

2020-05-10 Thread Radha Reddy
Dear Jakob,

In the battery results, I saw *negative values for energy consumption and
acceleration*.

Is there any reason or documentation that explains this effect?

Regards
Radha

On Sun, May 10, 2020 at 11:09 AM Radha Reddy 
wrote:

> Thank you very much for the clarity.
>
> Regards
> Radha
>
> On Sun, May 10, 2020 at 11:04 AM Jakob Erdmann 
> wrote:
>
>> The model is for plug-in-electric vehicles which burn no fossil fuels at
>> all and thus generate no CO, CO2 and NOx.
>> You are right, that most vehicles generate PMx from braking and tire wear
>> but this in not modeled by SUMO (neither for electric nor combustion
>> vehicles).
>>
>> regards,
>> Jakob
>>
>> Am So., 10. Mai 2020 um 11:35 Uhr schrieb Radha Reddy <
>> radha.reddy@gmail.com>:
>>
>>> Dear Jakob,
>>>
>>> Many thanks for your kind response.
>>>
>>> I see that the emissions such as CO, CO2, NOx, PMx of electric vehicles
>>> are 0.00.
>>> Is these values are correct? But in general electric vehicles generate
>>> some emissions right.
>>>
>>> Regards
>>> Radha
>>>
>>> On Sun, May 10, 2020 at 7:40 AM Jakob Erdmann 
>>> wrote:
>>>
 see the example at
 https://sumo.dlr.de/docs/Models/Electric.html#defining_electric_vehicles

 Am Sa., 9. Mai 2020 um 18:51 Uhr schrieb Radha Reddy <
 radha.reddy@gmail.com>:

> Hello,
>
> I need to analyze the Electric Vehicles.
>
> How I can define electric vehicles in TraCI (attached runner file)?
>
>  length="5" minGap="2.5" maxSpeed="8.3" guiShape="passenger"
> carFollowModel="ACC" tau="1" sigma="0.5" *type="ElectricVehicle"*
> probability="0.5" color="1, 1, 0" />
>
> Please help me in this.
>
> Regards
> Radha
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
 ___
 sumo-user mailing list
 sumo-user@eclipse.org
 To unsubscribe from this list, visit
 https://www.eclipse.org/mailman/listinfo/sumo-user

>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Defining Electric Vehicles

2020-05-10 Thread Radha Reddy
Thank you very much for the clarity.

Regards
Radha

On Sun, May 10, 2020 at 11:04 AM Jakob Erdmann 
wrote:

> The model is for plug-in-electric vehicles which burn no fossil fuels at
> all and thus generate no CO, CO2 and NOx.
> You are right, that most vehicles generate PMx from braking and tire wear
> but this in not modeled by SUMO (neither for electric nor combustion
> vehicles).
>
> regards,
> Jakob
>
> Am So., 10. Mai 2020 um 11:35 Uhr schrieb Radha Reddy <
> radha.reddy@gmail.com>:
>
>> Dear Jakob,
>>
>> Many thanks for your kind response.
>>
>> I see that the emissions such as CO, CO2, NOx, PMx of electric vehicles
>> are 0.00.
>> Is these values are correct? But in general electric vehicles generate
>> some emissions right.
>>
>> Regards
>> Radha
>>
>> On Sun, May 10, 2020 at 7:40 AM Jakob Erdmann 
>> wrote:
>>
>>> see the example at
>>> https://sumo.dlr.de/docs/Models/Electric.html#defining_electric_vehicles
>>>
>>> Am Sa., 9. Mai 2020 um 18:51 Uhr schrieb Radha Reddy <
>>> radha.reddy@gmail.com>:
>>>
 Hello,

 I need to analyze the Electric Vehicles.

 How I can define electric vehicles in TraCI (attached runner file)?

 >>> length="5" minGap="2.5" maxSpeed="8.3" guiShape="passenger"
 carFollowModel="ACC" tau="1" sigma="0.5" *type="ElectricVehicle"*
 probability="0.5" color="1, 1, 0" />

 Please help me in this.

 Regards
 Radha
 ___
 sumo-user mailing list
 sumo-user@eclipse.org
 To unsubscribe from this list, visit
 https://www.eclipse.org/mailman/listinfo/sumo-user

>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Defining Electric Vehicles

2020-05-10 Thread Jakob Erdmann
The model is for plug-in-electric vehicles which burn no fossil fuels at
all and thus generate no CO, CO2 and NOx.
You are right, that most vehicles generate PMx from braking and tire wear
but this in not modeled by SUMO (neither for electric nor combustion
vehicles).

regards,
Jakob

Am So., 10. Mai 2020 um 11:35 Uhr schrieb Radha Reddy <
radha.reddy@gmail.com>:

> Dear Jakob,
>
> Many thanks for your kind response.
>
> I see that the emissions such as CO, CO2, NOx, PMx of electric vehicles
> are 0.00.
> Is these values are correct? But in general electric vehicles generate
> some emissions right.
>
> Regards
> Radha
>
> On Sun, May 10, 2020 at 7:40 AM Jakob Erdmann 
> wrote:
>
>> see the example at
>> https://sumo.dlr.de/docs/Models/Electric.html#defining_electric_vehicles
>>
>> Am Sa., 9. Mai 2020 um 18:51 Uhr schrieb Radha Reddy <
>> radha.reddy@gmail.com>:
>>
>>> Hello,
>>>
>>> I need to analyze the Electric Vehicles.
>>>
>>> How I can define electric vehicles in TraCI (attached runner file)?
>>>
>>> >> length="5" minGap="2.5" maxSpeed="8.3" guiShape="passenger"
>>> carFollowModel="ACC" tau="1" sigma="0.5" *type="ElectricVehicle"*
>>> probability="0.5" color="1, 1, 0" />
>>>
>>> Please help me in this.
>>>
>>> Regards
>>> Radha
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Defining Electric Vehicles

2020-05-10 Thread Radha Reddy
Dear Jakob,

Many thanks for your kind response.

I see that the emissions such as CO, CO2, NOx, PMx of electric vehicles are
0.00.
Is these values are correct? But in general electric vehicles generate some
emissions right.

Regards
Radha

On Sun, May 10, 2020 at 7:40 AM Jakob Erdmann  wrote:

> see the example at
> https://sumo.dlr.de/docs/Models/Electric.html#defining_electric_vehicles
>
> Am Sa., 9. Mai 2020 um 18:51 Uhr schrieb Radha Reddy <
> radha.reddy@gmail.com>:
>
>> Hello,
>>
>> I need to analyze the Electric Vehicles.
>>
>> How I can define electric vehicles in TraCI (attached runner file)?
>>
>> > minGap="2.5" maxSpeed="8.3" guiShape="passenger" carFollowModel="ACC"
>> tau="1" sigma="0.5" *type="ElectricVehicle"* probability="0.5" color="1,
>> 1, 0" />
>>
>> Please help me in this.
>>
>> Regards
>> Radha
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Defining Electric Vehicles

2020-05-10 Thread Jakob Erdmann
see the example at
https://sumo.dlr.de/docs/Models/Electric.html#defining_electric_vehicles

Am Sa., 9. Mai 2020 um 18:51 Uhr schrieb Radha Reddy <
radha.reddy@gmail.com>:

> Hello,
>
> I need to analyze the Electric Vehicles.
>
> How I can define electric vehicles in TraCI (attached runner file)?
>
>  minGap="2.5" maxSpeed="8.3" guiShape="passenger" carFollowModel="ACC"
> tau="1" sigma="0.5" *type="ElectricVehicle"* probability="0.5" color="1,
> 1, 0" />
>
> Please help me in this.
>
> Regards
> Radha
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Defining Electric Vehicles

2020-05-09 Thread Radha Reddy
Hello,

I need to analyze the Electric Vehicles.

How I can define electric vehicles in TraCI (attached runner file)?



Please help me in this.

Regards
Radha
#!/usr/bin/env python
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2009-2019 German Aerospace Center (DLR) and others.
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v20.html
# SPDX-License-Identifier: EPL-2.0

# @filerunner.py
# @author  Lena Kalleske
# @author  Daniel Krajzewicz
# @author  Michael Behrisch
# @author  Jakob Erdmann
# @date2009-03-26
# @version $Id$

from __future__ import absolute_import
from __future__ import print_function

import os
import sys
import optparse
import random

# we need to import python modules from the $SUMO_HOME/tools directory
if 'SUMO_HOME' in os.environ:
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
sys.path.append(tools)
else:
sys.exit("please declare environment variable 'SUMO_HOME'")

from sumolib import checkBinary  # noqa
import traci  # noqa


def generate_routefile():
random.seed(18)  # make tests reproducible
N = 2480  # number of time steps
# demand per second from different directions
pWE = 0.1
#pEW = 1. / 10
#pNS = 1. / 10
with open("data/cross.rou.xml", "w") as routes:
print("""
 








""", file=routes)
vehNr = 0
for i in range(N):
if random.uniform(0, 1) < pWE:
print('' % (
vehNr, i), file=routes)
vehNr += 1
if random.uniform(0, 1) < pWE:
print('' % (
vehNr, i), file=routes)
vehNr += 1
if random.uniform(0, 1) < pWE:
print('' % (
vehNr, i), file=routes)
vehNr += 1

if random.uniform(0, 1) < pWE:
print('' % (
vehNr, i), file=routes)
vehNr += 1
print("", file=routes)

# The program looks like this
#
# the locations of the tls are  NESW
#
#
#
#
#


def run():
"""execute the TraCI control loop"""
step = 0
# we start with phase 2 where EW has green
traci.trafficlight.setPhase("0", 0)
while traci.simulation.getMinExpectedNumber() > 0:
traci.simulationStep()

step += 1
traci.close()
sys.stdout.flush()


def get_options():
optParser = optparse.OptionParser()
optParser.add_option("--nogui", action="store_true",
 default=False, help="run the commandline version of 
sumo")
options, args = optParser.parse_args()
return options


# this is the main entry point of this script
if __name__ == "__main__":
options = get_options()

# this script has been called from the command line. It will start sumo as a
# server, then connect and run
if options.nogui:
sumoBinary = checkBinary('sumo')
else:
sumoBinary = checkBinary('sumo-gui')

# first, generate the route file for this simulation
generate_routefile()

# this is the normal way of using traci. sumo is started as a
# subprocess and then the python script connects and runs
traci.start([sumoBinary, "-c", "data/cross.sumocfg",
 "--tripinfo-output", "tripinfo.xml"])
run()
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user