run_tier2_ac_study
Runs isolated unbalanced 3-phase OpenDSS AC power flow or exact N-0/N-1 contingency studies for LV/MV/TX grid connection screening, supporting snapshot and time-series cases with enforced timeouts.
Instructions
Run isolated child-process unbalanced 3-phase OpenDSS AC power flow (LV) or exact 2-bus N-0/N-1 AC contingency solve (MV/TX).
Study scope: study_type='snapshot' evaluates selected worst-case seasonal peak states (17 LV / 8 MV-TX states);
study_type='time_series' evaluates the chronological 30-min diurnal trajectory + seasonal peaks.
Does NOT run a synchronous 17,520/35,040-interval full-year telemetry simulation. Enforces a hard subprocess timeout.
By default, include_trajectory=False prunes the raw trajectory array to protect LLM context tokens and returns
trajectory_resource_uri (grid://verdicts/{fingerprint}/trajectory) for on-demand inspection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_type | No | rooftop_pv | |
| network_id | Yes | ||
| study_type | No | snapshot | |
| bess_power_kw | No | ||
| export_cap_kw | No | ||
| inverter_mode | No | as4777_volt_var_watt | |
| connection_node | No | ||
| include_trajectory | No | ||
| solver_timeout_sec | No | ||
| proposed_capacity_kw | Yes | ||
| operating_load_factor | No | ||
| feeder_background_scale | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| executed | Yes | ||
| timed_out | No | ||
| study_type | No | snapshot | |
| study_scope | No | snapshot (17 critical seasonal peak states; excludes full 17,520-interval annual telemetry) | |
| execution_ms | Yes | ||
| worst_season | Yes | ||
| solver_engine | Yes | ||
| min_voltage_pu | Yes | ||
| peak_voltage_pu | Yes | ||
| solver_failures | Yes | ||
| voltage_profile | No | ||
| worst_timestamp | Yes | ||
| intervals_solved | Yes | ||
| violations_count | Yes | ||
| thermal_compliant | Yes | ||
| as4777_q_saturated | No | ||
| max_line_loading_pct | Yes | ||
| bess_cliff_delta_v_pu | No | ||
| as4777_curtailment_pct | No | ||
| trajectory_resource_uri | No | Off-context MCP Resource URI (`grid://verdicts/{fingerprint}/trajectory`) referencing the full time-series/snapshot trajectory when omitted to save LLM tokens. | |
| transformer_loading_pct | Yes | ||
| statutory_voltage_compliant | Yes |