pySimBlocks.core.config¶
- class pySimBlocks.core.config.SimulationConfig(dt: float, T: float, t0: float = 0.0, solver: str = 'fixed', logging: List[str] = <factory>, clock: str = 'internal')[source]¶
Bases:
objectSimulation execution configuration.
Contains only execution-related parameters. Must not hold any model or block-specific information.
- dt: float¶
Simulation time step in seconds.
- T: float¶
Simulation end time in seconds.
- t0: float = 0.0¶
Simulation start time in seconds.
- solver: str = 'fixed'¶
Integration scheme, either
"fixed"or"variable".
- logging: List[str]¶
Signals to log during simulation.
- clock: str = 'internal'¶
Clock source, either
"internal"or"external".
- class pySimBlocks.core.config.PlotConfig(plots: List[Dict[str, Any]])[source]¶
Bases:
objectPlot configuration.
Describes how logged signals should be visualized. Contains no plotting logic.
- plots: List[Dict[str, Any]]¶
List of plot descriptors. Each descriptor is a dict with at least a
"signals"field, which is a list of signal names to plot together