tud_lbm.io.save

Input/Output handler for simulation management and logging.

Classes

SimulationIO

Handles all I/O operations for the simulation, including logging and saving results.

Module Contents

class tud_lbm.io.save.SimulationIO(base_dir: str = 'results', config: tud_lbm.config.simulation_config.SimulationConfig | None = None, simulation_name: str | None = None, output_format: str = 'numpy', config_file_type: str = '.toml')[source]

Handles all I/O operations for the simulation, including logging and saving results.

base_dir = ''[source]
simulation_name = None[source]
config_file_type = '.toml'[source]
run_dir = ''[source]
data_dir = ''[source]
save_data_step[source]
save_config(config: tud_lbm.config.simulation_config.SimulationConfig) None[source]

Save the simulation configuration to the run directory.

Accepts a SimulationConfig. Uses get_adapter() to dispatch to the correct adapter based on config_file_type.

Parameters:

config – A configuration dict or SimulationConfig object.