tud_lbm.operators.factory ========================= .. py:module:: tud_lbm.operators.factory .. autoapi-nested-parse:: Unified operator factory — single source of truth for operator lookup. This module provides a generic factory function that resolves operator names to their implementations using the central registry. All operator-specific factories (in collision/, streaming/, etc) delegate to this generic factory. .. rubric:: Example def build_collision_fn(scheme: str) -> CollisionOperator: return build_operator("collision_models", scheme) Functions --------- .. autoapisummary:: tud_lbm.operators.factory.build_operator Module Contents --------------- .. py:function:: build_operator(kind: str, scheme: str) -> tud_lbm.registry.OperatorTarget Resolve operator name to implementation. This is the single source of truth for operator factory logic. All operator-specific factories delegate to this function. :param kind: Operator kind ("collision_models", "stream", "equilibrium", etc) :param scheme: Operator name within that kind ("bgk", "standard", "wb", etc) :returns: The operator function/class satisfying the protocol :rtype: OperatorTarget :raises ValueError: If kind is not registered or scheme is unknown .. rubric:: Example >>> op = build_operator("collision_models", "bgk") >>> result = op(f, feq, tau)