matsim-org/matsim-code-examples

Why CO2 Emission of Eletric Vehicle is not 0 After the Offline Calculation of Emission Contrib

jingjunL opened this issue · 1 comments

I think the reason for this problem is something wrong with my code, but I am not sure...

Basically, I have a DRT simulation. I would like to assume the DRT vehicles are electric vehicles and compare the emission with the baseline scenario. So what I did was specify the HBEFA vehicle attributes as below for DRT vehicles:

<attributes>
				<attribute name="HbefaVehicleCategory" class="java.lang.String">PASSENGER_CAR</attribute>
				<attribute name="HbefaTechnology" class="java.lang.String">electricity</attribute>
				<attribute name="HbefaSizeClass" class="java.lang.String">average</attribute>
				<attribute name="HbefaEmissionsConcept" class="java.lang.String">average</attribute>
</attributes>

I encountered the below warnings when running the emission contrib. If I understand it correctly, it means emission contrib didn't find the corresponding factors for the electric vehicles I specify? But I didn't see a warning for CO2 in here?

2023-08-28T11:25:26,143  WARN ColdEmissionAnalysisModule:364 did not find emission factor for efkey=PASSENGER_CAR; NO2; 13; 1; electricity; average; average
2023-08-28T11:25:26,143  WARN ColdEmissionAnalysisModule:365  re-written to PASSENGER_CAR; NO2; 13; 1; electricity; average; average
2023-08-28T11:25:26,143  WARN ColdEmissionAnalysisModule:366 will try it with '<technology>; average; average'
2023-08-28T11:25:26,143  WARN ColdEmissionAnalysisModule:367  This message given only once.
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:368  Future occurences of this logging statement are suppressed.
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:380 That also did not work.
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:381 Now trying with setting to vehicle attributes to "average; average; average" and try it with the average table
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:382  This message given only once.
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:383  Future occurences of this logging statement are suppressed.
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:364 did not find emission factor for efkey=PASSENGER_CAR; FC_MJ; 13; 1; electricity; average; average
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:365  re-written to PASSENGER_CAR; FC_MJ; 13; 1; electricity; average; average
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:366 will try it with '<technology>; average; average'
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:367  This message given only once.
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:368  Future occurences of this logging statement are suppressed.
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:380 That also did not work.
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:381 Now trying with setting to vehicle attributes to "average; average; average" and try it with the average table
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:382  This message given only once.
2023-08-28T11:25:26,147  WARN ColdEmissionAnalysisModule:383  Future occurences of this logging statement are suppressed.
2023-08-28T11:25:26,151  WARN WarmEmissionAnalysisModule:490 did not find emission factor for efkey=PASSENGER_CAR; NO2; URB/MW-City/70; FREEFLOW; electricity; average; average
2023-08-28T11:25:26,151  WARN WarmEmissionAnalysisModule:491  re-written to PASSENGER_CAR; NO2; URB/MW-City/70; FREEFLOW; electricity; average; average
2023-08-28T11:25:26,151  WARN WarmEmissionAnalysisModule:492 will try it with '<technology>; average; average'
2023-08-28T11:25:26,151  WARN WarmEmissionAnalysisModule:493  This message given only once.
2023-08-28T11:25:26,151  WARN WarmEmissionAnalysisModule:494  Future occurences of this logging statement are suppressed.
2023-08-28T11:25:26,151  WARN WarmEmissionAnalysisModule:506 That also did not work.
2023-08-28T11:25:26,151  WARN WarmEmissionAnalysisModule:507 Now trying with setting to vehicle attributes to "average; average; average" and try it with the average table
2023-08-28T11:25:26,151  WARN WarmEmissionAnalysisModule:508  This message given only once.
2023-08-28T11:25:26,151  WARN WarmEmissionAnalysisModule:509  Future occurences of this logging statement are suppressed.
2023-08-28T11:25:26,157  WARN WarmEmissionAnalysisModule:490 did not find emission factor for efkey=PASSENGER_CAR; FC_MJ; URB/MW-City/70; FREEFLOW; electricity; average; average
2023-08-28T11:25:26,157  WARN WarmEmissionAnalysisModule:491  re-written to PASSENGER_CAR; FC_MJ; URB/MW-City/70; FREEFLOW; electricity; average; average
2023-08-28T11:25:26,157  WARN WarmEmissionAnalysisModule:492 will try it with '<technology>; average; average'
2023-08-28T11:25:26,157  WARN WarmEmissionAnalysisModule:493  This message given only once.
2023-08-28T11:25:26,157  WARN WarmEmissionAnalysisModule:494  Future occurences of this logging statement are suppressed.
2023-08-28T11:25:26,158  WARN WarmEmissionAnalysisModule:506 That also did not work.
2023-08-28T11:25:26,158  WARN WarmEmissionAnalysisModule:507 Now trying with setting to vehicle attributes to "average; average; average" and try it with the average table
2023-08-28T11:25:26,158  WARN WarmEmissionAnalysisModule:508  This message given only once.
2023-08-28T11:25:26,158  WARN WarmEmissionAnalysisModule:509  Future occurences of this logging statement are suppressed.

So, how should I specify in the vehicle file to make sure that there is a corresponding electricity factor?

I solved the problem by changing HbefaEmissionsConcept to electricity :)