RUFAS.routines.manure.manure_treatments.composting module#
- class RUFAS.routines.manure.manure_treatments.composting.Composting(weather, time, manure_treatment_config: ManureTreatmentConfig)#
Bases:
BaseManureTreatment
Class for managing and simulating the composting process of manure treatment.
This class simulates the composting process by considering various factors like weather, manure characteristics, and composting configurations. It provides methods for daily update of compost characteristics such as methane emissions, nitrogen content, and carbon decomposition. The calculations are based on standard composting models and environmental factors.
Attributes#
- weatherWeather
The current weather conditions.
- timeRufasTime
The current time information.
- manure_treatment_configManureTreatmentConfig
Configuration settings for manure treatment.
- composting_typeCompostingType
The type of composting process being used.
Methods#
- _daily_update_helper() -> ManureTreatmentDailyOutput:
Performs daily updates to the compost characteristics.
- calc_methane_emission(*args, **kwargs) -> float:
Calculates the methane emissions for the current day.
- calc_ammonia_emission(*args, **kwargs) -> float:
Calculates the total nitrogen loss to ammonia emission for the current year.
- _calculate_methane_conversion_factor() -> float:
Returns the methane conversion factor based on composting type and temperature.
- _calculate_max_microbial_decomposition_rate() -> float:
Calculates the maximum microbial decomposition rate for the current day.
- _calculate_slow_microbial_decomposition_rate() -> float:
Calculates the slow microbial decomposition rate for the current day.
- _calculate_carbon_decomposition_rate() -> float:
Calculates the carbon decomposition rate for the current day.
- _calculate_anaerobic_coefficient() -> float:
Calculates the anaerobic coefficient for the composting process.
- _calculate_carbon_decomposition(total_solid: float) -> float:
Computes the total carbon decomposition for the current day.
- _calculate_dry_matter_loss(enteric_methane_emission: float, carbon_decomposition: float) -> float:
Calculates the total dry matter loss for the current day.
- _calculate_nitrogen_loss_to_leaching() -> float:
Computes the nitrogen loss due to leaching for the current year.
- _calculate_nitrogen_loss_to_direct_nitrous_Oxide_Emission() -> float:
Calculates the nitrogen loss through direct nitrous oxide emission for the current year.
- _calculate_total_nitrogen_mass() -> float:
Computes the total mass of nitrogen in the manure-bedding mix for the current year.
- _calculate_organic_nitrogen_mass() -> float:
Calculates the mass of organic nitrogen in the manure-bedding mix for the current year.
- _calculate_inorganic_nitrogen_mass() -> float:
Calculates the mass of inorganic nitrogen in the manure-bedding mix for the current year.
- _calculate_ammonium_mass() -> float:
Computes the mass of ammonium in the manure-bedding mix for the current year.
- __init__(weather, time, manure_treatment_config: ManureTreatmentConfig) None #
Initializes a new instance of the Composting class, setting up the necessary parameters for composting manure treatment based on provided configurations.
Parameters#
- weatherWeather
The current weather conditions.
- timeRufasTime
The current time information.
- manure_treatment_configManureTreatmentConfig
Configuration settings for manure treatment.
- _daily_update_helper() ManureTreatmentDailyOutput #
Helper method for the daily_update() method.
This method is called immediately after the private attributes of the class are initialized, and it is up to the subclass to decide what to put in here.
- Returns:
- A ManureTreatmentDailyOutput object containing the output of the manure
treatment for the current simulation day.
- calc_methane_emission(*args, **kwargs) float #
This function calculates the solid manure methane emission of the current day.
Returns#
- float
The solid manure methane emission of the current day, kg/day.
- calc_ammonia_emission(*args, **kwargs) float #
This function calculates the total Nitrogen loss to ammonia emission of the current year.
Returns#
- float
The total Nitrogen loss to methane emission of the current year, kg.
- _calculate_methane_conversion_factor() float #
This function returns the methane conversion factor depending on the composting type and the temperature.
Returns#
- float
The methane conversion factor, unitless.
- static _calculate_max_microbial_decomposition_rate() float #
This function calculates the max microbial decomposition rate of the current day.
Returns#
- float
The max microbial decomposition rate of the current day, per day.
- _calculate_slow_microbial_decomposition_rate() float #
This function calculates the slow microbial decomposition rate of the current day.
Returns#
- float
The slow microbial decomposition rate of the current day, per day.
- _calculate_carbon_decomposition_rate() float #
This function calculates the Carbon decomposition rate of the current day.
Returns#
- float
The Carbon decomposition rate of the current day, per day.
- static _calculate_anaerobic_coefficient() float #
This function calculates the Anaerobic coefficient.
Returns#
- float
The Anaerobic coefficient, unitless.
- _calculate_carbon_decomposition(total_solid: float) float #
This function calculates the total carbon decomposition of the current day.
Returns#
- float
The total carbon decomposition of the current day, kg/day.
- static _calculate_dry_matter_loss(methane_emission: float, carbon_decomposition: float) float #
This function calculates the total dry matter loss of the current day.
Returns#
- float
The total carbon decomposition of the current day, kg/day.
- _calculate_nitrogen_loss_to_leaching() float #
This function calculates the amount of Nitrogen leached out of the manure-bedding pile of the current year.
Returns#
- float
The total Nitrogen loss to Leaching of the current year, kg.
- _calculate_nitrogen_loss_to_direct_nitrous_Oxide_Emission() float #
This function calculates the amount of Nitrogen loss through direct Nitrous Oxide Emission of the current year.
Returns#
- float
The total Nitrogen loss through direct Nitrous Oxide Emission of the current year, kg.
- _calculate_total_nitrogen_mass(Nitrogen_loss_to_ammonia_emission, Nitrogen_loss_to_leaching, Nitrogen_loss_to_direct_N2O_emission) float #
This function calculates the total mass of Nitrogen in the manure-bedding mix of the current day.
Returns#
- float
The total mass of Nitrogen in the manure-bedding mix of the current day, kg.
- static _calculate_organic_nitrogen_mass(total_Nitrogen_mass) float #
This function calculates the mass of organic Nitrogen in the manure-bedding mix of the current day.
Returns#
- float
The mass of organic Nitrogen in the manure-bedding mix of the current day, kg.
- static _calculate_inorganic_nitrogen_mass(total_Nitrogen_mass) float #
This function calculates the mass of inorganic Nitrogen in the manure-bedding mix of the current day.
Returns#
- float
The mass of inorganic Nitrogen in the manure-bedding mix of the current day, kg.
- static _calculate_ammoniacal_nitrogen_mass(inorganic_Nitrogen_mass) float #
This function calculates the mass of ammonium in the manure-bedding mix of the current day.
Returns#
- float
The mass of ammonium in the manure-bedding mix of the current day, kg.
- _abc_impl = <_abc._abc_data object>#