Class SustainabilityMetrics
java.lang.Object
neqsim.process.util.fielddevelopment.SustainabilityMetrics
- All Implemented Interfaces:
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
| 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classInternal emission entry record.static enumEmission source type for itemised tracking. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleBiogas production in Nm3/year.private doubleProduction of biomethane for grid injection in Nm3/year.private booleanWhether metrics have been calculated.private doubleCarbon intensity in kgCO2eq/MWh.private List<SustainabilityMetrics.EmissionEntry> List of custom emission entries.private doubleDiesel consumption for feedstock transport in litres/year.private doubleNitrogen content in digestate in kg N/year.private doubleGross electricity production in MWh/year.private doubleEnergy return on investment (EROI).private doubleFeedstock transport distance in km.private doubleFeedstock transport tonnage per year.private doubleFossil fuel displacement in tCO2eq/year.private doubleEmission factor for displaced fossil gas (natural gas) in kgCO2/Nm3.private doubleEmission factor for displaced fossil heat in kgCO2/kWh.private doubleEmission factor for displaced fossil energy in kgCO2/kWh.private doubleGrid electricity emission factor in kgCO2/kWh.private static final doubleGWP100 for methane.private static final doubleGWP100 for nitrous oxide.private doubleGross heat production in MWh/year.private doubleExternal (grid) electricity imported in MWh/year.private doubleMethane content fraction (0-1) in biogas.private doubleMethane slip as percent of total methane produced.private doubleN2O emission from digestate field application as fraction of N content.private doubleNet carbon balance in tCO2eq/year.private doubleNet energy production in MWh/year.private doubleParasitic electricity consumption in MWh/year.private doubleParasitic heat consumption in MWh/year.private doubleRenewable energy fraction (0-1).private static final longprivate doubleTotal CO2-equivalent emissions in tCO2eq/year.private doubleEmission factor for transport in kgCO2/(tonne*km). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEmission(SustainabilityMetrics.EmissionSource source, String description, double tCO2eqPerYear) Adds a custom emission source.voidCalculates all sustainability metrics.voidClears all custom emission entries.doubleReturns the carbon intensity.doubleReturns the energy return on investment.doubleReturns the fossil fuel displacement.doubleReturns the net carbon balance.doubleReturns the net energy production.doubleReturns the renewable energy fraction.Returns a results map.doubleReturns total CO2-equivalent emissions.booleanReturns whether metrics have been calculated.voidsetBiogasProductionNm3PerYear(double nm3PerYear) Sets the annual biogas production.voidsetBiomethaneProductionNm3PerYear(double nm3PerYear) Sets the biomethane production for grid injection.voidsetDieselConsumptionLPerYear(double litresPerYear) Sets diesel consumption for transport.voidsetDigestateNitrogenKgPerYear(double kgNPerYear) Sets the nitrogen content in digestate.voidsetElectricityProductionMWhPerYear(double mwhPerYear) Sets the annual electricity production.voidsetFeedstockTransport(double distanceKm, double tonnesPerYear) Sets feedstock transport parameters.voidsetFossilGasEmissionFactor(double kgCO2PerNm3) Sets the fossil gas emission factor.voidsetFossilHeatEmissionFactor(double kgCO2PerKWh) Sets the fossil heat emission factor.voidsetFossilReferenceEmissionFactor(double kgCO2PerKWh) Sets the fossil reference emission factor for electricity.voidsetGridElectricityEmissionFactor(double kgCO2PerKWh) Sets the grid electricity emission factor.voidsetHeatProductionMWhPerYear(double mwhPerYear) Sets the annual heat production.voidsetImportedElectricityMWhPerYear(double mwhPerYear) Sets the imported grid electricity.voidsetMethaneContentFraction(double fraction) Sets the methane content fraction.voidsetMethaneSlipPercent(double percent) Sets the methane slip percentage.voidsetN2OEmissionFraction(double fraction) Sets the N2O emission fraction from digestate application.voidsetParasiticElectricityMWhPerYear(double mwhPerYear) Sets the parasitic electricity consumption.voidsetParasiticHeatMWhPerYear(double mwhPerYear) Sets the parasitic heat consumption.voidsetTransportEmissionFactor(double kgCO2PerTonneKm) Sets the transport emission factor.toJson()Returns a JSON string of all metrics.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
GWP_CH4
private static final double GWP_CH4GWP100 for methane.- See Also:
-
GWP_N2O
private static final double GWP_N2OGWP100 for nitrous oxide.- See Also:
-
biogasProductionNm3PerYear
private double biogasProductionNm3PerYearBiogas production in Nm3/year. -
methaneContentFraction
private double methaneContentFractionMethane content fraction (0-1) in biogas. -
electricityProductionMWhPerYear
private double electricityProductionMWhPerYearGross electricity production in MWh/year. -
heatProductionMWhPerYear
private double heatProductionMWhPerYearGross heat production in MWh/year. -
parasiticElectricityMWhPerYear
private double parasiticElectricityMWhPerYearParasitic electricity consumption in MWh/year. -
parasiticHeatMWhPerYear
private double parasiticHeatMWhPerYearParasitic heat consumption in MWh/year. -
importedElectricityMWhPerYear
private double importedElectricityMWhPerYearExternal (grid) electricity imported in MWh/year. -
biomethaneProductionNm3PerYear
private double biomethaneProductionNm3PerYearProduction of biomethane for grid injection in Nm3/year. -
methaneSlipPercent
private double methaneSlipPercentMethane slip as percent of total methane produced. -
dieselConsumptionLPerYear
private double dieselConsumptionLPerYearDiesel consumption for feedstock transport in litres/year. -
n2oEmissionFraction
private double n2oEmissionFractionN2O emission from digestate field application as fraction of N content. -
digestateNitrogenKgPerYear
private double digestateNitrogenKgPerYearNitrogen content in digestate in kg N/year. -
gridElectricityEmissionFactor
private double gridElectricityEmissionFactorGrid electricity emission factor in kgCO2/kWh. -
feedstockTransportDistanceKm
private double feedstockTransportDistanceKmFeedstock transport distance in km. -
feedstockTransportTonnesPerYear
private double feedstockTransportTonnesPerYearFeedstock transport tonnage per year. -
transportEmissionFactor
private double transportEmissionFactorEmission factor for transport in kgCO2/(tonne*km). -
fossilReferenceEmissionFactor
private double fossilReferenceEmissionFactorEmission factor for displaced fossil energy in kgCO2/kWh. -
fossilHeatEmissionFactor
private double fossilHeatEmissionFactorEmission factor for displaced fossil heat in kgCO2/kWh. -
fossilGasEmissionFactor
private double fossilGasEmissionFactorEmission factor for displaced fossil gas (natural gas) in kgCO2/Nm3. -
customEmissions
List of custom emission entries. -
totalEmissionsTCO2eqPerYear
private double totalEmissionsTCO2eqPerYearTotal CO2-equivalent emissions in tCO2eq/year. -
carbonIntensityKgCO2PerMWh
private double carbonIntensityKgCO2PerMWhCarbon intensity in kgCO2eq/MWh. -
renewableEnergyFraction
private double renewableEnergyFractionRenewable energy fraction (0-1). -
netEnergyProductionMWhPerYear
private double netEnergyProductionMWhPerYearNet energy production in MWh/year. -
fossilFuelDisplacementTCO2PerYear
private double fossilFuelDisplacementTCO2PerYearFossil fuel displacement in tCO2eq/year. -
netCarbonBalanceTCO2PerYear
private double netCarbonBalanceTCO2PerYearNet carbon balance in tCO2eq/year. -
energyReturnOnInvestment
private double energyReturnOnInvestmentEnergy return on investment (EROI). -
calculated
private boolean calculatedWhether 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 kmtonnesPerYear- 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 typedescription- description of the emissiontCO2eqPerYear- 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
-
toJson
-