Skip to content

Commit

Permalink
first working example
Browse files Browse the repository at this point in the history
  • Loading branch information
frunika committed Feb 14, 2021
1 parent b5c507a commit 1008c18
Show file tree
Hide file tree
Showing 28 changed files with 7,816 additions and 0 deletions.
14 changes: 14 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Vissim PHEMlight example

There are three links in this Vissim model.

All three links have the same traffic volume and the same driving behavior.
On each link, the passenger cars are influenced by a traffic signal.

For each vehicle, different emissions are calculated using PHEMlight during the simulation.
On the left link, the vehicle input contains passenger cars with emission class Euro 4, powered by **gasoline**.
On the right side passenger cars with **diesel** Euro 4.
On the middle link, both vehicle types have equal shares.

The colors of the link segments show the calculated NOx emissions.
The bars show the fuel consumption.
8 changes: 8 additions & 0 deletions example/Vissim_PHEMlight.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Path to PHEMlight vehicles files (.csv, .PHEMLight.veh, _FC.csv)
# "PATH = [RelPath]"
PATH = .\phem_vehicles\

# VISSIM_ID ; PHEM_VEHICLE_TYPE ; PHEM_POWER_TYPE ; PHEM_EU_CLASS
DEFAULT;PC;G;EU4
100;PC;G;EU4
101;PC;D;EU4
2,110 changes: 2,110 additions & 0 deletions example/phem_light_example.inpx

Large diffs are not rendered by default.

1,185 changes: 1,185 additions & 0 deletions example/phem_light_example.layx

Large diffs are not rendered by default.

