RUFAS.biophysical.manure.field_manure_supplier module#
- RUFAS.biophysical.manure.field_manure_supplier.LIQUID_MANURE_DRY_MASS_TO_WET_MASS = 21.739#
Factor for converting nitrogen mass to dry matter mass of liquid manure.
- RUFAS.biophysical.manure.field_manure_supplier.NITROGEN_TO_LIQUID_MANURE_DRY_MASS = 20.909#
Factor for converting phosphorus mass to dry matter mass of liquid manure.
- RUFAS.biophysical.manure.field_manure_supplier.PHOSPHORUS_TO_LIQUID_MANURE_DRY_MASS = 51.111#
Factor for converting dry matter mass of solid manure to wet mass.
- RUFAS.biophysical.manure.field_manure_supplier.SOLID_MANURE_DRY_MASS_TO_WET_MASS = 2.469#
Factor for converting nitrogen mass to dry matter mass of solid manure.
- RUFAS.biophysical.manure.field_manure_supplier.NITROGEN_TO_SOLID_MANURE_DRY_MASS = 67.516#
Factor for converting phosphorus mass to dry matter mass of solid manure.
- RUFAS.biophysical.manure.field_manure_supplier.PHOSPHORUS_TO_SOLID_MANURE_DRY_MASS = 135.033#
Maps the currently supported manure types to the constants associated with them.
- class RUFAS.biophysical.manure.field_manure_supplier.FieldManureSupplier#
Bases:
object
Supplies manure for field applications.
Methods#
- request_nutrients(request: NutrientRequest) -> NutrientRequestResults
Receives a request for manure nutrients and constructs a manure amount to fulfill the request.
- static request_nutrients(request: NutrientRequest) NutrientRequestResults #
Formulates a manure supply response based on a nutrient request.
Parameters#
- requestNutrientRequest
Request for manure containing masses of N, P and the desired manure type (liquid or solid).
Returns#
- NutrientRequestResults
Response containing manure mass, nutrient mass, and other nutrient details in response to the request.
Notes#
This method calculates the total mass of manure that would be applied for each of the requested nutrients, then selects the smallest mass and uses it to construct the amount of manure that is actually returned. If one of the requested nutrient masses is 0, that nutrient is not considered when formulating the manure result.