klick-domain 0.4.11

Calculate the carbon footprints for wastewater treatment plants
Documentation
use crate::units::{
    Factor, GramsPerKilowatthour, KilogramsPerLiter, KilogramsPerQubicmeter, LitersPerTonKilometer,
    Percent, QubicmetersPerHour,
};

/// `[g ch4 / (population values * year)]`
pub const EMISSION_FACTOR_CH4_PLANT: f64 = 230.0;

/// `[%]` of chemical oxygen demand effluent
pub const EMISSION_FACTOR_CH4_WATER: Percent = Percent::new(0.9);

/// `[%]` ch4 factor
pub const EMISSION_FACTOR_CH4_CHP: Percent = Percent::new(1.0);

/// `[%]` nitrogen effulent
pub const EMISSION_FACTOR_N2O_WATER: Percent = Percent::new(0.5);

/// `[m^3/h]`
pub const EMISSION_FACTOR_SLUDGE_BAGS: QubicmetersPerHour = QubicmetersPerHour::new(1.25);

/// `[%]` of the total digester gas production
pub const EMISSION_FACTOR_SLUDGE_STORAGE: Percent = Percent::new(2.0);

/// `[kg co2 / kg]` solution
pub const EMISSION_FACTOR_FECL3: Factor = Factor::new(0.395);

/// `[kg co2 / kg]` solution
pub const EMISSION_FACTOR_FECLSO4: Factor = Factor::new(0.076);

/// `[kg co2 / kg]` solution
pub const EMISSION_FACTOR_CAOH2: Factor = Factor::new(1.0553);

/// `[kg co2 / kg]` solution
pub const EMISSION_FACTOR_POLYMERS: Factor = Factor::new(2.2);

pub const GWP_N2O: Factor = Factor::new(273.0);

pub const GWP_CH4: Factor = Factor::new(28.0);

pub const CONVERSION_FACTOR_N_TO_N2O: Factor = Factor::new(44.0 / 28.0);

/// `[kg/m^3]` for standard cubic meters (GESTIS substance database)
pub const CONVERSION_FACTOR_CH4_M3_TO_KG: KilogramsPerQubicmeter =
    KilogramsPerQubicmeter::new(0.7175);

pub const CONVERSION_FACTOR_C_TO_CO2: Factor = Factor::new((6.0 + 8.0 + 8.0) / 6.0);

pub const CONVERSION_FACTOR_TOC_TO_COD: Factor = Factor::new(3.0 / 8.0);

/// Emission factor `[kg CO₂/l]` of diesel.
///
/// # Calculation
///
/// According to the German [Umwelt Bundesamt](https://www.umweltbundesamt.de/)
/// the factor is `3,17` `[kg CO₂/kg]`.
///
/// Converted with factor `0,835` -> `2,65` `[kg CO₂/l]` diesel.
///
/// # References
///
/// - [CO2-Emissionsfaktoren für fossile Brennstoffe - 28/2022](https://www.umweltbundesamt.de/publikationen/co2-emissionsfaktoren-fuer-fossile-brennstoffe-0) p.36f
pub const EMISSION_FACTOR_DIESEL: KilogramsPerLiter = KilogramsPerLiter::new(2.65);

/// `[l/tkm]`
pub const FUEL_CONSUMPTION: LitersPerTonKilometer = LitersPerTonKilometer::new(0.02);

/// `[%]` of the nitrogen inflow
pub const EMISSION_FACTOR_N2O_OPTIMISTIC: Percent = Percent::new(0.3);

/// `[%]` of the nitrogen inflow
pub const EMISSION_FACTOR_N2O_PESIMISTIC: Percent = Percent::new(0.8);

/// `[%]` of the nitrogen inflow
pub const EMISSION_FACTOR_N2O_IPCC2019: Percent = Percent::new(1.6);
pub const EMISSION_FACTOR_OIL: KilogramsPerLiter = KilogramsPerLiter::new(2.6763);
pub const EMISSION_FACTOR_GAS: KilogramsPerQubicmeter = KilogramsPerQubicmeter::new(2.04);
pub const EMISSION_FACTOR_BIOGAS: KilogramsPerQubicmeter = KilogramsPerQubicmeter::new(0.165_481_5);
pub const EMISSION_FACTOR_HEAT_NETWORK: GramsPerKilowatthour = GramsPerKilowatthour::new(243.9);
pub const EMISSION_FACTOR_STROM_MIX: GramsPerKilowatthour = GramsPerKilowatthour::new(468.0);