RUFAS.routines.manure.manure_handlers.milking_parlor module#
- class RUFAS.routines.manure.manure_handlers.milking_parlor.MilkingParlor(num_milkings=3, minutes_spent_in_holding_area=30.0, minutes_spent_per_milking=7.0, wash_water_use_rate=20.0, fresh_water_use_rate=10.0)#
Bases:
object
A class that calculates the time spent and water usage in the milking parlor by cows.
Note that only lactating cows are considered in this class.
- Attributes
num_milkings: Number of milkings per animal per day. minutes_spent_per_milking: Number of minutes spent per milking per animal. minutes_spent_in_holding_area: Number of minutes spent in holding area per animal per milking. wash_water_use_rate: Wash water use rate in the holding area, liters/animal/day. fresh_water_use_rate: Fresh water use rate for milking, liters/animal/day.
- __init__(num_milkings=3, minutes_spent_in_holding_area=30.0, minutes_spent_per_milking=7.0, wash_water_use_rate=20.0, fresh_water_use_rate=10.0) None #
Initialize the milking parlor.
- Parameters
num_milkings: Number of milkings per animal per day. minutes_spent_per_milking: Number of minutes spent per milking per animal. minutes_spent_in_holding_area: Number of minutes spent in holding area per animal per day. wash_water_use_rate: Wash water use rate in the holding area, liters/animal/day. fresh_water_use_rate: Fresh water use rate for milking, liters/animal/day.
- property total_minutes_spent_in_holding_area: float#
Total number of minutes spent in holding area per animal per day.
- Returns
Total number of minutes spent in holding area per animal per day.
- property fraction_of_day_spent_in_holding_area: float#
Returns fraction of day spent in holding area.
- Returns:
Fraction of day spent in holding area.
- calc_wash_water_volume_used_in_holding_area(num_cows: int) float #
Calculates the volume of wash water used in holding area.
- Args:
num_cows: Number of cows in the pen.
- Returns:
Volume of wash water used in holding area, liters.
- property total_minutes_spent_milking: float#
Total number of minutes spent milking per animal per day.
- Returns
Total number of minutes spent milking per animal per day.
- property fraction_of_day_spent_milking: float#
Returns fraction of day spent milking.
- Returns:
Fraction of day spent milking.
- calc_fresh_water_volume_used_for_milking(num_cows: int) float #
Returns volume of fresh water used for milking.
- Args:
num_cows: Number of cows in the pen.
- Returns:
Volume of fresh water used for milking, liters.
- property total_minutes_spent_in_milking_parlor: float#
Total number of minutes spent in the milking parlor per animal per day.
Note that this includes both the time spent in the holding area and the time spent milking.
- Returns
Total number of minutes spent in the milking parlor per animal per day.
- property total_fraction_of_day_spent_in_milking_parlor: float#
Returns total fraction of day spent in the milking parlor per animal.
- Returns:
Total fraction of day spent in the milking parlor per animal.
- calc_total_water_volume_used_in_milking_parlor(num_cows: int) float #
Calculates total volume of water used in the milking parlor.
- Args:
num_cows: Number of cows in the pen.
- Returns:
Total volume of water used in the milking parlor, L.
- calc_manure_mass_deposited_in_milking_parlor(num_cows: int, manure_mass: float) float #
Calculates total mass of manure deposited in the milking parlor by all cows in pen.
- Args:
num_cows: Number of cows in the pen. manure_mass: Manure mass in the pen, kg.
- Returns
Total mass of manure deposited in the milking parlor, kg.
- calc_manure_volume_deposited_in_milking_parlor(num_cows: int, manure_mass: float) float #
Calculates total volume of manure deposited in the milking parlor.
- Args:
num_cows: Number of cows in the pen. manure_mass: Manure mass in the pen, kg.
- Returns:
Total volume of manure deposited in the milking parlor, m^3.
- classmethod _calc_fraction_of_day_from_minutes(minutes: float) float #
Converts minutes to fraction of day.
- Args:
minutes: Number of minutes.
- Returns:
Fraction of day from minutes.