aquakin.derived_TKN#

aquakin.derived_TKN(C, model=None, *, i_XB=None, i_XP=None)[source]#

Total Kjeldahl Nitrogen = S_NH + S_ND + X_ND + i_XB × (XB_H + XB_A) + i_XP × (XP + XI).

i_XB / i_XP default to the model’s declared N-fractions (the standard ASM1 0.086 / 0.06 when undeclared); the BSM2 parameter set uses i_XB = 0.08. C may be a concentration array (with model) or a StreamSeries.

Parameters:
  • model (CompiledModel | None)

  • i_XB (float | None)

  • i_XP (float | None)

Return type:

jnp.ndarray