quintel / etsource

Data source for the Energy Transition Model
https://energytransitionmodel.com/
MIT License
12 stars 8 forks source link

Review costs of carriers import/export queries #2979

Open mabijkerk opened 6 months ago

mabijkerk commented 6 months ago

Issue In the mece_costs queries for 4_energ_carriers, most queries have a structure similar to coal and coal products:

- query =
    SUM(
      PRODUCT(V(CARRIER(coal), cost_per_mj), V(energy_extraction_coal, demand)),
      PRODUCT(V(CARRIER(coal), cost_per_mj), V(energy_import_coal, demand)),
      PRODUCT(V(CARRIER(lignite), cost_per_mj), V(energy_extraction_lignite, demand)),
      PRODUCT(V(CARRIER(lignite), cost_per_mj), V(energy_import_lignite, demand)),
      PRODUCT(V(CARRIER(cokes), cost_per_mj), V(energy_import_cokes, demand))
    )
    -
    SUM(
      PRODUCT(V(CARRIER(coal), cost_per_mj), V(energy_export_coal_backup, demand)),
      PRODUCT(V(CARRIER(lignite), cost_per_mj), V(energy_export_lignite_backup, demand)),
      PRODUCT(V(CARRIER(cokes), cost_per_mj), V(energy_export_cokes_backup, demand))
    )
    -
    SUM(
      PRODUCT(V(CARRIER(coal), cost_per_mj), V(energy_export_coal_baseload, demand)),
      PRODUCT(V(CARRIER(lignite), cost_per_mj), V(energy_export_lignite_baseload, demand)),
      PRODUCT(V(CARRIER(cokes), cost_per_mj), V(energy_export_cokes_baseload, demand))
    )

However, for biomass products, instead of the demand, the primary demand is queried:

- query =
    SUM(
      PRODUCT(V(CARRIER(torrefied_biomass_pellets), cost_per_mj), V(energy_torrefaction_wood, primary_demand_of_torrefied_biomass_pellets)),
      PRODUCT(V(CARRIER(wood_pellets), cost_per_mj), V(energy_production_wood_pellets, primary_demand_of_wood_pellets)),
      PRODUCT(V(CARRIER(bio_kerosene), cost_per_mj), V(energy_production_bio_kerosene, primary_demand_of_bio_kerosene)),
      PRODUCT(V(CARRIER(bio_ethanol), cost_per_mj), V(energy_production_bio_ethanol, primary_demand_of_bio_ethanol)),
      PRODUCT(V(CARRIER(bio_lng), cost_per_mj), V(energy_production_bio_lng, primary_demand_of_bio_lng)),
      PRODUCT(V(CARRIER(biodiesel), cost_per_mj), V(energy_production_biodiesel, primary_demand_of_biodiesel)),
      PRODUCT(V(CARRIER(bio_oil), cost_per_mj), V(energy_production_bio_oil, primary_demand_of_bio_oil)),
      PRODUCT(V(CARRIER(biogas), cost_per_mj), V(energy_biogas_fermentation_wet_biomass, primary_demand_of_biogas)),
      PRODUCT(V(CARRIER(greengas), cost_per_mj), V(energy_greengas_gasification_wet_biomass, primary_demand_of_greengas)),
      PRODUCT(V(CARRIER(greengas), cost_per_mj), V(energy_greengas_gasification_dry_biomass, primary_demand_of_greengas))
    )
    - PRODUCT(V(CARRIER(greengas), cost_per_mj), V(energy_export_greengas_baseload, primary_demand_of_greengas))

For oil and oil products the primary demand is queried and the costs of crude_oil are taken for a number of queries, where you might expect specific carriers:

- query =
    SUM(
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj), V(energy_extraction_crude_oil, demand)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj), V(energy_import_crude_oil, demand)),
        PRODUCT(V(CARRIER(kerosene), cost_per_mj), V(energy_import_kerosene, demand)),
        PRODUCT(V(CARRIER(gasoline), cost_per_mj), V(energy_import_gasoline, demand)),
        PRODUCT(V(CARRIER(lpg), cost_per_mj), V(energy_import_lpg, demand)),
        PRODUCT(V(CARRIER(diesel), cost_per_mj), V(energy_import_diesel, demand)),
        PRODUCT(V(CARRIER(heavy_fuel_oil), cost_per_mj), V(energy_import_heavy_fuel_oil, demand))
    )
    - 
    SUM(
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_crude_oil_backup, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_kerosene_backup, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_oil_products, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_gasoline_backup, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_diesel_backup, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_lpg_backup, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_heavy_fuel_oil_backup, primary_demand_of_crude_oil))
    )
    -
    SUM(
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_crude_oil_baseload, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_kerosene_baseload, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_gasoline_baseload, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_diesel_baseload, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_lpg_baseload, primary_demand_of_crude_oil)),
        PRODUCT(V(CARRIER(crude_oil), cost_per_mj),V(energy_export_heavy_fuel_oil_baseload, primary_demand_of_crude_oil))
    )

Goal

Notifying @KoenvanB. @kaskranenburgQ you might be able to pick this up at some point.