Tools: Simulation¶
Simulation tools.
build_simulation_report()
¶
Build the full tabular report from the simulation SQL output.
Source code in src/idfkit_mcp/tools/simulation.py
export_timeseries(variable_name, key_value='*', frequency=None, environment=None, output_path=None)
¶
Export time series to CSV.
Source code in src/idfkit_mcp/tools/simulation.py
get_results_summary()
¶
Build results summary with QA diagnostics from the last simulation.
This function powers the idfkit://simulation/results resource — the primary
feedback signal for the agent QA loop.
Source code in src/idfkit_mcp/tools/simulation.py
list_output_variables(search=None, limit=50)
¶
List output variables and meters from last simulation.
Source code in src/idfkit_mcp/tools/simulation.py
list_simulation_reports()
¶
List all tabular report names available in the last simulation's SQL output.
Use the returned names with query_simulation_table to retrieve specific tables.
Preconditions: simulation completed with SQL output available. Side effects: none — read-only.
Source code in src/idfkit_mcp/tools/simulation.py
query_simulation_table(report_name, table_name=None, row_name=None, column_name=None)
¶
Query tabular report data from the last simulation's SQL output.
Use this for deeper analysis beyond the structured diagnostics in
idfkit://simulation/results. Tabular data covers every EnergyPlus
summary report: energy use, envelope, HVAC sizing, comfort, and more.
Omit table_name to retrieve all tables within a report at once.
To discover available report names call list_simulation_reports first.
Common report names:
- AnnualBuildingUtilityPerformanceSummary — site/source energy, end uses, EUI
- SystemSummary — unmet hours, HVAC sizing
- EnvelopeSummary — U-values, areas, orientations
- EquipmentSummary — HVAC component sizing
- ZoneComponentLoadSummary — peak heating/cooling loads by zone
- LightingSummary — lighting power density
Preconditions: simulation completed with SQL output available (sql_available: true
in idfkit://simulation/results).
Side effects: none — read-only.
Source code in src/idfkit_mcp/tools/simulation.py
query_timeseries(variable_name, key_value='*', frequency=None, environment=None, limit=24)
¶
Query time series data from simulation SQL output.
Source code in src/idfkit_mcp/tools/simulation.py
report_viewer_html()
¶
Return the self-contained report viewer HTML.
Source code in src/idfkit_mcp/tools/simulation.py
run_simulation(weather_file=None, design_day=False, annual=False, energyplus_dir=None, energyplus_version=None, output_directory=None, ctx=None)
async
¶
Execute EnergyPlus on the loaded model — the authoritative runtime validation gate.
Fatal or severe errors mean the model did not simulate correctly. A clean exit does
not guarantee physically reasonable results. After this call, read the resource
idfkit://simulation/results for full QA diagnostics: unmet hours by zone,
end-use energy breakdown, classified warnings, and QA flags that drive the fix loop.
Preconditions: model loaded; weather file set via download_weather_file, or design_day=True. Side effects: writes outputs to output_directory; updates session simulation result. Next step: read idfkit://simulation/results to assess result quality.
Source code in src/idfkit_mcp/tools/simulation.py
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 | |
view_simulation_report()
¶
Browse the full EnergyPlus tabular report in an interactive viewer.
Returns all tabular data from the simulation SQL output organized by report, section, and table. The companion viewer provides a searchable, browsable interface with a table-of-contents sidebar.
Requires a completed simulation with SQL output.