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
CompiledModelis immutable in use). Useclear_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 runadm1with activity coefficients instead of the shipped"none"(which uses molar concentrations directly, the ADM1/BSM2 convention). Requires the model to declare aspeciation:block. When given, the cache is bypassed (so the default and the overridden model coexist);None(default) returns the cached default unchanged.
- Return type: