Power systems

From Tibsfox/gsd-skill-creator · View interactive version

Power systems is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Electrical power distribution design for infrastructure: load calculations (NEC 220), conductor sizing (NEC 310.16), transformer/UPS/PDU selection, redundancy architectures (N through 2N+1), DC distribution, and voltage classes 120V-480V. Activates for electrical load calculations, conductor sizing,

How to use this skill

Skill file

Power Systems Skill

At a Glance

Design and validate electrical power distribution systems from utility service entrance through rack-level PDUs, covering all voltage classes from 120V single-phase through 480V three-phase.

Activates on: InfrastructureRequest type='power', any load calculation, conductor sizing, transformer/UPS/PDU selection, redundancy architecture design.

Key capabilities:

Code references: NEC 220 for load calculations, NEC 310 for conductors, NEC 230 for services — always reference the current locally adopted edition of NFPA 70.

ENGINEERING DISCLAIMER: Electrical system design must be verified by a licensed Professional Engineer or licensed Electrician before installation. Arc flash analysis, fault current calculations, and equipment grounding require site-specific engineering. All work must comply with the locally adopted edition of NFPA 70 (NEC) and applicable OSHA standards. User assumes all responsibility for verification.

Quick routing:

Electrical Load Calculation

Connected Load Method (NEC 220 General)

Process: sum all equipment nameplate ratings, apply NEC demand factors, add 25% future growth margin.

NEC demand factors reduce calculated load to account for the fact that not all loads operate simultaneously:

Lighting — NEC Table 220.42:

Receptacles — multi-outlet circuits (>10 kVA):

Motors — NEC 430.24:

Data center calculation (industry practice):

  1. IT load = rack_count x avg_rack_density_kW x diversity_factor (0.7-0.9)
  2. UPS losses: 3-8% of IT load (online double-conversion)
  3. PDU losses: <2% of IT load
  4. Cooling: 15-40% of IT load (depending on target PUE)
  5. Lighting and miscellaneous: 3-5% of IT load
  6. Total calculated load = sum of all above
  7. Design service = total x 1.25 (NEC 230.42 minimum service sizing)

Optional Method (NEC 220.87)

Use for existing facilities with 12+ months of metering data:

Worked Example: 100-Rack Data Center

| Load Component | Calculation | kW |

|----------------|-------------|-----|

| IT load | 100 racks x 10 kW x 0.8 diversity | 800 |

| UPS losses | 800 kW x 5% | 40 |

| PDU losses | 800 kW x 1.5% | 12 |

| Cooling (PUE 1.4) | 800 kW x 32% | 256 |

| Lighting + misc | 800 kW x 3% | 24 |

| Subtotal | | 1,132 |

| Design service (x 1.25) | | 1,415 |

This facility needs approximately 1,415 kW (1,770 kVA at 0.8 PF) service entrance capacity. PUE contribution is the dominant non-IT factor — reducing PUE from 1.4 to 1.2 saves ~160 kW of service capacity.

For full NEC 220 demand factor tables and calculation worksheets: @references/nec-load-calculations.md

Conductor Sizing

Ampacity Tables (NEC Table 310.16)

NEC Table 310.16 provides ampacity for copper conductors in raceway at ambient 30 deg C. The 75 deg C column is standard for most commercial and industrial installations:

| Wire Size | 75 deg C Ampacity | Common Use |

|-----------|-------------------|------------|

| 12 AWG | 25A | Branch circuits to 20A breaker |

| 10 AWG | 35A | 30A circuits |

| 8 AWG | 50A | 40A circuits |

| 6 AWG | 65A | 50A circuits |

| 4 AWG | 85A | 60-70A circuits |

| 2 AWG | 115A | 90A circuits |

| 1/0 AWG | 150A | 125A subfeed |

| 4/0 AWG | 230A | 200A service/feeder |

| 500 kcmil | 380A | 350A feeder |

Full table including aluminum conductors and all three temperature ratings: @references/conductor-sizing.md

Correction Factors

Ambient temperature correction (NEC Table 310.15(B)(1)):

Conduit fill correction (NEC 310.15(C)):

Correction factors are multiplicative — apply both when both conditions exist. Example: 8 AWG copper at 40 deg C with 6 conductors in conduit: 50A x 0.87 x 0.80 = 34.8A derated ampacity.

Voltage Drop Verification

Formulas:

Limits (NEC informational notes):

Conductors sized for voltage drop are often larger than the ampacity requirement — always use the larger conductor.

Transformer Sizing

kVA Calculation

K-Factor for Non-Linear Loads

K-factor quantifies the harmonic heating effect: K = sum(Ih^2 x h^2) / sum(Ih^2), where Ih = harmonic current magnitude at harmonic order h.

| K-Rating | Load Type | Application |

|----------|-----------|-------------|

| K-1 | Linear resistive loads | Heating, incandescent lighting |

