OneSimulation docs Website Free books Plans on Gumroad

Docs › Physics API reference › onesim.physics.systems

A.17 onesim.physics.systems

adapt_control_signal_flow_result function

adapt_control_signal_flow_result(result: ControlSignalFlowResult, *, result_id: str = 'systems.control_signal_flow.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet

Publish signal-block outputs, dynamic states, and graph residual.

adapt_electrical_networks_result function

adapt_electrical_networks_result(result: ElectricalNetworksResult, *, result_id: str = 'systems.electrical_networks.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet

Publish nodal voltages, branch currents, and charge balance.

adapt_field_system_coupling_result function

adapt_field_system_coupling_result(result: FieldSystemCouplingResult, *, result_id: str = 'systems.field_system_coupling.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet

Publish conjugate field/system port values and power balance.

adapt_hydraulic_systems_result function

adapt_hydraulic_systems_result(result: HydraulicSystemsResult, *, result_id: str = 'systems.hydraulic_systems.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet

Publish hydraulic node pressures, branch flows, and continuity balance.

adapt_pneumatic_systems_result function

adapt_pneumatic_systems_result(result: PneumaticSystemsResult, *, result_id: str = 'systems.pneumatic_systems.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet

Publish ideal-gas chamber state, branch mass flow, and conservation.

adapt_process_models_result function

adapt_process_models_result(result: ProcessModelsResult, *, result_id: str = 'systems.process_models.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet

Publish CSTR unit concentrations, temperatures, streams, and balance.

adapt_systems_result function

adapt_systems_result(result: object, *, provider_id: str | None = None, result_id: str = 'systems.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet

Adapt any built-in Systems result through one explicit entry point.

adapt_thermal_networks_result function

adapt_thermal_networks_result(result: ThermalNetworksResult, *, result_id: str = 'systems.thermal_networks.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet

Publish thermal node temperatures, link heat flow, and energy balance.

adapt_zero_d_one_d_result function

adapt_zero_d_one_d_result(result: ZeroDOneDResult, *, result_id: str = 'systems.zero_d_one_d_models.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet

Publish a 0D global state or a 1D node field with its coordinates.

ControlSignalFlowConfiguration class

ControlSignalFlowConfiguration(provider: str = 'systems.control_signal_flow', mesh: str = 'core.lumped.signal_graph', discretization: str = 'state_space', time_integration: str = 'classical_rk4', solver: str = 'topological_signal_evaluation', parameters: Mapping[str, object] = <factory>) -> None

Select shared time-integration contracts and graph block parameters.

Selected methods.

to_numerical_configuration() -> NumericalConfiguration

Translate to the common Core numerical configuration.

ControlSignalFlowProvider class

ControlSignalFlowProvider(*, blocks: Iterable[SignalBlock], final_time: float = 0.0, time_step: float = 0.001, time_integration: str = 'classical_rk4', **_: object) -> None

Execute an acyclic, extensible signal graph with Core time integration.

Selected methods.

as_spatial_operator(*, method_id: str = 'spatial-method:lumped_parameter') -> CallableSpatialOperator

Expose the signal graph through the common transient Study.

execute(problem: object | None = None) -> ControlSignalFlowResult

Integrate graph state and record every block output at each time node.

ControlSignalFlowPublicApi class

ControlSignalFlowPublicApi(*, provider_registry=None) -> None

Validate and run a registered signal-flow provider.

Selected methods.

validate(configuration: ControlSignalFlowConfiguration) -> tuple[str, ...]

Return public-boundary configuration errors.

run(configuration: ControlSignalFlowConfiguration)

Validate and execute the selected provider.

ControlSignalFlowResult class

ControlSignalFlowResult(state: ControlSignalFlowState, times: np.ndarray, signals: Mapping[str, np.ndarray], state_residual: float, evaluation_order: tuple[str, ...]) -> None

Signal histories and state-integrator residual for a graph execution.

Selected methods.

to_mapping() -> dict[str, object]

Return copied histories and stable graph execution metadata.

ControlSignalFlowState class

ControlSignalFlowState(dynamic_state: np.ndarray) -> None

Continuous dynamic-block state vector together with the output history.

CoupledSystemModelSpec class

CoupledSystemModelSpec(system_id: str, name: str, kind: SystemModelKind, physics_id: str, components: tuple[SystemComponentSpec, ...], connections: tuple[SystemConnectionSpec, ...], field_couplings: tuple[FieldSystemCouplingSpec, ...]) -> None

Compose system components, connections and field links for the systems service.

Selected methods.

from_mapping(raw: Mapping[str, object]) -> "'CoupledSystemModelSpec'"
to_mapping() -> dict[str, object]

DEFAULT_SYSTEMS_PROVIDER_REGISTRY value

Default registry for the domain provider route. Inspect the registered IDs when choosing a provider.

ElectricalBranch class

ElectricalBranch(branch_id: str, from_node: str, to_node: str, resistance: float = 1.0, series_voltage: ScalarSource = 0.0) -> None

Resistive connection with optional ideal series voltage.

ElectricalNetworksConfiguration class

ElectricalNetworksConfiguration(provider: str = 'systems.electrical_networks', mesh: str = 'core.lumped.electrical_network', discretization: str = 'network_ode', time_integration: str = 'classical_rk4', solver: str = 'nodal_charge_balance', parameters: Mapping[str, object] = <factory>) -> None

Select the central systems provider and RC-network parameters.

Selected methods.

to_numerical_configuration() -> NumericalConfiguration

Translate the network request to the common Core contract.

ElectricalNetworksProvider class

ElectricalNetworksProvider(*, nodes: Iterable[ElectricalNode], branches: Iterable[ElectricalBranch] = (), final_time: float = 0.0, time_step: float = 0.001, time_integration: str = 'classical_rk4', **_: object) -> None

Integrate arbitrary linear RC networks using the Core integrator.

Selected methods.

as_spatial_operator(*, method_id: str = 'spatial-method:ode.electrical_network') -> CallableSpatialOperator

Expose the lumped electrical network through the common Study.

execute(problem: object | None = None) -> ElectricalNetworksResult

Advance nodal charge balances and record branch currents.

ElectricalNetworksPublicApi class

ElectricalNetworksPublicApi(*, provider_registry=None) -> None

Validate and execute electrical networks through the systems registry.

Selected methods.

validate(configuration: ElectricalNetworksConfiguration) -> tuple[str, ...]

Validate every numerical axis before constructing the provider.

run(configuration: ElectricalNetworksConfiguration)

Execute a valid internal electrical-network provider.

ElectricalNetworksResult class

ElectricalNetworksResult(times: np.ndarray, voltages: dict[str, np.ndarray], currents: dict[str, np.ndarray], dynamic_voltages: np.ndarray, charge_balance_residual: float) -> None

Voltage/current histories and terminal charge-balance residual.

Selected methods.

to_mapping() -> dict[str, object]

ElectricalNode class

ElectricalNode(node_id: str, capacitance: float = 1.0, initial_voltage: float = 0.0, current_source: ScalarSource = 0.0, imposed_voltage: ScalarSource | None = None) -> None

Electrical potential node with capacitance or imposed voltage.

FieldSystemCouplingProvider class

FieldSystemCouplingProvider(*, effort_ratio: float = 1.0, **_: object) -> None

Transfer conjugate effort/flow variables without creating a solver.

Selected methods.

execute(*, field_effort: float, system_flow: float) -> FieldSystemCouplingResult

Map effort field-to-system and reaction flow system-to-field.

FieldSystemCouplingResult class

FieldSystemCouplingResult(field_effort: float, field_flow: float, system_effort: float, system_flow: float, field_power: float, system_power: float, power_residual: float) -> None

Transferred effort/flow variables and bidirectional power residual.

Selected methods.

to_mapping() -> dict[str, float]

FieldSystemCouplingSpec class

FieldSystemCouplingSpec(coupling_id: str, name: str, component_id: str, domain_ids: tuple[str, ...], effort_variable: str, flow_variable: str, effort_ratio: float) -> None

Connect one named component and spatial support using effort and flow variables and their ratio.

Selected methods.

from_mapping(raw: Mapping[str, object]) -> "'FieldSystemCouplingSpec'"
to_mapping() -> dict[str, object]

FirstOrderControl class

FirstOrderControl(*, domain: object, model_id: str = <factory>, time_constant: float, gain: float = 1.0, input_signal: float | None = 1.0, input_unit: str = '1', output_unit: str = '1') -> None

Advance a first-order response driven by a signal, with explicit input and output units.

HydraulicAccumulator class

HydraulicAccumulator(*, domain: object, model_id: str = <factory>, compliance: float, resistance: float, reference_pressure: float | None = 0.0, external_flow: float | None = 0.0) -> None

Advance global pressure with compliance, resistance and a supplied flow.

Declared fields. pressure (Pa, differential), reservoir (Pa, input), inflow (m^3/s, input).

HydraulicBranch class

HydraulicBranch(branch_id: str, from_node: str, to_node: str, resistance: float = 1.0, pressure_offset: ScalarSource = 0.0, parameters: Mapping[str, object] = <factory>, flow_law: Callable[[float, float, float, Mapping[str, object]], float] | None = None) -> None

Directed hydraulic connection between two nodes.

HydraulicNode class

HydraulicNode(node_id: str, compliance: float = 1.0, initial_pressure: float = 0.0, external_flow: ScalarSource = 0.0, imposed_pressure: ScalarSource | None = None) -> None

Hydraulic pressure node with storage, flow injection, or prescribed pressure.

HydraulicSystemsConfiguration class

HydraulicSystemsConfiguration(provider: str = 'systems.hydraulic_systems', mesh: str = 'core.lumped.hydraulic_network', discretization: str = 'network_ode', time_integration: str = 'classical_rk4', solver: str = 'nodal_continuity', parameters: Mapping[str, object] = <factory>) -> None

Select Core time contracts and declarative hydraulic-network data.

Selected methods.

to_numerical_configuration() -> NumericalConfiguration

Translate to the common Core numerical configuration.

HydraulicSystemsProvider class

HydraulicSystemsProvider(*, nodes: Iterable[HydraulicNode], branches: Iterable[HydraulicBranch] = (), final_time: float = 0.0, time_step: float = 0.001, time_integration: str = 'classical_rk4', **_: object) -> None

Advance arbitrary compliant-node hydraulic networks using Core integration.

Selected methods.

as_spatial_operator(*, method_id: str = 'spatial-method:lumped_parameter') -> CallableSpatialOperator

Expose the hydraulic network through the provider-neutral Study.

execute(problem: object | None = None) -> HydraulicSystemsResult

Integrate nodal pressure balances and record branch flows.

HydraulicSystemsPublicApi class

HydraulicSystemsPublicApi(*, provider_registry=None) -> None

Validate and execute hydraulic networks through the systems registry.

Selected methods.

validate(configuration: HydraulicSystemsConfiguration) -> tuple[str, ...]
run(configuration: HydraulicSystemsConfiguration)

Validate and execute the selected hydraulic provider.

HydraulicSystemsResult class

HydraulicSystemsResult(state: HydraulicSystemsState, times: np.ndarray, pressures: Mapping[str, np.ndarray], flows: Mapping[str, np.ndarray], continuity_residual: float) -> None

Pressure/flow histories and nodal continuity residual.

Selected methods.

to_mapping() -> dict[str, object]

Return serializable copies of all node and branch histories.

HydraulicSystemsState class

HydraulicSystemsState(pressures: np.ndarray) -> None

Dynamic pressure vector ordered by non-boundary network nodes.

PneumaticBranch class

PneumaticBranch(branch_id: str, from_chamber: str, to_chamber: str, conductance: float = 1.0, pressure_offset: ScalarSource = 0.0, parameters: Mapping[str, object] = <factory>, mass_flow_law: Callable[[float, float, float, Mapping[str, object]], float] | None = None) -> None

Directed gas connection with extensible mass-flow law.

PneumaticChamber class

PneumaticChamber(chamber_id: str, volume: float = 1.0, initial_mass: float = 1.0, initial_temperature: float = 300.0, external_mass_flow: ScalarSource = 0.0, external_temperature: ScalarSource = 300.0, heat_transfer_coefficient: float = 0.0, ambient_temperature: ScalarSource = 300.0, imposed_pressure: ScalarSource | None = None, imposed_temperature: ScalarSource | None = None) -> None

Gas volume with ideal-gas mass and internal-energy storage.

PneumaticSystemsConfiguration class

PneumaticSystemsConfiguration(provider: str = 'systems.pneumatic_systems', mesh: str = 'core.lumped.pneumatic_network', discretization: str = 'ideal_gas_network_ode', time_integration: str = 'classical_rk4', solver: str = 'mass_energy_balance', parameters: Mapping[str, object] = <factory>) -> None

Select Core integration and declarative pneumatic-network parameters.

Selected methods.

to_numerical_configuration() -> NumericalConfiguration

Translate to the shared Core numerical configuration.

PneumaticSystemsProvider class

PneumaticSystemsProvider(*, chambers: Iterable[PneumaticChamber], branches: Iterable[PneumaticBranch] = (), gas_constant: float = 287.0, heat_capacity_cv: float = 718.0, heat_capacity_cp: float = 1005.0, final_time: float = 0.0, time_step: float = 0.001, time_integration: str = 'classical_rk4', **_: object) -> None

Integrate extensible ideal-gas chambers and branches with Core time stepping.

Selected methods.

as_spatial_operator(*, method_id: str = 'spatial-method:lumped_parameter') -> CallableSpatialOperator

Expose the pneumatic network through the common Study runner.

execute(problem: object | None = None) -> PneumaticSystemsResult

Advance ideal-gas mass and energy balances and record all histories.

PneumaticSystemsPublicApi class

PneumaticSystemsPublicApi(*, provider_registry=None) -> None

Validate and execute pneumatic systems through the systems registry.

Selected methods.

validate(configuration: PneumaticSystemsConfiguration) -> tuple[str, ...]
run(configuration: PneumaticSystemsConfiguration)

Validate and execute the selected pneumatic provider.

PneumaticSystemsResult class

PneumaticSystemsResult(state: PneumaticSystemsState, times: np.ndarray, masses: Mapping[str, np.ndarray], temperatures: Mapping[str, np.ndarray], pressures: Mapping[str, np.ndarray], mass_flows: Mapping[str, np.ndarray], conservation_residual: float) -> None

Gas chamber histories, branch mass flows and conservation residual.

Selected methods.

to_mapping() -> dict[str, object]

Return serializable copies of pneumatic state and branch histories.

PneumaticSystemsState class

PneumaticSystemsState(values: np.ndarray) -> None

Packed dynamic chamber mass and temperature state.

ProcessModelsConfiguration class

ProcessModelsConfiguration(provider: str = 'systems.process_models', mesh: str = 'core.lumped.process_network', discretization: str = 'cstr_balances', time_integration: str = 'classical_rk4', solver: str = 'species_energy_balance', parameters: Mapping[str, object] = <factory>) -> None

Select Core integration and declarative process flowsheet data.

Selected methods.

to_numerical_configuration() -> NumericalConfiguration

Translate to the shared Core numerical configuration.

ProcessModelsProvider class

ProcessModelsProvider(*, component_ids: Iterable[str], units: Iterable[ProcessUnit], streams: Iterable[ProcessStream] = (), final_time: float = 0.0, time_step: float = 0.001, time_integration: str = 'classical_rk4', **_: object) -> None

Advance arbitrary CSTR-style process flowsheets with the Core integrator.

Selected methods.

as_spatial_operator(*, method_id: str = 'spatial-method:lumped_parameter') -> CallableSpatialOperator

Expose CSTR balances through the provider-neutral Study runner.

execute(problem: object | None = None) -> ProcessModelsResult

Integrate mass/energy balances and record unit and stream histories.

ProcessModelsPublicApi class

ProcessModelsPublicApi(*, provider_registry=None) -> None

Validate and execute process models via the systems registry.

Selected methods.

validate(c: ProcessModelsConfiguration) -> tuple[str, ...]
run(c: ProcessModelsConfiguration)

Validate and execute the selected process provider.

ProcessModelsResult class

ProcessModelsResult(state: ProcessModelsState, times: np.ndarray, concentrations: Mapping[str, Mapping[str, np.ndarray]], temperatures: Mapping[str, np.ndarray], flows: Mapping[str, np.ndarray], balance_residual: float) -> None

Component, temperature and stream histories with balance residual.

Selected methods.

to_mapping() -> dict[str, object]

Return copied process fields and diagnostics.

ProcessModelsState class

ProcessModelsState(values: np.ndarray) -> None

Packed concentration and temperature state of all dynamic process units.

ProcessStream class

ProcessStream(stream_id: str, source_unit: str | None, target_unit: str | None, volumetric_flow: ScalarSource = 0.0, feed_concentrations: Mapping[str, ScalarSource] = <factory>, feed_temperature: ScalarSource = 300.0) -> None

Directed volumetric stream; external feeds use source_unit=None.

ProcessUnit class

ProcessUnit(unit_id: str, volume: float = 1.0, initial_concentrations: Mapping[str, float] = <factory>, initial_temperature: float = 300.0, density: float = 1.0, heat_capacity: float = 1.0, heat_source: ScalarSource = 0.0, reaction_law: ReactionLaw | None = None) -> None

Perfectly mixed process volume with arbitrary component state.

ResistorCapacitor class

ResistorCapacitor(*, domain: object, model_id: str = <factory>, resistance: float, capacitance: float, supply_voltage: float | None) -> None

Advance capacitor voltage under a supplied voltage through a resistor.

Declared fields. voltage (V, differential), supply (V, input), current (A, derived).

SealedGasChamber class

SealedGasChamber(*, domain: object, model_id: str = <factory>, volume: float, gas_constant: float = 287.0, heat_capacity_cv: float = 718.0, thermal_conductance: float = 1.0, ambient_temperature: float | None = 300.0) -> None

Advance the thermal balance of a sealed gas volume and derive its pressure.

Declared fields. mass (kg, differential), temperature (K, differential), pressure (Pa, derived), ambient (K, input).

SignalBlock class

SignalBlock(block_id: str, kind: str, inputs: tuple[str, ...] = (), parameters: Mapping[str, object] = <factory>, source: SignalSource | None = None, custom_evaluator: Callable[[tuple[float, ...], float, Mapping[str, object]], float] | None = None, custom_derivative: Callable[[tuple[float, ...], float, Mapping[str, object], tuple[float, ...]], tuple[float, ...]] | None = None) -> None

One declarative signal-processing or continuous-control block.

Selected methods.

initial_state() -> tuple[float, ...]

Return deterministic initial state from declarative parameters.

SystemComponentKind enumeration

SystemComponentKind(*values)

Select the component role in a systems specification.

SystemComponentSpec class

SystemComponentSpec(component_id: str, name: str, kind: SystemComponentKind, domain_ids: tuple[str, ...], parameters: tuple[tuple[str, float], ...]) -> None

Declare the component ID, kind, support and numeric parameters.

Selected methods.

from_mapping(raw: Mapping[str, object]) -> "'SystemComponentSpec'"
to_mapping() -> dict[str, object]

SystemConnectionKind enumeration

SystemConnectionKind(*values)

Select the connection role in a systems specification.

SystemConnectionSpec class

SystemConnectionSpec(connection_id: str, name: str, kind: SystemConnectionKind, from_component_id: str, to_component_id: str, parameters: tuple[tuple[str, float], ...]) -> None

Declare directed component endpoints and connection parameters.

Selected methods.

from_mapping(raw: Mapping[str, object]) -> "'SystemConnectionSpec'"
to_mapping() -> dict[str, object]

SystemModelKind enumeration

SystemModelKind(*values)

Select the network model family in a systems specification.

SystemsProviderRegistry class

SystemsProviderRegistry() -> None

Register systems providers by stable public identifier.

Selected methods.

register(provider_id: str, factory: Callable[..., object], *, catalog_role: str = 'unclassified') -> None
catalog_role(provider_id: str) -> str
create(provider_id: str, **parameters: object) -> object
ids() -> tuple[str, ...]

ThermalCapacitance class

ThermalCapacitance(*, domain: object, model_id: str = <factory>, heat_capacity: float, conductance: float, ambient_temperature: float | None, heating: float | None = 0.0) -> None

Advance one temperature with thermal storage, ambient exchange and heating.

Declared fields. temperature (K, differential), ambient (K, input), power (W, input).

ThermalLink class

ThermalLink(link_id: str, from_node: str, to_node: str, conductance: float = 1.0, parameters: Mapping[str, object] = <factory>, heat_flow_law: Callable[[float, float, float, Mapping[str, object]], float] | None = None) -> None

Directed-neutral heat link with default Q=G(T_from-T_to) law.

ThermalNetworksConfiguration class

ThermalNetworksConfiguration(provider: str = 'systems.thermal_networks', mesh: str = 'core.lumped.thermal_network', discretization: str = 'thermal_rc_network', time_integration: str = 'classical_rk4', solver: str = 'nodal_energy_balance', parameters: Mapping[str, object] = <factory>) -> None

Select Core integration and declarative thermal network data.

Selected methods.

to_numerical_configuration() -> NumericalConfiguration

Translate to the shared Core numerical configuration.

ThermalNetworksProvider class

ThermalNetworksProvider(*, nodes: Iterable[ThermalNode], links: Iterable[ThermalLink] = (), final_time: float = 0.0, time_step: float = 0.001, time_integration: str = 'classical_rk4', **_: object) -> None

Advance extensible thermal networks with the shared Core time integrator.

Selected methods.

as_spatial_operator(*, method_id: str = 'spatial-method:ode.thermal_network') -> CallableSpatialOperator

Expose the lumped thermal network through the common Study.

execute(problem: object | None = None) -> ThermalNetworksResult

Integrate node energy balances and record link heat flows.

ThermalNetworksPublicApi class

ThermalNetworksPublicApi(*, provider_registry=None) -> None

Validate and execute thermal networks through the systems registry.

Selected methods.

validate(c: ThermalNetworksConfiguration) -> tuple[str, ...]
run(c: ThermalNetworksConfiguration)

Validate and execute selected thermal-network provider.

ThermalNetworksResult class

ThermalNetworksResult(state: ThermalNetworksState, times: np.ndarray, temperatures: Mapping[str, np.ndarray], heat_flows: Mapping[str, np.ndarray], energy_balance_residual: float) -> None

Temperature/heat-flow histories and nodal energy-balance residual.

Selected methods.

to_mapping() -> dict[str, object]

Return copied temperature, heat-flow, and residual data.

ThermalNetworksState class

ThermalNetworksState(temperatures: np.ndarray) -> None

Dynamic temperatures ordered by non-boundary thermal nodes.

ThermalNode class

ThermalNode(node_id: str, thermal_capacity: float = 1.0, initial_temperature: float = 300.0, heat_source: ScalarSource = 0.0, convection_conductance: float = 0.0, ambient_temperature: ScalarSource = 300.0, imposed_temperature: ScalarSource | None = None) -> None

Thermal storage node with C dT/dt=Q_ext+Q_links+h(T_inf-T).

WellMixedTank class

WellMixedTank(*, domain: object, model_id: str = <factory>, volume: float, flow_rate: float, feed_concentration: float | None, feed_temperature: float | None = 300.0, density: float = 1000.0, heat_capacity: float = 4180.0) -> None

Advance a process tank's homogeneous concentration and temperature with an incoming feed.

Declared fields. concentration (mol/m^3, differential), temperature (K, differential), feed (mol/m^3, input), feed_thermal (K, input).

ZeroDOneDModelsConfiguration class

ZeroDOneDModelsConfiguration(provider: str = 'systems.zero_d_one_d_models', mesh: str = 'core.coordinate_projection.1d_or_lumped.0d', discretization: str = 'state_or_finite_difference', time_integration: str = 'classical_rk4', solver: str = 'explicit_state_evolution', parameters: Mapping[str, object] = <factory>) -> None

Select shared Core integration and reduced-model parameters.

Selected methods.

to_numerical_configuration() -> NumericalConfiguration

Translate this API choice to the common numerical configuration.

ZeroDOneDModelsProvider class

ZeroDOneDModelsProvider(*, dimension: int, initial_state: float | np.ndarray, cell_count: int | None = None, diffusivity: float = 0.0, advection_velocity: float = 0.0, rhs: StateRhs | None = None, final_time: float = 0.0, time_step: float = 0.001, time_integration: str = 'classical_rk4', **_: object) -> None

Advance declarative ODE or advection–diffusion–source models.

Selected methods.

as_spatial_operator(*, method_id: str | None = None) -> CallableSpatialOperator

Expose the reduced ODE/1D transport model through common Study.

execute(problem: object | None = None) -> ZeroDOneDResult

Advance state through the selected shared Core time integrator.

ZeroDOneDModelsPublicApi class

ZeroDOneDModelsPublicApi(*, provider_registry=None) -> None

Validate and execute 0D/1D models through the systems registry.

Selected methods.

validate(c: ZeroDOneDModelsConfiguration) -> tuple[str, ...]
run(c: ZeroDOneDModelsConfiguration)

Validate and execute the selected reduced-model provider.

ZeroDOneDResult class

ZeroDOneDResult(state: ZeroDOneDState, times: np.ndarray, history: np.ndarray, coordinates: np.ndarray | None, equation_residual: float, dimension: int) -> None

State histories, coordinates and discrete equation residual.

Selected methods.

to_mapping() -> dict[str, object]

Return copied time history, final state and optional Core coordinates.

ZeroDOneDState class

ZeroDOneDState(values: np.ndarray) -> None

Finite model state; scalar 0D states are stored as a length-one vector.