OneSimulation docs Website Free books Plans on Gumroad

Docs › Numerical API reference › onesim.numerics.coupled_systems

B.2 onesim.numerics.coupled_systems

AlgebraicClosure class

AlgebraicClosure(*, nonlinear_solver: object, linear_solver: object | None = None, initial_values: Mapping = <factory>) -> None

Resolve instantaneous field feedback with a bound nonlinear solver. Use source units for initial guesses.

Methods and properties.

bind(*, dependencies, context)

Bind this declaration to the supplied execution context and collaborators.

CoupledVelocityPressure class

CoupledVelocityPressure(*, momentum_solver: object, pressure_solver: object, nonlinear_solver: object | None = None, factory: object | None = None) -> None

Solve velocity, face flux and pressure together with the selected inner solvers.

Methods and properties.

bind(*, operator, momentum_solver, pressure_solver, nonlinear_solver)

Bind this declaration to the supplied execution context and collaborators.

MonolithicCoupling class

MonolithicCoupling(*, transient_systems: tuple, algebraic_closure: object | None = None, time_integrator: object, nonlinear_solver: object | None = None, linear_solver: object | None = None, linearized_solver: object | None = None, stability: object | None = None) -> None

Advance unique transient blocks with one time algorithm, explicit stage solvers where needed, and shared stability.

Methods and properties. order. Read the nominal selected order.

PartitionedCoupling class

PartitionedCoupling(*, transient_systems: tuple, algebraic_closure: object | None = None, iteration: object, stationary_systems: tuple = (), order: tuple | None = None, on_failure: str = 'reject_time_step') -> None

Replay one trial step per transient partition while iterating exchanged fields. Nonconvergence rejects the step.

PISO class

PISO(*, momentum_solver: object, pressure_solver: object, pressure_correctors: int = 2, relative_tolerance: float = 1e-08, absolute_tolerance: float = 1e-10, maximum_iterations: int = 100, pressure_relaxation: float = 0.5, momentum_relaxation: float = 0.7, factory: object | None = None) -> None

Configure a supported FV pressure-correction solve with momentum and pressure solvers, correctors and relaxation.

Methods and properties.

bind(*, operator, momentum_solver, pressure_solver)

Bind this declaration to the supplied execution context and collaborators.

QuasiStationaryCoupling class

QuasiStationaryCoupling(*, transient_systems: tuple, algebraic_closure: object | None = None, stationary_systems: tuple, iteration: object, on_failure: str = 'reject_time_step') -> None

Iterate nonoverlapping transient and stationary blocks at a shared trial time.

SequentialCoupling class

SequentialCoupling(*, transient_systems: tuple, algebraic_closure: object | None = None, stationary_systems: tuple, order: tuple) -> None

Give an explicit sweep order containing each declared transient or stationary model exactly once.