58 void buildBusesFromJSON(
const JSON& simJSON,
Network& network)
const;
65 void connectElementsToBuses(
const JSON& simJSON,
Network& network)
const;
78 JSON simulationConfig_;
Base class for multi-phase network elements with Y-parameters and MNA stamping hooks.
Definition Element.h:29
Root network model holding buses, elements, and AC/DC grid hierarchy.
Definition network.h:36
Orchestrates JSON validation, network assembly, and post-build computations.
Definition simulation_builder.h:20
void runComputations(const JSON &simJSON, Network &network, bool plottingEnabled=true) const
Run analyses selected in the simulation JSON (OPF, stability, etc.).
Definition simulation_builder.cpp:138
SimulationBuilder()=default
const JSON & getSimulationConfig() const
Return the parsed simulation configuration object.
Definition simulation_builder.h:46
void buildFromJSON(const JSON &simJSON, Network &network)
Populate network from a full simulation JSON document.
Definition simulation_builder.cpp:16
int runComputationsWithStatus(const JSON &simJSON, Network &network, bool plottingEnabled=true) const
Definition simulation_builder.cpp:147
void validateJSON(const JSON &simJSON) const
Validate required top-level JSON sections and unique IDs.
Definition simulation_builder.cpp:50
~SimulationBuilder()=default
Factory for constructing Element objects from JSON component entries.
nlohmann::json JSON
Definition component_builder.h:6
Frequency sweep specification parsed from JSON.
Definition simulation_builder.h:11
double start
Start frequency (Hz).
Definition simulation_builder.h:12
int points
Number of logarithmic sweep points.
Definition simulation_builder.h:14
double end
End frequency (Hz).
Definition simulation_builder.h:13