79 changes: 79 additions & 0 deletions example/phem_light_example1.sig
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<sc version="202001" id="1" name="" frequency="1" steps="0" defaultIntergreenMatrix="0" interstagesUsingMinDurations="true" checkSum="1644766407">
<signaldisplays>
<display id="1" name="Red" state="RED">
<patterns>
<pattern pattern="MINUS" color="#FF0000" isBold="true" />
</patterns>
</display>
<display id="2" name="Red/Amber" state="REDAMBER">
<patterns>
<pattern pattern="FRAME" color="#CCCC00" isBold="true" />
<pattern pattern="SLASH" color="#CC0000" isBold="false" />
<pattern pattern="MINUS" color="#CC0000" isBold="false" />
</patterns>
</display>
<display id="3" name="Green" state="GREEN">
<patterns>
<pattern pattern="FRAME" color="#00CC00" isBold="true" />
<pattern pattern="SOLID" color="#00CC00" isBold="false" />
</patterns>
</display>
<display id="4" name="Amber" state="AMBER">
<patterns>
<pattern pattern="FRAME" color="#CCCC00" isBold="true" />
<pattern pattern="SLASH" color="#CCCC00" isBold="false" />
</patterns>
</display>
</signaldisplays>
<signalsequences>
<signalsequence id="3" name="Red-Red/Amber-Green-Amber">
<state display="1" isFixedDuration="false" isClosed="true" defaultDuration="1000" />
<state display="2" isFixedDuration="true" isClosed="true" defaultDuration="1000" />
<state display="3" isFixedDuration="false" isClosed="false" defaultDuration="5000" />
<state display="4" isFixedDuration="true" isClosed="true" defaultDuration="3000" />
</signalsequence>
</signalsequences>
<sgs>
<sg id="1" name="Signalgruppe 1" defaultSignalSequence="3">
<defaultDurations>
<defaultDuration display="1" duration="1000" />
<defaultDuration display="2" duration="1000" />
<defaultDuration display="3" duration="5000" />
<defaultDuration display="4" duration="3000" />
</defaultDurations>
</sg>
</sgs>
<intergreenmatrices />
<progs>
<prog id="1" cycletime="60000" switchpoint="0" offset="0" intergreens="0" fitness="0.000000" vehicleCount="0" name="Signalprogramm 1">
<sgs>
<sg sg_id="1" signal_sequence="3">
<cmds>
<cmd display="3" begin="0" />
<cmd display="1" begin="43000" />
</cmds>
<fixedstates>
<fixedstate display="4" duration="3000" />
<fixedstate display="2" duration="1000" />
</fixedstates>
</sg>
</sgs>
</prog>
</progs>
<stages>
<stage id="1" name="Phase 1" isPseudoStage="false">
<activations>
<activation sg_id="1" activation="ON" />
</activations>
</stage>
<stage id="2" name="Phase 2" isPseudoStage="false">
<activations>
<activation sg_id="1" activation="OFF" />
</activations>
</stage>
</stages>
<interstageProgs />
<stageProgs />
<dailyProgLists />
</sc>
134 changes: 134 additions & 0 deletions example/phem_vehicles/PC_D_EU4.PHEMLight.veh
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
c PHEMLight Vehicle Input filefc (based on PHEM .veh file format)
c PHEM 11.7.5 CO2 map test 2
c 02.02.2016 08:16:17
c Vehicle mass [kg]
1500
c Vehicle loading [kg]
50
c Cd value [-]
0.3113
c Cross sectional area [m^2]
2.16
c Delta [-] (not supported since Version 10.7)
0
c Engine rotational inertia [kg*m^2]
0.5234
c Wheels equivalent rotational inertia [kg] (= I_wheel/rdyn^2)
41.3424
c Gearbox rotational inertia [kg*m^2]
0.06046
c Auxiliaries base power demand (normalized) [-]
0
c Engine rated power [kW]
93
c Engine rated speed [rpm]
4073
c Engine idling speed [rpm]
816
c ---
0
c Rolling resistance coefficients
c Fr0
0.009
c Fr1
5E-05
c Fr2
0
c Fr3
0
c Fr4
1.6E-09
c ---
0
c Transmission loss factor
0.3
c Transmission
c Axle ratio [-]
3.7284,
c Wheel effective diameter [m]
0.6264
c Transmission gears: Ratio [-], path to efficiency map filefc (optional)
c Gear 1
3.7079,
c Gear 2
2.0237,
c Gear 3
1.2784,
c Gear 4
0.9359,
c Gear 5
0.7414,
c Gear 6
0.6162,
c Gear 7
0,
c Gear 8
0,
c Gear 9
0,
c Gear 10
0,
c Gear 11
0,
c Gear 12
0,
c Gear 13
0,
c Gear 14
0,
c Gear 15
0,
c Gear 16
0,
c Gear shift behaviour:
c Gearshift model (Version fast driver)
c shift up at ratio rpm/rated rpm in actual gear greater than
0.7840928
c shift down when rpm/rated rpm in lower gear is higher than
0.6081684
c Gearshift model (Version economic driver)
c shift up at ratio rpm/rated rpm in higher gear greater than
0.5601891
c Shift down when ratio rpm/rated rpm in actual gear is lower than
0.5202062
c Share of version economic driver (0 to 1)
0
c Share of version mixed model (0 to 1)
1
cVehiclemasstypeforPHEMlight
LV
cFueltypeforPHEMlight
D
c P_n_max_v0
5
c P_n_max_p0
0.13
c P_n_max_v1
26
c P_n_max_p1
0.75
c vehicle speed [km/h] (converted to m/s after read-in), gear ratio [-], rotational mass factor [-]
0,3.7079,1.67
10.53695,3.7079,1.67
28.99677,2.0237,1.2
43.68127,1.2784,1.08
69.56696,0.9359,1.05
94.3671,0.7414,1.03
121.0647,0.6162,1.02
250,0.6162,1.02
c n_norm, pe_drag _norm
0,-0.015
0.002,-0.015
0.05,-0.017
0.1,-0.02
0.2,-0.028
0.3,-0.039
0.4,-0.05
0.5,-0.063
0.6,-0.078
0.7,-0.098
0.8,-0.121
0.9,-0.145
1,-0.169
1.1,-0.198
1.2,-0.232
35 changes: 35 additions & 0 deletions example/phem_vehicles/PC_D_EU4.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
cp_norm(drive),NOx,HC,CO,PM,PN,NO
[-],[g/h],[g/h],[g/h],[g/h],[#/h],[g/h]
Pdrive (Engine)= 22.11115,Extrapolation: Pe: -1.5 - -1.25; 3.75 - 6
idle,5.95534,0.1406479,0.2413937,0.1616896,1.11E+14,3.26342
-1.5,0,0,0,0,0,0
-1.25,0,0,0,0,0,0
-1,1.8106,0.1140485,0.3899072,0.1578594,1.86E+14,1.028107
-0.75,3.51163,0.2084584,0.8743084,0.3038903,3.63E+14,1.98543
-0.5,6.389799,0.3229104,1.062626,0.438556,5.73E+14,3.632768
-0.25,9.399384,0.4154986,0.844896,0.5310611,7.27E+14,5.378731
0,12.03175,0.4185574,0.7594641,0.5656357,7.72E+14,6.873875
0.25,19.22764,0.5726808,1.368716,0.8483028,1.17E+15,11.00196
0.5,30.78983,0.6917911,1.977875,1.225236,1.63E+15,17.84461
0.75,44.01824,0.7626554,2.612527,1.687364,2.14E+15,25.59621
1,66.45253,0.8137084,2.968721,2.221274,2.83E+15,39.10237
1.25,81.7254,0.8343465,3.192058,2.407159,3.09E+15,47.86955
1.5,111.2948,0.9483307,3.222644,2.798034,3.77E+15,66.01514
1.75,130.983,0.9917992,3.103828,2.876693,4.16E+15,77.40793
2,155.5134,0.9762785,3.366468,2.696024,4.13E+15,90.57925
2.25,210.9117,0.9075134,4.5983105,2.965473,4.37E+15,119.3683
2.5,220.5246,1.006408,5.830153,3.234922,4.62E+15,125.0741
2.75,258.9931,1.087851,5.325302,3.504371,4.86E+15,148.5889
3,279.6105,1.318822,5.325302,3.77382,5.10E+15,164.0854
3.25,281.7131,1.479041,5.325302,5.258993,6.24E+15,166.602
3.5,300.451,1.598447,5.325302,6.99257,7.02E+15,179.9282
3.75,321.9117,1.712622,5.325302,7.49204,7.52E+15,192.7802
4,343.3725,1.826797,5.325302,7.991509,8.02E+15,205.6322
4.25,364.8333,1.940972,5.325302,8.490978,8.52E+15,218.4842
4.5,386.2941,2.055147,5.325302,8.990448,9.02E+15,231.3362
4.75,407.7549,2.169322,5.325302,9.489918,9.53E+15,244.1882
5,429.2157,2.283496,5.325302,9.989388,1.00E+16,257.0402
5.25,450.6765,2.397671,5.325302,10.48886,1.05E+16,269.8922
5.5,472.1372,2.511846,5.325302,10.98833,1.10E+16,282.7443
5.75,493.598,2.626021,5.325302,11.4878,1.15E+16,295.5963
6,515.0588,2.740196,5.325302,11.98727,1.20E+16,308.4483
17 changes: 17 additions & 0 deletions example/phem_vehicles/PC_D_EU4_FC.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cp_norm(rated),FC
[-],[g/kWrated]
Pdrive (Engine)= 22.11115,Extrapolation: Pe: 0.9000001 - 1
idle,6.225238
-0.2,3.632487
-0.1,11.32746
0,18.48723
0.1,33.5591
0.2,52.99504
0.3,72.9073
0.4,93.49616
0.5,106.7572
0.6,120.398
0.7,145.4391
0.8000001,157.9092
0.9000001,177.6479
1,197.3865
Loading

0 comments on commit 1008c18

Please sign in to comment.