Crop Application

QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems

This module is developed by:

Yalin Li <>

This module is under the University of Illinois/NCSA Open Source License. Please refer to for license details.

class qsdsan.sanunits._crop_application.CropApplication(ID='', ins: Sequence[AbstractStream] | None = None, outs: Sequence[AbstractStream] | None = (), thermo=None, init_with='WasteStream', if_material_loss=True, loss_ratio=0.02)

Recovery nutrients in the recycled excreta (energy not recovered) based on Trimmer et al.

  • if_material_loss (bool or dict) – If material loss occurs during application.

  • loss_ratio (float or dict) – Fractions of material losses during application (if if_materiloass is True).


bwaise systems


[1] Trimmer et al., Navigating Multidimensional Social–Ecological System Trade-Offs across Sanitation Alternatives in an Urban Informal Settlement. Environ. Sci. Technol. 2020, 54 (19), 12641–12653.

line: str = 'Crop application'

class-attribute Name denoting the type of Unit class. Defaults to the class name of the first child class

property loss_ratio

[float] or [dict] Fractions of material losses during application. If a single number is provided, then it is assumed that losses of all Components in the WasteStream are the same.


Set state variable values (e.g., COD) will be retained if the loss ratio is a single number (treated like the loss stream is split from the original stream), but not when the ratio is a dict.