Calculate diet gross energy contribution for a ration component
Source:R/core_model_ration_quality.R
calc_ration_gross_energy.RdComputes the contribution of a single feed component to diet gross energy content by weighting feed gross energy by its ration composition share.
Arguments
- feed_ration_fraction
Numeric. Proportion of a specific feed component in the total ration, expressed as its fraction of diet dry matter intake (fraction). Within each herd_id and cohort, proportions should sum to 1.
- feed_gross_energy
Numeric. Gross energy content of a feed component, representing the total chemical energy released upon complete combustion of the feed (MJ/kg DM).
Details
The gross energy contribution is defined as: $$diet\_gross\_energy = feed\_ration\_fraction \times feed\_gross\_energy$$
This function is part of the run_ration_quality_module().