CO2 emissions using additional strings

Hi there,
@chris @mostapha

I’ve been trying to output CO2 carbon emissions from electricity in Cairo, Egypt.
I know this has not been available in Honeybee-Legacy, so I used the additional strings as follows:

  Output:EnvironmentalImpactFactors,
    RunPeriod;  !- Reporting_Frequency

  EnvironmentalImpactFactors,
    0.3,                     !- District Heating Efficiency
    3.0,                     !- District Cooling COP {W/W}
    0.25,                    !- Steam Conversion Efficiency
    80.7272,                 !- Total Carbon Equivalent Emission Factor From N2O {kg/kg}
    6.2727,                  !- Total Carbon Equivalent Emission Factor From CH4 {kg/kg}
    0.2727;                  !- Total Carbon Equivalent Emission Factor From CO2 {kg/kg}

  FuelFactors,
    NaturalGas,              !- Existing Fuel Resource Name
    m3,                      !- Units of Measure
    ,                        !- Energy per Unit Factor
    0.01,                    !- Source Energy Factor {J/J}
    ,                        !- Source Energy Schedule Name
    50.23439,                !- CO2 Emission Factor {g/MJ}
    ,                        !- CO2 Emission Factor Schedule Name
    3.51641E-02,             !- CO Emission Factor {g/MJ}
    ,                        !- CO Emission Factor Schedule Name
    9.62826E-04,             !- CH4 Emission Factor {g/MJ}
    ,                        !- CH4 Emission Factor Schedule Name
    4.18620E-02,             !- NOx Emission Factor {g/MJ}
    ,                        !- NOx Emission Factor Schedule Name
    9.20964E-04,             !- N2O Emission Factor {g/MJ}
    ,                        !- N2O Emission Factor Schedule Name
    2.51172E-04,             !- SO2 Emission Factor {g/MJ}
    ,                        !- SO2 Emission Factor Schedule Name
    3.18151E-03,             !- PM Emission Factor {g/MJ}
    ,                        !- PM Emission Factor Schedule Name
    2.38613E-03,             !- PM10 Emission Factor {g/MJ}
    ,                        !- PM10 Emission Factor Schedule Name
    7.95378E-04,             !- PM2.5 Emission Factor {g/MJ}
    ,                        !- PM2.5 Emission Factor Schedule Name
    0,                       !- NH3 Emission Factor {g/MJ}
    ,                        !- NH3 Emission Factor Schedule Name
    2.30241E-03,             !- NMVOC Emission Factor {g/MJ}
    ,                        !- NMVOC Emission Factor Schedule Name
    1.08841E-07,             !- Hg Emission Factor {g/MJ}
    ,                        !- Hg Emission Factor Schedule Name
    2.09310E-07,             !- Pb Emission Factor {g/MJ}
    ,                        !- Pb Emission Factor Schedule Name
    0,                       !- Water Emission Factor {L/MJ}
    ,                        !- Water Emission Factor Schedule Name
    0,                       !- Nuclear High Level Emission Factor {g/MJ}
    ,                        !- Nuclear High Level Emission Factor Schedule Name
    0;                       !- Nuclear Low Level Emission Factor {m3/MJ}

  FuelFactors,
    Electricity,             !- Existing Fuel Resource Name
    kg,                      !- Units of Measure
    ,                        !- Energy per Unit Factor
    0.293,                   !- Source Energy Factor {J/J}
    ,                        !- Source Energy Schedule Name
    168.33317,               !- CO2 Emission Factor {g/MJ}
    ,                        !- CO2 Emission Factor Schedule Name
    4.20616E-02,             !- CO Emission Factor {g/MJ}
    ,                        !- CO Emission Factor Schedule Name
    1.398578E-03,            !- CH4 Emission Factor {g/MJ}
    ,                        !- CH4 Emission Factor Schedule Name
    4.10753E-01,             !- NOx Emission Factor {g/MJ}
    ,                        !- NOx Emission Factor Schedule Name
    2.41916E-03,             !- N2O Emission Factor {g/MJ}
    ,                        !- N2O Emission Factor Schedule Name
    8.65731E-01,             !- SO2 Emission Factor {g/MJ}
    ,                        !- SO2 Emission Factor Schedule Name
    2.95827E-02,             !- PM Emission Factor {g/MJ}
    ,                        !- PM Emission Factor Schedule Name
    1.80450E-02,             !- PM10 Emission Factor {g/MJ}
    ,                        !- PM10 Emission Factor Schedule Name
    1.15377E-02,             !- PM2.5 Emission Factor {g/MJ}
    ,                        !- PM2.5 Emission Factor Schedule Name
    1.10837E-03,             !- NH3 Emission Factor {g/MJ}
    ,                        !- NH3 Emission Factor Schedule Name
    3.72332E-03,             !- NMVOC Emission Factor {g/MJ}
    ,                        !- NMVOC Emission Factor Schedule Name
    3.36414E-06,             !- Hg Emission Factor {g/MJ}
    ,                        !- Hg Emission Factor Schedule Name
    0,                       !- Pb Emission Factor {g/MJ}
    ,                        !- Pb Emission Factor Schedule Name
    2.10074,                 !- Water Emission Factor {L/MJ}
    ,                        !- Water Emission Factor Schedule Name
    0,                       !- Nuclear High Level Emission Factor {g/MJ}
    ,                        !- Nuclear High Level Emission Factor Schedule Name
    0;                       !- Nuclear Low Level Emission Factor {m3/MJ}

