RUFAS.biophysical.manure.storage.anaerobic_lagoon module#

class RUFAS.biophysical.manure.storage.anaerobic_lagoon.AnaerobicLagoon(name: str, cover: StorageCover, storage_time_period: int | None, surface_area: float, capacity: float)#

Bases: Storage

Anaerobic Lagoon class

Parameters#

namestr

The name of the storage.

coverStorageCover

The cover for the storage.

storage_time_periodint | None

The storage time period.

surface_areafloat

The surface area of the storage.

capacityfloat

The capacity of the storage.

__init__(name: str, cover: StorageCover, storage_time_period: int | None, surface_area: float, capacity: float)#

Initialize Anaerobic Lagoon object.

process_manure(current_day_conditions: CurrentDayConditions, time: RufasTime) dict[str, ManureStream]#

Processes manure in Anaerobic Lagoon.

Parameters#

current_day_conditionsCurrentDayConditions

The current day conditions.

timeRufasTime

The time.

Returns#

dict[str, ManureStream]

The processed manure stream. Will be empty if it is not time to empty the storage.

_apply_methane_emissions(manure_temperature: float) tuple[float, float]#

This method computes the methane emissions from both degradable and non-degradable volatile solids in the manure, adjusts the manure’s composition based on the amount of methane emitted, and accounts for the burning of methane if the storage cover is a cover and flare system.

It applies the methane emissions to self._manure_to_process in-place.

Parameters#

manure_temperaturefloat

The temperature of the manure in, (degrees Celsius).

Returns#

tuple[float, float]

A tuple containing: - The methane burned from manure storage on the current day, (kg). - The methane emitted from manure storage on the current day, (kg).

_apply_ammonia_emissions(manure_temperature: float) float#

This method computes the ammonia emissions from stored manure, and accounts the nitrogen and ammoniacal nitrogen loss due to ammonia emissions.

Applies ammonia losses to self._manure_to_process in-place.

Parameters#

manure_temperaturefloat

The temperature of the manure, (0degrees Celsius).

Returns#

float

The amount of nitrogen in the ammonia emitted from manure storage on the current day, (kg).

_abc_impl = <_abc._abc_data object>#