aquakin.load_model#

aquakin.load_model(name, *, activity_model=None)[source]#

Load a built-in model shipped with aquakin.

The compiled model is cached by name and reused on subsequent calls (a CompiledModel is immutable in use). Use clear_model_cache() to reset the cache.

Parameters:
  • name (str) – Model name (e.g. "ozone_bromate").

  • activity_model (str, optional) – Override the speciation activity_model (ionic-strength activity correction in the pH solver) – e.g. "davies" to run adm1 with activity coefficients instead of the shipped "none" (which uses molar concentrations directly, the ADM1/BSM2 convention). Requires the model to declare a speciation: block. When given, the cache is bypassed (so the default and the overridden model coexist); None (default) returns the cached default unchanged.

Return type:

CompiledModel