tud_lbm.operators.wetting
Wetting and hysteresis operators — implementations of wetting protocols.
Public API: build_wetting_fn()
Implementation modules (_contact_angle.py, _contact_line.py, hysteresis.py) are internal; use the factory to access.
Utility helpers (build_wetting_applicator) and the WettingParams data class are re-exported for convenience.
Example
from operators.wetting import build_wetting_fn
contact_angle_fn = build_wetting_fn(“contact_angle”) ca_left, ca_right = contact_angle_fn(rho, rho_mean)
Submodules
Functions
|
Return a wetting operator looked up from the registry. |
Package Contents
- tud_lbm.operators.wetting.build_wetting_fn(scheme: str = 'contact_angle')[source]
Return a wetting operator looked up from the registry.
- Parameters:
scheme – Wetting operator name (“contact_angle”, “contact_line_location”, “hysteresis”, or others). Defaults to “contact_angle”.
- Returns:
A callable registered under the “wetting” kind.
- Raises:
ValueError – If scheme is not registered.
Examples
>>> from operators.wetting import build_wetting_fn >>> ca_fn = build_wetting_fn("contact_angle") >>> ca_left, ca_right = ca_fn(rho, rho_mean)