RUFAS.routines.manure.manure_treatments.slurry_storage_outdoor module#

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

Bases: BaseManureTreatment

Class for the outdoor slurry storage.

Attributes:

All attributes inherited from BaseManureTreatment. In addition, the following attributes are defined: storage_time_period: RufasTime in days that the manure is stored in the manure

treatment system, days.

freeboard_input: Empty storage space above the manure in the treatment system.

onto the treatment system.

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

Initializes the outdoor slurry storage manure treatment.

Args:

weather: A Weather object. time: A RufasTime object. manure_treatment_config: A ManureTreatmentConfig object containing

the configuration data for the manure treatment system.

property wastewater_volume: float#

Calculates the volume of wastewater in the treatment system.

Returns:

The volume of wastewater in the treatment system, m^3.

property treatment_volume: float#

Calculates the minimum treatment volume.

Returns:

The minimum treatment volume, m^3.

property total_pit_volume: float#

Calculates the total pit volume.

Returns:

The total lagoon pit, m^3.

property pit_depth: float#

Returns the depth of the pit.

Returns:

The depth of the pit, m.

property pit_slope: float#

Returns the slope of the pit.

Returns:

The slope of the pit, dimensionless.

_calc_abc() Tuple[float, float, float]#

Calculates the coefficients a, b, and c for volume calculations.

Returns:

A tuple containing the coefficients a, b, and c for volume calculations.

property pit_width: float#

Calculates the width of the pit.

Returns:

The width of the pit, m.

property pit_length: float#

Calculate the length of the pit.

Returns:

The length of the pit, m.

property pit_surface_area: float#

Calculate the surface area of the pit.

The surface area is calculated as the product of the number of animals in the pen and the DEFAULT_STORAGE_AREA_PER_ANIMAL constant.

Returns:

The surface area of the pit, m^2.

property pit_volume: float#

Calculates the volume of the pit.

Returns:

The volume of the pit, m^3.

property precipitation_volume: float#

Calculates the additional pit volume needed for precipitation.

Returns:

The additional pit volume needed for precipitation, m^3.

property freeboard_volume: float#

Calculates the additional pit volume needed for freeboard.

Returns:

The additional pit volume needed for freeboard, m^3.

_adjust_final_manure_volume(current_day_final_manure_volume: float) float#

Adjust the final manure volume to account for the precipitation and the storage time period.

Parameters#

current_day_final_manure_volumefloat

The final manure volume for the current simulation day (\(m^3\)).

Returns#

float

The adjusted final manure volume.

calc_methane_emission(accumulated_liquid_manure_total_volatile_solids: float, accumulated_liquid_manure_total_degradable_volatile_solids: float, accumulated_liquid_manure_total_non_degradable_volatile_solids: float) Tuple[float, float]#

Calculates the CH4 emission from the outdoor slurry storage treatment system.

Parameters#

accumulated_liquid_manure_total_volatile_solids: float

The accumulated total VS in the treatment system, kg VS.

accumulated_liquid_manure_total_degradable_volatile_solids: float

The accumulated total degradable VS in the treatment system, kg VSd.

accumulated_liquid_manure_total_non_degradable_volatile_solids: float

The accumulated total non-degradable VS in the treatment system, kg VSnd.

Returns#

float

methane_loss: methane emission from the outdoor slurry storage treatment system, (kg \(CH_4\)/day).

float

methane_emission_from_degradable_volatile_solids: methane emission from total degradable solids, (kg \(CH_4\)/day).

calc_ammonia_emission(num_animals: int, accumulated_manure_volume: float, accumulated_manure_total_ammoniacal_nitrogen: float) float#

Calculates the ammonia emission from the outdoor slurry storage treatment system.

Parameters#

num_animalsint

The number of animals in the barn.

accumulated_manure_volumefloat

The accumulated manure volume in the treatment system, m^3.

accumulated_manure_total_ammoniacal_nitrogenfloat

The accumulated TAN in the treatment system, kg.

accumulated_manure_total_solidsfloat

The accumulated total solids in the treatment system, kg.

Returns#

float

The ammonia emission from the outdoor slurry storage in kg.

_daily_update_helper() ManureTreatmentDailyOutput#

Returns the daily output of the outdoor slurry storage treatment system.

Returns#

ManureTreatmentDailyOutput

An object containing the daily output of the slurry storage outdoor treatment system.

_abc_impl = <_abc._abc_data object>#