RUFAS.routines.animal.life_cycle.calf module#
- RUFAS.routines.animal.life_cycle.calf.random() x in the interval [0, 1). #
- class RUFAS.routines.animal.life_cycle.calf.Calf(args)#
Bases:
AnimalBase
- __init__(args)#
- Description:
initialize calf at the time it was born
- Args:
args.id: id of the animal args.breed: breed of the animal args.birth_date: the date of the simulation when the calf was born args.daysBorn: age of the animal (optional: include the following to assign animal information) args.birth_weight: the birth weight of the animal args.body_weight: current body weight of the animal args.wean_weight: the wean weight of the animal args.mature_body_weight: the mature body weight of the animal args.events: events of the animal
- init_values(args)#
Determine stillbirth, gender, and birth weight
- assign_calf_values(args)#
Assign calf with given values
- get_calf_values()#
Get current information from the calf
- calc_nutrient_rqmts(feed: Dict[str, float], temp: float) None #
Calculates this calf’s nutrient requirements.
Parameters#
- feed: Dict[str, float]
instance of the Feed class
- tempfloat
methane model used for methane emission calculations
Returns#
None
- calc_manure_excretion(methane_model: str, nutrient_amount: Dict[str, float], nutrient_conc: Dict[str, float]) None #
Calculates and sets the manure excretion components.
Parameters#
- methane_modelstr
Methane model used for methane emission calculations, including Boadi, IPCC.
- nutrient_amountDict[str, float]
Amounts of nutrients in pen ration, calculated per animal, see Notes section for units.
- nutrient_concDict[str, float]
Concentrations of nutrients in pen ration, calculated per animal, percentages.
Returns#
None
Notes#
- nutrient_amount_units = {
“dm”: “kg/animal”, “CP”: “percent of DM”, “ADF”: “percent of DM”, “NDF”: “percent of DM”, “lignin”: “percent of DM”, “ash”: “percent of DM”, “phosphorus”: “percent of DM”, “potassium”: “percent of DM”, “N”: “percent of DM”, }
- phosphorus_rqmts(DMI: float) None #
Calculates and sets the animal’s phosphorus requirement.
Parameters#
- DMIfloat
Dry Matter Intake (kg)
- update(sim_day: int) bool #
Controls calf’s grow with average daily gain based on user’s input until wean day. Calculate the wean weight at wean day. Here is the place to change growth rate with calf feeding methods later when we have calf nutrition from the ration formulation module.
Returns: time when calf is weaned – stop be fed with milk