aquakin.characterize_influent#

aquakin.characterize_influent(model, *, flow, total_cod, tkn, ammonia=None, nox=0.0, alkalinity=None, filtered_cod=None, flocculated_filtered_cod=None, soluble_inert_cod=None, fractions=InfluentFractions(f_sccod=0.405, f_scod=0.202, f_su=0.118, f_xu=0.14, f_oho=0.05, f_xe=0.2, f_cu=0.2, f_snh=0.7, iN_sb=0.04, iN_xb=0.086, iN_xp=0.06, caco3_eq=50.0, default_alkalinity_mol=7.0), T=None)[source]#

Build a constant InfluentSeries from influent measurements.

Fractionates the measured aggregates into ASM1 states (see fractionate() and the module docstring) and returns a constant-in-time influent at flow flow. The model must declare the ASM1 states.

Parameters:
Return type:

InfluentSeries

Examples

>>> net = aquakin.load_model("asm1")
>>> inf = characterize_influent(net, flow=24000.0, total_cod=420.0,
...                             tkn=34.4, ammonia=24.0, alkalinity=330.0)