bloc.simulation_builder#

YAML-driven network builder exposing a simple sim.solve() API.

Bridges Bloc and Boulder to construct and solve Cantera reactor networks directly from STONE YAML files. Supports Boulder’s Dual converter pipeline and gracefully falls back to the standard converter when a feature is not yet supported by the Dual pipeline (e.g., Walls for energy transfer).

Public API#

>>> from bloc.simulation_builder import build_simulation_from_yaml
>>> sim = build_simulation_from_yaml("sandbox/from_boulder/design_torch_psr_pfr.yaml")
>>> net, results = sim.solve()

Classes#

Simulation

Thin wrapper around a Cantera network built from STONE YAML.

Functions#

build_simulation_from_yaml(yaml_path)

Build a Simulation from STONE YAML.

Module Contents#

class bloc.simulation_builder.Simulation(config, network, results)#

Thin wrapper around a Cantera network built from STONE YAML.

Provides a minimal, stable API for downstream scripts and notebooks.

config#
network#
results#
solve()#

Return the network and results captured during build.

property reactors#

Convenience accessor to underlying Reactor list.

bloc.simulation_builder.build_simulation_from_yaml(yaml_path)#

Build a Simulation from STONE YAML.

Parameters:

yaml_path – Path to a STONE-standard YAML config defining components and connections.