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
InfluentSeriesfrom influent measurements.Fractionates the measured aggregates into ASM1 states (see
fractionate()and the module docstring) and returns a constant-in-time influent at flowflow. The model must declare the ASM1 states.- Parameters:
model (CompiledModel) – An ASM1 (or ASM1-state-compatible) model.
flow (float) – Volumetric flow (m3/d).
total_cod – Passed to
fractionate().tkn – Passed to
fractionate().ammonia – Passed to
fractionate().nox – Passed to
fractionate().alkalinity – Passed to
fractionate().filtered_cod – Passed to
fractionate().flocculated_filtered_cod – Passed to
fractionate().soluble_inert_cod – Passed to
fractionate().fractions (InfluentFractions) – Passed to
fractionate().T (float, optional) – Influent temperature (Kelvin), carried onto the series.
- Return type:
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)