That worked properly, and I got a .Meter file in the results file containing all the gases emissions and their carbon equivalent.
Now when I tried to do the same with HB 1.7, it did not work. I figured out about the Title 24 weather files and the supporting TDV files to add as schedules for fuel prices, yet still that did not help. Here’s the additional strings in HB 1.7 (I copied the TDV file into OS/Energyplus directory, so it is reading the file correctly):

  Output:EnvironmentalImpactFactors,
    RunPeriod;  !- Reporting_Frequency
 
  Schedule:File,
    elecTDVfromCZ06com,      !- Name
    Any Number,              !- Schedule Type Limits Name
    DataSets\TDV\TDV_2008_kBtu_CTZ06.csv,  !- File Name
    1,                       !- Column Number
    4,                       !- Rows to Skip at Top
    ,                        !- Number of Hours of Data
    ,                        !- Column Separator
    ,                        !- Interpolate to Timestep
    60;                      !- Minutes per Item

  Schedule:File,
    natgasTDVfromCZ06com,    !- Name
    Any Number,              !- Schedule Type Limits Name
    DataSets\TDV\TDV_2008_kBtu_CTZ06.csv,  !- File Name
    3,                       !- Column Number
    4;                       !- Rows to Skip at Top

  EnvironmentalImpactFactors,
    0.3,                     !- District Heating Efficiency
    3.0,                     !- District Cooling COP {W/W}
    0.25,                    !- Steam Conversion Efficiency
    80.7272,                 !- Total Carbon Equivalent Emission Factor From N2O {kg/kg}
    6.2727,                  !- Total Carbon Equivalent Emission Factor From CH4 {kg/kg}
    0.2727;                  !- Total Carbon Equivalent Emission Factor From CO2 {kg/kg}

! The source energy is based on TDV factors from the DataSets\TDV files
! the remaining numbers are from  USA EPA AP-42  Chapter 1
! External Combustion Sources

  FuelFactors,
    NaturalGas,              !- Existing Fuel Resource Name
    m3,                      !- Units of Measure
    ,                        !- Energy per Unit Factor
    0.01,                    !- Source Energy Factor {J/J}
    natgasTDVfromCZ06com,    !- Source Energy Schedule Name
    50.23439,                !- CO2 Emission Factor {g/MJ}
    ,                        !- CO2 Emission Factor Schedule Name
    3.51641E-02,             !- CO Emission Factor {g/MJ}
    ,                        !- CO Emission Factor Schedule Name
    9.62826E-04,             !- CH4 Emission Factor {g/MJ}
    ,                        !- CH4 Emission Factor Schedule Name
    4.18620E-02,             !- NOx Emission Factor {g/MJ}
    ,                        !- NOx Emission Factor Schedule Name
    9.20964E-04,             !- N2O Emission Factor {g/MJ}
    ,                        !- N2O Emission Factor Schedule Name
    2.51172E-04,             !- SO2 Emission Factor {g/MJ}
    ,                        !- SO2 Emission Factor Schedule Name
    3.18151E-03,             !- PM Emission Factor {g/MJ}
    ,                        !- PM Emission Factor Schedule Name
    2.38613E-03,             !- PM10 Emission Factor {g/MJ}
    ,                        !- PM10 Emission Factor Schedule Name
    7.95378E-04,             !- PM2.5 Emission Factor {g/MJ}
    ,                        !- PM2.5 Emission Factor Schedule Name
    0,                       !- NH3 Emission Factor {g/MJ}
    ,                        !- NH3 Emission Factor Schedule Name
    2.30241E-03,             !- NMVOC Emission Factor {g/MJ}
    ,                        !- NMVOC Emission Factor Schedule Name
    1.08841E-07,             !- Hg Emission Factor {g/MJ}
    ,                        !- Hg Emission Factor Schedule Name
    2.09310E-07,             !- Pb Emission Factor {g/MJ}
    ,                        !- Pb Emission Factor Schedule Name
    0,                       !- Water Emission Factor {L/MJ}
    ,                        !- Water Emission Factor Schedule Name
    0,                       !- Nuclear High Level Emission Factor {g/MJ}
    ,                        !- Nuclear High Level Emission Factor Schedule Name
    0;                       !- Nuclear Low Level Emission Factor {m3/MJ}