| K-13 | Modern UPS, switch-mode PSUs | Data centers, server rooms |

| K-20 | Variable frequency drives, arc furnaces | Heavy industrial |

A standard K-1 transformer feeding K-13 loads must be derated to approximately 50% of nameplate kVA. Solution: specify a K-13 or K-20 rated transformer at full nameplate — same physical size, designed for harmonic currents.

Impedance

Efficiency

NEMA Premium (TP-1) transformers: 98.3% efficiency at 35% loading (peak efficiency point). At full load: ~97.5%. Total losses at 80% loading for 1000 kVA unit: approximately 20 kW heat rejection to electrical room — must be included in HVAC calculations.

UPS Systems

Online Double-Conversion

Path: Utility AC -> Rectifier -> DC Bus -> Inverter -> Load AC

Runtime Calculation

Formula: Runtime_min = (Battery_Ah x V_dc x inverter_efficiency) / Load_W x 60

Example: 200 Ah VRLA battery bank at 480V DC bus, 95% inverter efficiency, 60 kW load:

Runtime = (200 x 480 x 0.95) / 60,000 x 60 = 91.2 minutes

Battery types:

Sizing Rule

UPS kVA = IT load kW x 1.25 / power_factor

Redundancy Configurations

PDU Selection

Floor-Standing PDU

Rack PDU

Connects floor-standing PDU output to server rack outlets via whip cables:

| Whip Type | Voltage | Ampacity | Max Load |

|-----------|---------|----------|----------|

| L6-20 | 208V | 20A | 3.5 kW |

| L6-30 | 208V | 30A | 6.2 kW |

| L6-50 | 208V | 50A | 10.4 kW |

| L6-60 | 208V | 60A | 12.5 kW |

Intelligent rack PDU features: per-outlet monitoring (amps, watts, kWh), remote outlet switching, outlet grouping for managed power cycling, environmental monitoring (temperature and humidity sensors built in).

Phase Balance

Load must be balanced across A, B, C phases within +/- 10% deviation. Unbalanced phases cause neutral current in three-phase systems, increased losses, and potential nuisance tripping. Check with PDU metering; redistribute circuits as needed during commissioning and periodically during operation.

Redundancy Architectures

N — No Redundancy

[Utility] --> [Transformer] --> [UPS] --> [PDU] --> [Rack Load]

Any single component failure = full outage

Use case: Development environments, non-critical applications, cost-constrained small offices.

N+1 — One Spare Module

[UPS Module 1] --+
[UPS Module 2] --+-- [Static Bypass] --> [PDU] --> [Load]
[UPS Module 3] --+   (N=2 required, 1 spare)

One UPS module can fail; remaining two sustain full load. Maintenance: one module can be serviced without outage if remaining capacity is sufficient.

Use case: SMB data centers, Uptime Institute Tier II.

2N — Dual Path

Path A: [Utility A] --> [Xfmr A] --> [UPS A] --> [PDU A] --+
                                                             +-- [Dual-Corded Server]
Path B: [Utility B] --> [Xfmr B] --> [UPS B] --> [PDU B] --+

Each path independently sustains full load.

Requires servers with dual power supplies (standard for data center servers). Each PSU connects to a different path. Either path can sustain full load if the other fails completely.

Use case: Enterprise data centers, Uptime Institute Tier III-IV.

2N+1 — Maximum Redundancy

Path A: [UPS A1 + UPS A2 (N+1)] --> [PDU A] --+
                                                +-- [Dual-Corded Server]
Path B: [UPS B1 + UPS B2 (N+1)] --> [PDU B] --+

Each path is N+1 internally; one entire path can fail
with the other sustaining N+1 redundancy.

Maximum protection: tolerates simultaneous UPS module failure and complete path failure. One path can be taken fully offline for maintenance while the other remains N+1 redundant.

Use case: Mission-critical facilities, Uptime Institute Tier IV, financial trading, healthcare.

For transfer switch types, automatic source transfer, and generator integration: @references/redundancy-architectures.md

Voltage Classes and DC Distribution

Supported Voltage Classes

| Class | Configuration | Typical Use |

|-------|--------------|-------------|

| 120V | Single-phase (L-N of 120/240V) | Residential receptacles, small office |

| 208V | Three-phase (L-L of 120/208V Y) | Data center rack PDUs, small commercial |

| 240V | Single-phase (L-L of 120/240V split) | Residential HVAC, large appliances |

| 277V | Single-phase (L-N of 480V Y) | Commercial/industrial lighting |

| 400V | Three-phase (European 230/400V) | EU data centers, IEC standard equipment |

| 480V | Three-phase (Y) | US data center primary distribution, large motors, switchgear |

InfrastructureRequest.constraints.voltageClass maps to these six values.

DC Distribution Patterns

Safety Boundaries

Electrical Hazard Thresholds by Safety Class

| Hazard | Residential | Commercial | Data Center | Industrial |

