Class SustainabilityMetrics

java.lang.Object
neqsim.process.util.fielddevelopment.SustainabilityMetrics
All Implemented Interfaces:
Serializable

public class SustainabilityMetrics extends Object implements Serializable
Sustainability and life-cycle metrics tracker for biorefinery processes.

Computes CO2-equivalent emissions, carbon intensity, renewable energy fraction, and other sustainability key performance indicators (KPIs) from process simulation results. Designed to integrate with NeqSim process equipment and the emissions agent infrastructure.

Tracked Metrics

Sustainability metrics computed by this class
Metric Unit Description
CO2 equivalent emissions tCO2eq/yr Total GHG footprint including CH4 and N2O
Carbon intensity kgCO2eq/MWh Emissions per unit of energy produced
Renewable energy fraction % Fraction of total energy from renewable sources
Fossil fuel displacement tCO2eq/yr GHG avoided by replacing fossil fuel
Net carbon balance tCO2eq/yr Net emissions after credits (biogenic carbon neutral)

Usage example:

SustainabilityMetrics metrics = new SustainabilityMetrics();
metrics.setBiogasProductionNm3PerYear(4.0e6);
metrics.setMethaneContentFraction(0.60);
metrics.setElectricityProductionMWhPerYear(8000.0);
metrics.setHeatProductionMWhPerYear(10000.0);
metrics.setParasiticElectricityMWhPerYear(1200.0);
metrics.setMethaneSlipPercent(1.5);
metrics.setFossilReferenceEmissionFactor(0.450); // kgCO2/kWh natural gas
metrics.calculate();

