RUFAS.biophysical.manure.handler.single_stream_handler module#
- class RUFAS.biophysical.manure.handler.single_stream_handler.SingleStreamHandler(name: str, processor_type: str, cleaning_water_use_amount: float, cleaning_water_recycle_fraction: float, use_parlor_flush: bool)#
Bases:
Handler
Base class for all handlers that only accept a single manure stream at a time.
Parameters#
- namestr
Unique identifier of the processor.
- handler_type: str
The manure handler sub-type class into which this handler is categorized.
- cleaning_water_use_amountfloat
Amount of cleaning water used per animal per day (L).
- cleaning_water_recycle_fractionfloat
Fraction of cleaning water that is from recycled (not fresh) water sources (unitless).
- use_parlor_flushbool
Indication for if a parlor flush is used in addition to routine parlor water cleaning with fresh water.
- __init__(name: str, processor_type: str, cleaning_water_use_amount: float, cleaning_water_recycle_fraction: float, use_parlor_flush: bool)#
Initializes a new Processor.
- receive_manure(manure_stream: ManureStream) None #
Takes in manure to be processed.
Parameters#
- manure_streamManureStream
The manure to be processed.
Raises#
- ValueError
If the ManureStream is incompatible with the processor receiving it.
- process_manure(conditions: CurrentDayConditions, time: RufasTime) dict[str, ManureStream] #
Executes the daily manure processing operations. This method will calculate the gas emissions then call the base handler’s process manure.
Parameters#
- conditionsCurrentDayConditions
Current weather and environmental conditions that manure is being processed in.
- timeRufasTime
RufasTime instance containing the simulations temporal information.
Returns#
- dict[str, ManureStream]
Mapping between classification of manure coming out of this processor to the ManureStream containing the manure information. If the processor is a separator, the classifications are “solid” and “liquid”. Otherwise the only classification is “manure”.
- static determine_housing_methane_emissions(manure_deposition_surface_area: float, barn_temperature: float) float #
Calculates the methane housing emission.
Parameters#
- manure_deposition_surface_areafloat
The surface area of the manure deposition area in the pen (m^2).
- barn_temperaturefloat
Temperature of the barn (Celsius).
Returns#
- float
Methane emission from manure (kg).
- static determine_housing_carbon_dioxide_emissions(manure_deposition_surface_area: float, barn_temperature: float) float #
Calculates the housing carbon dioxide housing emission.
Parameters#
- manure_deposition_surface_areafloat
The surface area of the manure deposition area in the pen (m^2).
- barn_temperaturefloat
Temperature of the barn (Celsius).
Returns#
- float
Carbon dioxide emission from manure (kg).
- _abc_impl = <_abc._abc_data object>#