RUFAS.routines.animal.life_cycle.heiferIII module#
- class RUFAS.routines.animal.life_cycle.heiferIII.HeiferIII(args)#
Bases:
HeiferII
- __init__(args)#
- Description:
initialize the heifer in this stage from the second stage
- Args:
args.id: id of the cow args.breed: breed of the cow args.birth_date: the date of the simulation when the calf was born args.daysBorn: age of the animal args.repro_program: reproduction program used in heifer,
three of them: ED, TAI, and synch-ED programs
- args.repro_sub_protocol: string indicating the sub-type of the reproduction protocol being used. Can be
“5dCG2P”, “5dCGP”, “2P”, “CP” or “N/A”.
- args.tai_method_h: timed-AI protocols used for
reproduction programs, three of them: 5dCG2P, 5dCGP, and user-defined
- args.synch_ed_method_h: synch ed protocols used for
reproduction programs, two of them: 2P and CP
(optional: include the following to assign cow information) args.birth_weight: the birth weight of the cow args.body_weight: current body weight of the cow args.wean_weight: the wean weight of the cow args.mature_body_weight: the mature body weight of the cow args.events: events of the cow args.estrus_count args.estrus_day args.tai_program_start_day_h args.synch_ed_program_start_day_h args.synch_ed_estrus_day args.stop_day args.conception_rate args.ai_day args.abortion_day args.days_in_preg args.gestation_length args.p_gest_for_calf
- get_heiferIII_values()#
Get current information from the heiferIII
- set_nutrient_rqmts(temperature: float, animal_grouping_scenario, nutrient_conc: Dict[str, float] = {}, metabolizable_energy: float = 15.625, previous_DMI: float = 10.0)#
Calculates this heiferIII’s nutrient requirements.
- 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.
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”, }
- update(sim_day: int) bool #
Controls heifer’s grow with average daily gain based on user’s input until breeding start day here is the place to change growth rate with heifer feeding methods later when we have heifer nutrition from the ration formulation module next to it could build the function of ranking heifers.
Parameters#
- sim_dayint
Day of simulation.
Returns#
- bool
True if should be moved to “cow stage”.