RUFAS.routines.manure.pen_manure.manure_manager_pen module#
- class RUFAS.routines.manure.pen_manure.manure_manager_pen.ManureManagerPen(pen: PenManureData)#
Bases:
object
A modified version of the Pen class in the animal module. This class extracts some relevant information from the original Pen class and then adds some extra attributes that can be used in the gas emissions equations.
Attributes#
- idint
Pen id.
- animals_in_penDict[int, AnimalBase]
A dictionary of animal ids as the key and animal objects as the value in this pen
- num_animalsint
The number of animals in this pen.
- num_lactating_cowsint
The number of lactating cows in this pen.
- classes_in_penSet[str]
Set of unique animal classes in this pen.
- animal_combinationAnimalCombination
An AnimalCombination enum that describes the current animal makeup in this pen.
- housing_typestr
The type of housing used for this pen.
- bedding_typestr
The type of bedding used for this pen.
- pen_typestr
The type of pen used for this pen.
- manure_handlerstr
The type of manure handler used for this pen.
- manure_separatorstr
The type of manure separator used for this pen.
- manure_separator_after_digestionstr
The second manure separator used on manure generated from this pen.
- manure_treatmentstr
The type of manure treatment(s) used for this pen.
- manure_densityfloat
The manure density used for calculating manure volume, kg/m^3.
- manurePenManure
The manure data extracted from the animal module and converted to usable form for the manure module.
- __init__(pen: PenManureData) None #
Initializes a pen object.
The newly created object does not store any reference to the passed-in argument and only performs a read on it.
Parameters#
- penPenManureData
A PenManureData instance containing all the manure information from a single pen.
- property exposed_manure_surface_area_from_pen_type: float#
Get the exposed manure surface area based on the pen type and whether there are lactating cows in the pen.
Notes#
The exposed manure surface area is looked up from the following table:
Pen Type
Has Lac Cows
No Lac Cows
Freestall
3.5
2.5
Tiestall
1.2
1.0
Compost Bedded Pack Barn
5.0
3.0
Open Lot
5.0
3.0
Returns#
- float
Exposed manure surface area (\(m^2\)).
Raises#
- ValueError
If the pen type is not one of the following: “freestall”, “tiestall”, “compost bedded pack barn”, or “open lot”.