! The source energy is based on TDV factors from the DataSets\TDV files
! the remaining numbers are from USA national average based on eGRID, EIA 1605, AirData

  FuelFactors,
    Electricity,             !- Existing Fuel Resource Name
    kg,                      !- Units of Measure
    ,                        !- Energy per Unit Factor
    0.293,                   !- Source Energy Factor {J/J}
    elecTDVfromCZ06com,      !- Source Energy Schedule Name
    168.33317,               !- CO2 Emission Factor {g/MJ}
    ,                        !- CO2 Emission Factor Schedule Name
    4.20616E-02,             !- CO Emission Factor {g/MJ}
    ,                        !- CO Emission Factor Schedule Name
    1.398578E-03,            !- CH4 Emission Factor {g/MJ}
    ,                        !- CH4 Emission Factor Schedule Name
    4.10753E-01,             !- NOx Emission Factor {g/MJ}
    ,                        !- NOx Emission Factor Schedule Name
    2.41916E-03,             !- N2O Emission Factor {g/MJ}
    ,                        !- N2O Emission Factor Schedule Name
    8.65731E-01,             !- SO2 Emission Factor {g/MJ}
    ,                        !- SO2 Emission Factor Schedule Name
    2.95827E-02,             !- PM Emission Factor {g/MJ}
    ,                        !- PM Emission Factor Schedule Name
    1.80450E-02,             !- PM10 Emission Factor {g/MJ}
    ,                        !- PM10 Emission Factor Schedule Name
    1.15377E-02,             !- PM2.5 Emission Factor {g/MJ}
    ,                        !- PM2.5 Emission Factor Schedule Name
    1.10837E-03,             !- NH3 Emission Factor {g/MJ}
    ,                        !- NH3 Emission Factor Schedule Name
    3.72332E-03,             !- NMVOC Emission Factor {g/MJ}
    ,                        !- NMVOC Emission Factor Schedule Name
    3.36414E-06,             !- Hg Emission Factor {g/MJ}
    ,                        !- Hg Emission Factor Schedule Name
    0,                       !- Pb Emission Factor {g/MJ}
    ,                        !- Pb Emission Factor Schedule Name
    2.10074,                 !- Water Emission Factor {L/MJ}
    ,                        !- Water Emission Factor Schedule Name
    0,                       !- Nuclear High Level Emission Factor {g/MJ}
    ,                        !- Nuclear High Level Emission Factor Schedule Name
    0;                       !- Nuclear Low Level Emission Factor {m3/MJ}

I hope you could help with that,

Cheers,
Yasser

Hello @YASSER_IBRAHIM! what errors are you getting when you try with 1.7?

@TrevorFedyna

Thank you for your interest. I’ve just figured out what the issue was. OS 3.6.1 uses Energy+ 23.1, which does not take units of measure, nor Emissions per unit factor. I checked the IDF files and found that when I first used the strings as they are, the inputs have shifted 2 rows below - apparently placing strings instead of integers etc.,


I removed the two lines, so every input has got into the right place

Now everything is working properly.
And the Strings should be as follows:

  Output:EnvironmentalImpactFactors,
    Hourly;  !- Reporting_Frequency
  
  Schedule:File,
    elecTDVfromCZ06com,      !- Name
    Any Number,              !- Schedule Type Limits Name
    DataSets\TDV\TDV_2008_kBtu_CTZ06.csv,  !- File Name
    1,                       !- Column Number
    4,                       !- Rows to Skip at Top
    ,                        !- Number of Hours of Data
    ,                        !- Column Separator
    ,                        !- Interpolate to Timestep
    60;                      !- Minutes per Item

  Schedule:File,
    natgasTDVfromCZ06com,    !- Name
    Any Number,              !- Schedule Type Limits Name
    DataSets\TDV\TDV_2008_kBtu_CTZ06.csv,  !- File Name
    3,                       !- Column Number
    4;                       !- Rows to Skip at Top

  EnvironmentalImpactFactors,
    0.3,                     !- District Heating Efficiency
    3.0,                     !- District Cooling COP {W/W}
    0.25,                    !- Steam Conversion Efficiency
    80.7272,                 !- Total Carbon Equivalent Emission Factor From N2O {kg/kg}
    6.2727,                  !- Total Carbon Equivalent Emission Factor From CH4 {kg/kg}
    0.2727;                  !- Total Carbon Equivalent Emission Factor From CO2 {kg/kg}