double carbonIntensity = metrics.getCarbonIntensityKgCO2PerMWh();
double fossilDisplaced = metrics.getFossilFuelDisplacementTCO2PerYear();
double netBalance = metrics.getNetCarbonBalanceTCO2PerYear();
Version:
1.0
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • GWP_CH4

      private static final double GWP_CH4
      GWP100 for methane.
      See Also:
    • GWP_N2O

      private static final double GWP_N2O
      GWP100 for nitrous oxide.
      See Also:
    • biogasProductionNm3PerYear

      private double biogasProductionNm3PerYear
      Biogas production in Nm3/year.
    • methaneContentFraction

      private double methaneContentFraction
      Methane content fraction (0-1) in biogas.
    • electricityProductionMWhPerYear

      private double electricityProductionMWhPerYear
      Gross electricity production in MWh/year.
    • heatProductionMWhPerYear

      private double heatProductionMWhPerYear
      Gross heat production in MWh/year.
    • parasiticElectricityMWhPerYear

      private double parasiticElectricityMWhPerYear
      Parasitic electricity consumption in MWh/year.
    • parasiticHeatMWhPerYear

      private double parasiticHeatMWhPerYear
      Parasitic heat consumption in MWh/year.
    • importedElectricityMWhPerYear

      private double importedElectricityMWhPerYear
      External (grid) electricity imported in MWh/year.
    • biomethaneProductionNm3PerYear

      private double biomethaneProductionNm3PerYear
      Production of biomethane for grid injection in Nm3/year.
    • methaneSlipPercent

      private double methaneSlipPercent
      Methane slip as percent of total methane produced.
    • dieselConsumptionLPerYear

      private double dieselConsumptionLPerYear
      Diesel consumption for feedstock transport in litres/year.
    • n2oEmissionFraction

      private double n2oEmissionFraction
      N2O emission from digestate field application as fraction of N content.
    • digestateNitrogenKgPerYear

      private double digestateNitrogenKgPerYear
      Nitrogen content in digestate in kg N/year.
    • gridElectricityEmissionFactor

      private double gridElectricityEmissionFactor
      Grid electricity emission factor in kgCO2/kWh.
    • feedstockTransportDistanceKm

      private double feedstockTransportDistanceKm
      Feedstock transport distance in km.
    • feedstockTransportTonnesPerYear

      private double feedstockTransportTonnesPerYear
      Feedstock transport tonnage per year.
    • transportEmissionFactor

      private double transportEmissionFactor
      Emission factor for transport in kgCO2/(tonne*km).
    • fossilReferenceEmissionFactor

      private double fossilReferenceEmissionFactor
      Emission factor for displaced fossil energy in kgCO2/kWh.
    • fossilHeatEmissionFactor

      private double fossilHeatEmissionFactor
      Emission factor for displaced fossil heat in kgCO2/kWh.
    • fossilGasEmissionFactor

      private double fossilGasEmissionFactor
      Emission factor for displaced fossil gas (natural gas) in kgCO2/Nm3.
    • customEmissions

      private List<SustainabilityMetrics.EmissionEntry> customEmissions
      List of custom emission entries.
    • totalEmissionsTCO2eqPerYear

      private double totalEmissionsTCO2eqPerYear
      Total CO2-equivalent emissions in tCO2eq/year.
    • carbonIntensityKgCO2PerMWh

      private double carbonIntensityKgCO2PerMWh
      Carbon intensity in kgCO2eq/MWh.
    • renewableEnergyFraction

      private double renewableEnergyFraction
      Renewable energy fraction (0-1).
    • netEnergyProductionMWhPerYear

      private double netEnergyProductionMWhPerYear
      Net energy production in MWh/year.
    • fossilFuelDisplacementTCO2PerYear

      private double fossilFuelDisplacementTCO2PerYear
      Fossil fuel displacement in tCO2eq/year.
    • netCarbonBalanceTCO2PerYear

      private double netCarbonBalanceTCO2PerYear
      Net carbon balance in tCO2eq/year.
    • energyReturnOnInvestment

      private double energyReturnOnInvestment
      Energy return on investment (EROI).
    • calculated

      private boolean calculated
      Whether metrics have been calculated.
  • Constructor Details

    • SustainabilityMetrics

      public SustainabilityMetrics()
      Creates a new sustainability metrics tracker.
  • Method Details

    • setBiogasProductionNm3PerYear

      public void setBiogasProductionNm3PerYear(double nm3PerYear)
      Sets the annual biogas production.
      Parameters:
      nm3PerYear - biogas production in Nm3/year
    • setMethaneContentFraction

      public void setMethaneContentFraction(double fraction)
      Sets the methane content fraction.
      Parameters:
      fraction - methane volume fraction in biogas (0-1)
    • setElectricityProductionMWhPerYear

      public void setElectricityProductionMWhPerYear(double mwhPerYear)
      Sets the annual electricity production.
      Parameters:
      mwhPerYear - electricity production in MWh/year
    • setHeatProductionMWhPerYear

      public void setHeatProductionMWhPerYear(double mwhPerYear)
      Sets the annual heat production.
      Parameters:
      mwhPerYear - heat production in MWh/year
    • setParasiticElectricityMWhPerYear

      public void setParasiticElectricityMWhPerYear(double mwhPerYear)
      Sets the parasitic electricity consumption.
      Parameters:
      mwhPerYear - parasitic electricity in MWh/year
    • setParasiticHeatMWhPerYear

      public void setParasiticHeatMWhPerYear(double mwhPerYear)
      Sets the parasitic heat consumption.
      Parameters:
      mwhPerYear - parasitic heat in MWh/year
    • setImportedElectricityMWhPerYear

      public void setImportedElectricityMWhPerYear(double mwhPerYear)
      Sets the imported grid electricity.
      Parameters:
      mwhPerYear - imported grid electricity in MWh/year
    • setBiomethaneProductionNm3PerYear

      public void setBiomethaneProductionNm3PerYear(double nm3PerYear)
      Sets the biomethane production for grid injection.
      Parameters:
      nm3PerYear - biomethane production in Nm3/year
    • setMethaneSlipPercent

      public void setMethaneSlipPercent(double percent)
      Sets the methane slip percentage.
      Parameters:
      percent - methane slip as percent of total methane produced
    • setDieselConsumptionLPerYear

      public void setDieselConsumptionLPerYear(double litresPerYear)
      Sets diesel consumption for transport.
      Parameters:
      litresPerYear - diesel consumption in litres/year
    • setN2OEmissionFraction

      public void setN2OEmissionFraction(double fraction)
      Sets the N2O emission fraction from digestate application.
      Parameters:
      fraction - fraction of nitrogen emitted as N2O
    • setDigestateNitrogenKgPerYear

      public void setDigestateNitrogenKgPerYear(double kgNPerYear)
      Sets the nitrogen content in digestate.
      Parameters:
      kgNPerYear - nitrogen in digestate in kg N/year
    • setGridElectricityEmissionFactor

      public void setGridElectricityEmissionFactor(double kgCO2PerKWh)
      Sets the grid electricity emission factor.
      Parameters:
      kgCO2PerKWh - emission factor in kgCO2/kWh
    • setFeedstockTransport

      public void setFeedstockTransport(double distanceKm, double tonnesPerYear)
      Sets feedstock transport parameters.
      Parameters:
      distanceKm - one-way transport distance in km
      tonnesPerYear - feedstock tonnage per year
    • setTransportEmissionFactor

      public void setTransportEmissionFactor(double kgCO2PerTonneKm)
      Sets the transport emission factor.
      Parameters:
      kgCO2PerTonneKm - emission factor in kgCO2/(tonne*km)
    • setFossilReferenceEmissionFactor

      public void setFossilReferenceEmissionFactor(double kgCO2PerKWh)
      Sets the fossil reference emission factor for electricity.
      Parameters:
      kgCO2PerKWh - emission factor in kgCO2/kWh
    • setFossilHeatEmissionFactor

      public void setFossilHeatEmissionFactor(double kgCO2PerKWh)
      Sets the fossil heat emission factor.
      Parameters:
      kgCO2PerKWh - emission factor in kgCO2/kWh
    • setFossilGasEmissionFactor

      public void setFossilGasEmissionFactor(double kgCO2PerNm3)
      Sets the fossil gas emission factor.
      Parameters:
      kgCO2PerNm3 - emission factor in kgCO2/Nm3
    • addEmission

      public void addEmission(SustainabilityMetrics.EmissionSource source, String description, double tCO2eqPerYear)
      Adds a custom emission source.
      Parameters:
      source - emission source type
      description - description of the emission
      tCO2eqPerYear - annual CO2-equivalent emissions in tonnes
    • clearCustomEmissions

      public void clearCustomEmissions()
      Clears all custom emission entries.
    • calculate

      public void calculate()
      Calculates all sustainability metrics.
    • getTotalEmissionsTCO2eqPerYear

      public double getTotalEmissionsTCO2eqPerYear()
      Returns total CO2-equivalent emissions.
      Returns:
      total emissions in tCO2eq/year
    • getCarbonIntensityKgCO2PerMWh

      public double getCarbonIntensityKgCO2PerMWh()
      Returns the carbon intensity.
      Returns:
      carbon intensity in kgCO2eq/MWh
    • getRenewableEnergyFraction

      public double getRenewableEnergyFraction()
      Returns the renewable energy fraction.
      Returns:
      renewable energy fraction (0-1)
    • getNetEnergyProductionMWhPerYear

      public double getNetEnergyProductionMWhPerYear()
      Returns the net energy production.
      Returns:
      net energy in MWh/year
    • getFossilFuelDisplacementTCO2PerYear

      public double getFossilFuelDisplacementTCO2PerYear()
      Returns the fossil fuel displacement.
      Returns:
      fossil fuel displacement in tCO2eq/year
    • getNetCarbonBalanceTCO2PerYear

      public double getNetCarbonBalanceTCO2PerYear()
      Returns the net carbon balance.
      Returns:
      net carbon balance in tCO2eq/year (negative means net carbon saving)
    • getEnergyReturnOnInvestment

      public double getEnergyReturnOnInvestment()
      Returns the energy return on investment.
      Returns:
      EROI ratio
    • isCalculated

      public boolean isCalculated()
      Returns whether metrics have been calculated.
      Returns:
      true if calculated
    • getResults

      public Map<String,Object> getResults()
      Returns a results map.
      Returns:
      map of metric names to values
    • toJson

      public String toJson()
      Returns a JSON string of all metrics.
      Returns:
      JSON string