OneSimulation docs Website Free books Plans on Gumroad

Docs › Numerical API reference › onesim.numerics

B.1 onesim.numerics

coupled_systems namespace

Numerics.coupling public interface.

discretization namespace

numerics.discretization public components.

fdm namespace

numerics.fdm public components.

fem namespace

Numerics.fem public interface.

field_transfer namespace

Transfer public interface.

fvm namespace

Numerics.fvm public interface.

linear namespace

Numerics.linear public interface.

nonlinear namespace

Numerics.nonlinear public interface.

NumericalExecutionPlan class

NumericalExecutionPlan(plan_id: str, problem_id: str, bindings: tuple[ProviderBinding, ...], stage_requirement_ids: tuple[str, ...], ir_content_sha256: str = '', study_kind: str = 'stationary', equation_ids: tuple[str, ...] = (), term_ids: tuple[str, ...] = (), field_ids: tuple[str, ...] = (), spatial_method_ids: tuple[str, ...] = (), time_method_id: str | None = None, coupling_ids: tuple[str, ...] = (), solver_id: str | None = None, backend_id: str | None = None, term_method_bindings: tuple[tuple[str, str], ...] = (), splitting_id: str | None = None, preconditioner_id: str | None = None, resource_policy_id: str | None = None, requires_spatial_discretization: bool = True, coupling_mode: str = 'fully_coupled', coupling_blocks: tuple[tuple[str, ...], ...] = (), coupling_strategy_id: str | None = None, nonlinear_solver_id: str | None = None, schema_version: str | None = None, component_configurations: tuple[tuple[str, str], ...] = ()) -> None

Inspect the resolved provider and method bindings, study kind, stage requirements, and execution identity.

Methods and properties.

provider_for(requirement_id: str) -> ProviderBinding

Return the binding selected for one IR requirement.

to_dict() -> dict[str, object]

Return the structured dictionary representation.

from_dict(payload: Mapping[str, object]) -> NumericalExecutionPlan

Reconstruct this declaration from the supplied dictionary. content_sha256. Read the content fingerprint of the resolved declaration or plan.

NumericalIR class

NumericalIR(problem_id: str, equation_ids: tuple[str, ...], field_ids: tuple[str, ...], spatial_method_ids: tuple[str, ...], requirements: tuple[NumericalRequirement, ...], stage_requirement_ids: tuple[str, ...] = (), term_ids: tuple[str, ...] = (), time_method_id: str | None = None, coupling_ids: tuple[str, ...] = (), solver_id: str | None = None, backend_id: str | None = None, study_kind: str = 'stationary', schema_version: str = '1.0', term_method_bindings: tuple[tuple[str, str], ...] = (), splitting_id: str | None = None, preconditioner_id: str | None = None, resource_policy_id: str | None = None, requires_spatial_discretization: bool = True, coupling_mode: str = 'fully_coupled', coupling_blocks: tuple[tuple[str, ...], ...] = (), coupling_strategy_id: str | None = None, nonlinear_solver_id: str | None = None, semantic_field_bindings: tuple[tuple[str, str, str], ...] = (), component_configurations: tuple[tuple[str, str], ...] = ()) -> None

Inspect the equation, field, term and method requirements supplied to numerical resolution.

Methods and properties.

to_dict() -> dict[str, object]

Return the complete provider-neutral, canonical serialization.

from_dict(payload: Mapping[str, object]) -> "'NumericalIR'"

Reconstruct this declaration from the supplied dictionary. content_sha256. Read the content fingerprint of the resolved declaration or plan.

Numerics class

Numerics(*, spatial: object, linear_solver: object | None = None, nonlinear_solver: object | None = None, linearized_solver: object | None = None, time_integrator: object | None = None, step_limits: TimeStepLimits = <factory>, coupling: object | None = None, initial_guess: Mapping[FieldRef, object] | None = None, field_scales: Mapping[FieldRef, object] | None = None) -> None

Compose independent spatial, linear, nonlinear, time, and coupling selections. Initial guesses and scales are mappings keyed by owned field references.

time namespace

Numerics.time public interface.