! The source energy is based on TDV factors from the DataSets\TDV files
! the remaining numbers are from  USA EPA AP-42  Chapter 1
! External Combustion Sources

  FuelFactors,
    NaturalGas,              !- Existing Fuel Resource Name
    0.01,                    !- Source Energy Factor {J/J}
    natgasTDVfromCZ06com,    !- Source Energy Schedule Name
    50.23439,                !- CO2 Emission Factor {g/MJ}
    ,                        !- CO2 Emission Factor Schedule Name
    3.51641E-02,             !- CO Emission Factor {g/MJ}
    ,                        !- CO Emission Factor Schedule Name
    9.62826E-04,             !- CH4 Emission Factor {g/MJ}
    ,                        !- CH4 Emission Factor Schedule Name
    4.18620E-02,             !- NOx Emission Factor {g/MJ}
    ,                        !- NOx Emission Factor Schedule Name
    9.20964E-04,             !- N2O Emission Factor {g/MJ}
    ,                        !- N2O Emission Factor Schedule Name
    2.51172E-04,             !- SO2 Emission Factor {g/MJ}
    ,                        !- SO2 Emission Factor Schedule Name
    3.18151E-03,             !- PM Emission Factor {g/MJ}
    ,                        !- PM Emission Factor Schedule Name
    2.38613E-03,             !- PM10 Emission Factor {g/MJ}
    ,                        !- PM10 Emission Factor Schedule Name
    7.95378E-04,             !- PM2.5 Emission Factor {g/MJ}
    ,                        !- PM2.5 Emission Factor Schedule Name
    0,                       !- NH3 Emission Factor {g/MJ}
    ,                        !- NH3 Emission Factor Schedule Name
    2.30241E-03,             !- NMVOC Emission Factor {g/MJ}
    ,                        !- NMVOC Emission Factor Schedule Name
    1.08841E-07,             !- Hg Emission Factor {g/MJ}
    ,                        !- Hg Emission Factor Schedule Name
    2.09310E-07,             !- Pb Emission Factor {g/MJ}
    ,                        !- Pb Emission Factor Schedule Name
    0,                       !- Water Emission Factor {L/MJ}
    ,                        !- Water Emission Factor Schedule Name
    0,                       !- Nuclear High Level Emission Factor {g/MJ}
    ,                        !- Nuclear High Level Emission Factor Schedule Name
    0;                       !- Nuclear Low Level Emission Factor {m3/MJ}

! The source energy is based on TDV factors from the DataSets\TDV files
! the remaining numbers are from USA national average based on eGRID, EIA 1605, AirData

  FuelFactors,
    Electricity,             !- Existing Fuel Resource Name
    0.293,                   !- Source Energy Factor {J/J}
    elecTDVfromCZ06com,      !- Source Energy Schedule Name
    168.33317,               !- CO2 Emission Factor {g/MJ}
    ,                        !- CO2 Emission Factor Schedule Name
    4.20616E-02,             !- CO Emission Factor {g/MJ}
    ,                        !- CO Emission Factor Schedule Name
    1.398578E-03,            !- CH4 Emission Factor {g/MJ}
    ,                        !- CH4 Emission Factor Schedule Name
    4.10753E-01,             !- NOx Emission Factor {g/MJ}
    ,                        !- NOx Emission Factor Schedule Name
    2.41916E-03,             !- N2O Emission Factor {g/MJ}
    ,                        !- N2O Emission Factor Schedule Name
    8.65731E-01,             !- SO2 Emission Factor {g/MJ}
    ,                        !- SO2 Emission Factor Schedule Name
    2.95827E-02,             !- PM Emission Factor {g/MJ}
    ,                        !- PM Emission Factor Schedule Name
    1.80450E-02,             !- PM10 Emission Factor {g/MJ}
    ,                        !- PM10 Emission Factor Schedule Name
    1.15377E-02,             !- PM2.5 Emission Factor {g/MJ}
    ,                        !- PM2.5 Emission Factor Schedule Name
    1.10837E-03,             !- NH3 Emission Factor {g/MJ}
    ,                        !- NH3 Emission Factor Schedule Name
    3.72332E-03,             !- NMVOC Emission Factor {g/MJ}
    ,                        !- NMVOC Emission Factor Schedule Name
    3.36414E-06,             !- Hg Emission Factor {g/MJ}
    ,                        !- Hg Emission Factor Schedule Name
    0,                       !- Pb Emission Factor {g/MJ}
    ,                        !- Pb Emission Factor Schedule Name
    2.10074,                 !- Water Emission Factor {L/MJ}
    ,                        !- Water Emission Factor Schedule Name
    0,                       !- Nuclear High Level Emission Factor {g/MJ}
    ,                        !- Nuclear High Level Emission Factor Schedule Name
    0;                       !- Nuclear Low Level Emission Factor {m3/MJ}

I was wondering if there’s a way to get the Meter file as .csv instead of the eplusout.mtr file.
Thank you for your help!

Cheers,

2 Likes