RUFAS.routines.manure.manure_treatments.open_lots module#

class RUFAS.routines.manure.manure_treatments.open_lots.OpenLots(weather: Weather, time: RufasTime, manure_treatment_config: ManureTreatmentConfig)#

Bases: BaseManureTreatment

Class for the open lots manure treatment system.

Attributes#

All attributes inherited from BaseManureTreatment.

__init__(weather: Weather, time: RufasTime, manure_treatment_config: ManureTreatmentConfig) None#

Initialize the open lots manure treatment system.

Parameters#

weatherWeather

The weather object used for getting the current day’s average temperature.

timeRufasTime

The RufasTime object used for checking the last simulation day.

manure_treatment_configManureTreatmentConfig

The configuration data object for the compost bedded pack barn.

_calc_dry_matter_changes(manure_total_solids: float, bedding_total_solids: float, manure_volatile_solids: float, moisture_effect: float = 0.65, days_since_last_tillage: int = 1, lag: int = 2, carbon_fraction_available_in_manure: float = 0.5, carbon_fraction_available_in_bedding: float = 0.35) tuple[float, float, float]#

Calculate the changes in dry-matter for the manure-bedding mixture.

Parameters#

manure_total_solidsfloat

The total mass of the manure (kg).

bedding_total_solidsfloat

The mass of the bedding material (kg).

manure_volatile_solidsfloat

The mass of manure volatile solids (kg).

days_since_last_tillagefloat

The number of days since the manure-bedding mixture was last tilled. The default value can be found in ManureConstants.DEFAULT_DAYS_SINCE_LAST_TILLAGE.

lagint

The lag time used in the calculation of the carbon decomposition rate (days). The default value can be found in ManureConstants.DEFAULT_LAG_TIME.

moisture_effectfloat

The effect of moisture on microbial decomposition (unitless). The default value can be found in ManureConstants.DEFAULT_MOISTURE_EFFECT_MICROBIAL_DECOMP.

carbon_fraction_available_in_manurefloat

The proportion of carbon available in manure (unitless). The default value can be found in ManureConstants.DEFAULT_CARBON_FRACTION_AVAILABLE_IN_MANURE.

carbon_fraction_available_in_beddingfloat

The proportion of carbon available in the bedding material (unitless). The default value can be found in GasEmissionConstants.DEFAULT_CARBON_FRACTION_AVAILABLE_IN_BEDDING.

Returns#

float

The total volatile solids in the manure-bedding mixture after emissions (kg).

float

The total solids in the manure-bedding mixture after emissions (kg).

float

The dry matter lost from carbon and methane emissions (kg).

_daily_update_helper() ManureTreatmentDailyOutput#

Calculate the daily output of the open lots manure treatment system.

Returns#

ManureTreatmentDailyOutput

A ManureTreatmentDailyOutput object containing the daily output of the open lots manure treatment system.

_abc_impl = <_abc._abc_data object>#