|--------|------------|-----------|-------------|-----------|

| Max voltage (unqualified) | 50V AC | 50V AC | 50V AC | 50V AC |

| Arc flash boundary | Not calculated | Per IEEE 1584 | Per IEEE 1584 | Per IEEE 1584 |

| GFCI required | 125V 15/20A per NEC 210.8 | 125V 15/20A wet locations | 125V 15/20A near CDU/water | All 125V near water |

| GFP required | No | >1000A services | All UPS >1000A output | All services >1000A |

| BESS protection | NFPA 855 | NFPA 855 | NFPA 855 + FM Global | NFPA 855 + suppression |

Arc flash hazard increases with available fault current. Data center 480V buses with low-impedance transformers can produce very high incident energy — PPE Category 2-4 (8-40 cal/cm^2) is common. Labels per NEC 110.16 required on all equipment likely to be serviced while energized.

Safety warden triggers:

Solar PV Sizing

Array Sizing

Formula: kWp = Annual_kWh_demand / (Peak_Sun_Hours_per_day x 365 x System_Efficiency)

System efficiency: 75-85% total (panels ~95% x inverter ~97% x wiring ~98% x soiling/temperature ~90%)

Peak Sun Hours (PSH) by US Region:

| Location | PSH (hrs/day) | Notes |

|----------|--------------|-------|

| Phoenix AZ | 5.5-6.5 | Best US solar resource |

| Denver CO | 5.0-5.5 | High altitude benefit |

| Miami FL | 5.0-5.5 | Year-round production |

| New York NY | 4.0-4.5 | Significant seasonal variation |

| Seattle WA | 3.5-4.0 | Cloud cover factor |

| Chicago IL | 4.0-4.5 | Snow loss in winter |

Worked example: 500,000 kWh/yr facility in Phoenix, 80% system efficiency:

kWp = 500,000 / (6.0 x 365 x 0.80) = 285 kWp array required

Inverter Sizing

Rationale: panels rarely operate at STC; slight DC oversizing improves economic yield without excessive clipping losses

NEC 690 Key Requirements

For string sizing calculations, shading analysis, performance ratio, and utility interconnect (IEEE 1547): @references/solar-pv-sizing.md

Battery Energy Storage

Capacity Sizing

Formula: Capacity_kWh = (Load_kW x Runtime_hours) / (DoD x Round_trip_efficiency)

Chemistry defaults:

Worked example: 100 kW critical load, 2 hours runtime, LFP chemistry:

Capacity = (100 x 2) / (0.85 x 0.94) = 250 kWh usable storage required

Chemistry Selection

| Chemistry | Energy Density | Cycle Life | Safety | Best Use |

|-----------|---------------|-----------|--------|----------|

| LFP (LiFePO4) | ~150 Wh/kg | 3,000-6,000 | Safest lithium | Long-duration backup, daily cycling |

| NMC (Li-NiMnCo) | ~250 Wh/kg | 1,500-3,000 | Moderate risk | Space-constrained, high power density |

| VRLA (Lead-acid) | ~30 Wh/kg | 200-500 | No thermal runaway | Low-cost short-duration UPS |

| Lead-carbon | ~40 Wh/kg | 1,000-2,000 | No thermal runaway | Partial state-of-charge applications |

| Vanadium flow | ~20 Wh/L | Unlimited | Very safe | Long-duration (4-12 hr), utility scale |

NFPA 855 Compliance (Summary)

Peak Shaving vs Backup

For full chemistry comparison, NFPA 855 detailed requirements, BMS specifications, and thermal management: @references/bess-selection.md

DC Distribution Patterns

380-400V DC Bus

48V DC (Telecom/Blade)

12V On-Board

Safety for DC Systems

For 380V DC architecture details, protection device selection, efficiency analysis, and conversion chain comparison: @references/dc-distribution.md

Reference Documents

| Reference | When to Read | Coverage |

|-----------|-------------|----------|

| @references/nec-load-calculations.md | Full NEC 220 demand factor tables | Complete load calculation methodology |

| @references/conductor-sizing.md | Full NEC 310.16 ampacity table, correction factors | Complete conductor selection |

| @references/redundancy-architectures.md | Transfer switches, generator integration, Tier correlation | Redundancy topology design |

| @references/solar-pv-sizing.md | NEC 690 provisions, string sizing, shading analysis | Solar PV engineering |

| @references/bess-selection.md | Chemistry comparison, NFPA 855, BMS specs | Battery storage engineering |

| @references/dc-distribution.md | 380V DC architecture, protection, efficiency | DC distribution design |


Power Systems Skill v1.0.0 — Physical Infrastructure Engineering Pack

Phase 436-01/02 | References: NFPA 70 (NEC 2023), NEC 690, NFPA 855, IEEE 1584, BICSI 002

All outputs require verification by a licensed Professional Engineer and licensed Electrician.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.