HV Substation (63-400 kV) Clearances & Grid Calculator
brain_calc_hv_substation_grid_complianceEvaluate 63-400 kV high-voltage substation physics: altitude air-density scaling, phase/ground clearances (Dm, Dp, Dms), insulator USCD creepage, ZnO arrester margins, U/f/Q grid-code envelopes, Biot-Savart busbar dynamics, two-layer soil mesh, toroidal CT conduits, and 48/125 Vdc auxiliaries. When to use: Use for 63-400 kV HV substation clearances, grid-code audits, busbar forces, and soil mesh design; do NOT use for MV delivery bays (<= 33 kV), earth-split rf / adiabatic straps / breaker TRV / lightning risk, or concrete foundations -- call brain_calc_mv_delivery_physics, brain_calc_earthing_lightning_trv, or brain_calc_civil_concrete_foundation instead. Behavior: Runs stateless, read-only SI audits across five modes with zero side effects; non-object payloads raise JSON-RPC -32602, while omitted arguments default to mode="insulation_and_clearances" at 225 kV AIS. Returns: mode, compliant, status, voltageTier, withstandLevelsKv, clearancesM, coronaAndPollution, compactAndArrester, alerts, warnings, calculationTrace, and legalNotice.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "brain_calc_hv_substation_grid_compliance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uPu | No | Normalized bus voltage in per-unit [0.5, 1.5]. | |
| lang | No | Response localization language code ("fr" for French or "en" for English, defaults to "fr"). | fr |
| mode | No | Substation engineering domain mode or full multi-section audit. | insulation_and_clearances |
| role | No | Alias for substation grid connection role ("GENERATION" or "CONSUMER"). | |
| sMva | No | Reference network base power S in MVA for short-circuit or VT burden. | |
| unKv | No | Nominal system line-to-line voltage Un in kV (e.g. 63, 90, 225, 400). | |
| ik1Ka | No | Single-phase-to-earth fault current Ik1 at the substation in kA. | |
| ik3Ka | No | Three-phase symmetrical short-circuit current Ik3 in kA. | |
| loadW | No | Standing DC auxiliary load power in watts (W). | |
| simMe | No | Simulated mean error ME metric for EMT model validation. | |
| spanM | No | Rigid tubular busbar support span length between post insulators in meters. | |
| tauMs | No | DC fault current decay time constant tau = L/R in milliseconds. | |
| tkSec | No | Short-circuit mechanical & adiabatic thermal fault duration tk in seconds. | |
| z0Ohm | No | Absolute zero-sequence source impedance Z0 in ohms. | |
| bf50Ms | No | Alias for 50BF breaker failure backup timing in ms. | |
| pMaxMw | No | Maximum active power capacity Pmax in MW (>= 0). | |
| simMae | No | Simulated mean absolute error MAE metric for EMT model validation. | |
| simMxe | No | Simulated maximum error MXE metric for EMT model validation. | |
| testMe | No | Measured field-test ME threshold for model acceptance. | |
| zTrOhm | No | Transformer positive-sequence impedance magnitude in ohms. | |
| pRaccMw | No | Subscribed grid connection active power Pracc in MW (>= 0). | |
| rfgType | No | Generator grid-code requirement class ("A", "B", "C", "D"). | |
| testMae | No | Measured field-test MAE threshold for model acceptance. | |
| testMxe | No | Measured field-test MXE threshold for model acceptance. | |
| vtClass | No | Metering/protection voltage transformer accuracy class (e.g. "0.2", "3P"). | |
| zHTROhm | No | Zero-sequence upstream transformer grounding reactance in ohms. | |
| zone1Ms | No | Distance relay Zone 1 instantaneous trip time in ms. | |
| zone2Ms | No | Distance relay Zone 2 backup trip time in ms. | |
| zone3Ms | No | Distance relay Zone 3 remote backup trip time in ms. | |
| bayCount | No | Number of connected HV switchgear bays (integer >= 1). | |
| category | No | Plant connection power category or regulatory tier code. | |
| ik3MaxKa | No | Maximum three-phase short-circuit current Ik3_max in kA. | |
| presetId | No | Optional reference HV substation preset identifier pre-filling geometry and grid parameters. | |
| rodCount | No | Total count of driven vertical ground rods connected to mesh. | |
| siteRole | No | Grid connection role ("GENERATION", "INDUSTRIAL_CONSUMER", "STORAGE"). | |
| tubeOdMm | No | Rigid aluminum busbar tube outer diameter in mm. | |
| z0OverZ1 | No | System effective earthing zero-to-positive impedance ratio Z0/Z1. | |
| zMaltOhm | No | Combined substation earthing grid impedance magnitude in ohms. | |
| altitudeM | No | Substation elevation above sea level in meters [0, 4500] for air-density correction. | |
| busScheme | No | Busbar topology configuration (e.g. "SINGLE_BUS", "DOUBLE_BUS", "BREAKER_AND_HALF"). | |
| coreDiaCm | No | Insulator core shank diameter in cm for creepage profile factor. | |
| dcSystemV | No | Alias for DC auxiliary voltage bus rating in V (e.g. 48, 110, 125). | |
| seasonKey | No | Ambient thermal season profile ("WINTER", "INTERMEDIATE", "SUMMER"). | |
| starRaysN | No | Number of counterpoise star-ray arms when star geometry is selected. | |
| voltageKv | No | Alias for nominal HV busbar voltage in kV (>= 1). | |
| vtDropPct | No | Measured VT secondary voltage loop drop percentage (%). | |
| gridAreaM2 | No | Total buried earthing grid footprint area in m2. | |
| gridWidthM | No | Earthing mesh rectangular width in meters. | |
| peakSurgeA | No | Simultaneous breaker trip/close solenoid peak surge current in amperes. | |
| reservePct | No | Battery capacity aging & temperature design reserve margin in %. | |
| rodLengthM | No | Vertical earthing rod electrode length in meters. | |
| rodRadiusM | No | Vertical earthing rod equivalent radius in meters. | |
| shedDia1Cm | No | Major insulator weather shed diameter in cm. | |
| shedDia2Cm | No | Minor alternating insulator shed diameter in cm. | |
| technology | No | Substation switchgear technology ("AIS" air-insulated or "GIS" gas-insulated). | |
| tubeWallMm | No | Rigid aluminum busbar tube wall thickness in mm. | |
| auxVoltageV | No | Auxiliary DC control battery bank nominal voltage in V (e.g. 48 or 125 Vdc). | |
| batteryTech | No | Auxiliary battery chemistry ("LEAD_VRLA", "NICD", "LFP"). | |
| climateZone | No | Wind/ice mechanical loading climate zone code. | |
| commDelayMs | No | Teleprotection communication channel one-way latency in ms. | |
| conductorId | No | Busbar or overhead phase conductor profile identifier. | |
| deepRhoOhmM | No | Deep soil stratum resistivity rho2 in ohm*m. | |
| frequencyHz | No | Grid frequency at PCC in Hz [45, 55] (nominal 50.0 Hz). | |
| gridLengthM | No | Earthing mesh rectangular length in meters. | |
| providedDmM | No | Design phase-to-earth air clearance Dm in meters. | |
| providedDpM | No | Design phase-to-phase air clearance Dp in meters. | |
| qAbsorbMvar | No | Under-excited reactive power absorption capability in Mvar. | |
| qInjectMvar | No | Over-excited reactive power injection capability in Mvar. | |
| rhoDeepOhmM | No | Alias for deep soil stratum resistivity rho2 in ohm*m. | |
| rodSpacingM | No | Minimum spacing between adjacent vertical ground rods in meters. | |
| soilRhoOhmM | No | Equivalent uniform surface soil resistivity rho in ohm*m. | |
| starRayLenM | No | Length per counterpoise star-ray arm in meters. | |
| zone5DipPct | No | Low-voltage ride-through deep dip threshold (% residual U). | |
| ambientTempC | No | Design ambient outdoor air temperature in deg C. | |
| burialDepthM | No | Alias for earthing grid burial depth h in meters. | |
| buriedDepthM | No | Earthing grid burial depth h in meters. | |
| gravelThickM | No | Crushed surface insulating gravel layer thickness in meters. | |
| hasEarthWire | No | True when overhead shield wires protect HV substation spans. | |
| meshSpacingM | No | Buried earthing grid mesh conductor spacing D in meters. | |
| pOperatingMw | No | Measured steady-state active power at PCC in MW. | |
| phasorFormat | No | Phasor telemetry frame representation ("POLAR", "RECTANGULAR"). | |
| providedDmsM | No | Design safety working air clearance Dms in meters. | |
| rhoUpperOhmM | No | Two-layer upper surface soil layer resistivity rho1 in ohm*m. | |
| uOperatingKv | No | Actual steady-state operating voltage at PCC in kV. | |
| xfmrPowerMva | No | Main HV/MV power transformer rated apparent power in MVA. | |
| autonomyHours | No | Required backup battery autonomy duration in hours. | |
| breaker50BfMs | No | Breaker-failure backup clearing time in ms. | |
| conductorMmMm | No | Legacy alias for conductor outer diameter in mm. | |
| fenceSetbackM | No | Perimeter security fence setback distance from live HV parts in meters. | |
| generatorTech | No | Primary generation unit type ("SYNCHRONOUS", "IBR", "HYBRID"). | |
| gravelRhoOhmM | No | Crushed surface gravel wet resistivity in ohm*m. | |
| hasRemoteShed | No | True when remote utility load/generation shedding teleprotection is active. | |
| lineFeedCount | No | Number of connected overhead lines sharing earth return paths. | |
| phaseSpacingM | No | Center-to-center busbar phase spacing in meters. | |
| rocofHzPerSec | No | Rate of change of frequency ROCOF withstand in Hz/s. | |
| cableLoopDropV | No | DC battery distribution cable loop voltage drop in V. | |
| connectionType | No | Earthing conductor joint class ("EXOTHERMIC", "COMPRESSION", "BOLTED"). | |
| faultDurationS | No | Step/touch voltage fault clearing duration in seconds. | |
| hasCompiledDll | No | True when black-box vendor EMT simulation model DLL is supplied. | |
| igEarthFaultKa | No | Grid-injected earth fault current Ig (post split factor) in kA. | |
| overloadWindow | No | Thermal overload window duration tag (e.g. "15min", "20min"). | |
| pollutionClass | No | Site environmental pollution severity ("LIGHT", "MEDIUM", "HEAVY", "VERY_HEAVY"). | |
| qOperatingMvar | No | Actual reactive power exchange at PCC in Mvar (+ inject, - absorb). | |
| tanPhiMeasured | No | Measured reactive-to-active power ratio Q/P at PCC. | |
| faultClearingMs | No | Total primary protection + breaker fault clearing time in ms. | |
| gisCableLengthM | No | Enclosed GIS solid-dielectric cable run length in meters. | |
| zone5DurationMs | No | Low-voltage ride-through hold duration in ms. | |
| commDelayModeled | No | True if communication latency is explicitly included in EMT study. | |
| conductorHeightM | No | Height of live HV busbars above ground level in meters. | |
| earthingGeometry | No | Earthing electrode layout ("MESH", "ROD_BANK", "STAR"). | |
| highKeraunicZone | No | True for sites located in high lightning flash density zones. | |
| meshConductorMm2 | No | Buried copper earthing grid conductor cross-section in mm2. | |
| nominalVoltageKv | No | Secondary alias for nominal system voltage Un in kV (>= 1). | |
| overheadZLineOhm | No | Zero-sequence overhead earth-wire impedance per circuit in ohms. | |
| overloadCurrentA | No | Emergency short-term overload busbar current in amperes. | |
| protectionScheme | No | Busbar thermal/fault clearance scheme identifier. | |
| arresterDistanceM | No | Alias for electrical separation distance from surge arrester in meters. | |
| isPowerElectronic | No | True if connected via power-electronic inverter interface (IBR/HVDC). | |
| operatingCurrentA | No | Normal continuous busbar operating current in amperes. | |
| permanentCurrentA | No | Continuous standing DC control load current in amperes. | |
| gisBlindBusLengthM | No | Enclosed GIS shielded busduct segment length in meters. | |
| insulatorMeanDiaCm | No | Mean porcelain/composite post insulator diameter in cm. | |
| providedCreepageMm | No | Installed insulator surface creepage distance in mm. | |
| conductorDiameterMm | No | Tubular or stranded HV conductor outer diameter in mm. | |
| hasGenerationGe12Mw | No | True for sites embedding local generation >= 12 MW. | |
| hasZeroSeqNeutralTr | No | True when step-up/interconnecting transformer provides zero-sequence neutral path. | |
| insulatorDiameterMm | No | Insulator core/mean diameter in mm. | |
| guardWireReductionKr | No | Overhead earth-wire current return reduction factor kr in [0, 1]. | |
| isCriticalSubstation | No | True for critical grid node with stricter breaker failure budget. | |
| distanceFromArresterM | No | Electrical separation distance from ZnO surge arrester to protected winding in meters. | |
| reducedInsulationXfmr | No | True if the power transformer specifies graded/reduced neutral-end insulation. | |
| steelTubeAroundTcTore | No | True if a ferromagnetic steel sleeve passes through the toroidal zero-sequence CT. | |
| applyVoltageEquivalence | No | True to apply equivalent GIS-to-AIS insulation reduction factors where valid. | |
| hasSpecificDielectricStudy | No | True when transient switching/lightning simulation supports reduced margin. | |
| transformerCableInToroidalCt | No | Boolean flag or conduit material tag ("steel_s235" vs "fibro_100") around toroidal CT. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Executed HV substation calculation mode. | |
| alerts | No | Blocking engineering alerts requiring design change. | |
| status | No | Human-readable verdict status string. | |
| warnings | No | Advisory non-blocking engineering observations. | |
| compliant | No | Overall physical compliance verdict for requested HV domain(s). | |
| clearancesM | No | Computed minimum phase-to-earth Dm, phase-to-phase Dp, and safety clearances in m. | |
| legalNotice | No | Informational engineering compliance notice confirming SI physical scope and intellectual property rules. | |
| voltageTier | No | Resolved system voltage tier, Um ceiling, and technology class. | |
| calculationTrace | No | Transparent audit trail detailing inputs, injected defaults, formulas, constants, principles, and assumptions. | |
| withstandLevelsKv | No | Altitude-adjusted LIWL, SIWL, and short-duration AC withstand levels in kV. | |
| altitudeCorrection | No | Altitude air-density dielectric and linear air-clearance scaling factors. | |
| compactAndArrester | No | ZnO surge arrester protective distance margin and BIL reduction checks. | |
| coronaAndPollution | No | Surface gradient corona inception and insulator USCD creepage margin. |