RUFAS.routines.manure.manure_treatments.compost_bedded_pack_barn module#

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

Bases: BaseManureTreatment

Class for the compost bedded pack barn.

Attributes:

All attributes inherited from BaseManureTreatment.

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

Initialize the compost bedded pack barn.

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.

lagint

The lag time

moisture_effectfloat

The effect of moisture on microbial decomposition (unitless).

carbon_fraction_available_in_manurefloat

The proportion of carbon available in manure (unitless).

carbon_fraction_available_in_beddingfloat

The proportion of carbon available in the bedding material (unitless).

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 compost bedded pack barn manure treatment system.

Returns#

ManureTreatmentDailyOutput

A ManureTreatmentDailyOutput object containing the daily output of the compost bedded pack barn manure treatment system.

_abc_impl = <_abc._abc_data object>#