{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-grid-pue-calc",
  "live_meta_url": "https://p2-grid-pue-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-grid-pue-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-grid-pue-calc.pages.dev/data/dc-hub-psychrometrics.json",
    "https://p2-grid-pue-calc.pages.dev/data/industrial-tariffs.json",
    "https://p2-grid-pue-calc.pages.dev/data/spot-and-carbon.json"
  ],
  "calculator_inputs_schema": {
    "dc_hub": {
      "label": "Target Metro / Grid Jurisdiction",
      "type": "select",
      "default": "FRANKFURT_DE"
    },
    "critical_it_load_kw": {
      "label": "Critical IT Nameplate / Contracted Load (kW)",
      "type": "number",
      "default": 2500,
      "min": 50,
      "max": 250000
    },
    "average_load_factor_pct": {
      "label": "Average IT Compute Utilization / Load Factor (%)",
      "type": "number",
      "default": 78,
      "min": 15,
      "max": 100
    },
    "rack_power_density_kw": {
      "label": "Average Rack Power Density (kW / rack — e.g. 8kW CPU vs 60–120kW H100/GB200)",
      "type": "number",
      "default": 45,
      "min": 4,
      "max": 150
    },
    "cooling_topology": {
      "label": "Thermal Cooling Architecture",
      "type": "select",
      "default": "INDIRECT_ADIABATIC_ECONOMIZER",
      "options": [
        "AIR_COOLED_CHILLER",
        "INDIRECT_ADIABATIC_ECONOMIZER",
        "DIRECT_TO_CHIP_LIQUID_75PCT",
        "SINGLE_PHASE_IMMERSION"
      ]
    },
    "ups_topology_efficiency_pct": {
      "label": "UPS + Transformer Electrical Path Efficiency (%)",
      "type": "number",
      "default": 95.5,
      "min": 88,
      "max": 99
    },
    "power_factor": {
      "label": "Facility Apparent Power Factor (cos phi)",
      "type": "number",
      "default": 0.94,
      "min": 0.8,
      "max": 1
    },
    "demand_charge_usd_per_kw_mo": {
      "label": "Utility / Colo Peak Demand Charge (USD / kVA-or-kW / mo)",
      "type": "number",
      "default": 14.5,
      "min": 0,
      "max": 45
    },
    "tariff_contract_mode": {
      "label": "Electricity Procurement Structure",
      "type": "select",
      "default": "RETAIL_BAND_TARIFF_I_TAX",
      "options": [
        "RETAIL_BAND_TARIFF_I_TAX",
        "WHOLESALE_SPOT_PLUS_GRID_ADDER",
        "CORPORATE_PPA_BLENDED"
      ]
    }
  },
  "formulas_summary": {
    "annual_it_mwh": "E_IT_MWh = (critical_it_load_kw * (average_load_factor_pct / 100) * 8760) / 1000 (automatically selects live Eurostat band: MWH500-1999 through MWH_GE150000)",
    "electrical_loss_factor": "L_elec = (100 / ups_topology_efficiency_pct) - 1 + 0.018 * (rack_power_density_kw / 50)^0.25",
    "thermodynamic_cooling_cop": "COP_eff(T_db, T_wb, topology) = piecewise physical curve over live Open-Meteo hourly (T_db, T_wb) vector: free-cooling economizer mode when T_wb <= T_supply - T_approach, hybrid adiabatic assist in transition band, mechanical DX/chiller compression above threshold; Direct-to-Chip captures 75% heat via warm-water loop (40C supply, COP ~14-22) + 25% rear-door/air",
    "dynamic_pue": "PUE_dyn = 1 + L_elec + mean_t( 1 / COP_eff(T_db[t], T_wb[t], topology) )",
    "wue_liters_per_kwh": "WUE = mean_t( Evap_Factor(topology) * max(0, T_db[t] - 18) * (1 - RH[t]/120) )",
    "total_facility_mwh": "E_Total_MWh = E_IT_MWh * PUE_dyn",
    "billed_peak_demand_kva": "Peak_Billed = (critical_it_load_kw * PUE_peak) * max(1.0, 0.95 / power_factor)",
    "non_recoverable_grid_levy_share": "Tax_Levy_EUR_MWh = (Rate_I_TAX - Rate_X_TAX) * 1000 from live Eurostat nrg_pc_205",
    "annual_power_tco_usd": "TCO_Power_USD = (E_Total_MWh * 1000 * Effective_Rate_USD_kWh) + (12 * Peak_Billed * demand_charge_usd_per_kw_mo)",
    "scope2_carbon_tonnes": "CO2_Scope2_t = (E_Total_MWh * Grid_Intensity_gCO2_kWh) / 1000"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-grid-pue-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "grid-pue-tariff-dataset",
      "product_id": "f12c168a-2ef7-4f32-9474-fdf16ece3559",
      "name": "Industrial Electricity Tariffs, Spot & Metro PUE Dataset",
      "price_usd": 39,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_jVAZf7Sr1EzuHfsOOXmnhU6lDhS5RQ2wKiyFy4Orbg3"
    },
    {
      "sku_key": "grid-pue-pro-license",
      "product_id": "78220fc9-f319-4ed3-863b-b5c63dfe8cc7",
      "name": "Pro Multi-Site DC Capacity, Liquid Cooling & API Key",
      "price_usd": 29,
      "billing": "monthly",
      "checkout_url": "https://buy.polar.sh/polar_cl_IKqJf8Z3b88glTXjZyHP5TDPgka4aW4ALs7AJ1LVhh3"
    },
    {
      "sku_key": "dc-site-selection-workbook",
      "product_id": "caf2e5df-691b-47ce-acaf-79632350e255",
      "name": "AI Infra & Colocation Site-Selection Power TCO Pack",
      "price_usd": 99,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_Bwl4mdtTILLsxwgQGcfzamTRBHJ29Pp0QIOR72a1Eif"
    }
  ],
  "master_all_portals_pass": {
    "master_all_portals_pro_monthly": {
      "product_id": "18e0b844-b764-41f0-9c3d-186362784997",
      "name": "All-Portals Master Pro API & Batch CSV License Key (Monthly)",
      "price_usd": 79,
      "billing": "monthly",
      "checkout_url": "https://buy.polar.sh/polar_cl_0P1axu2nXEDXECK8Z0k7I3sMndeo3hsdqpepv1LUcJT"
    },
    "enterprise_annual_data_pass": {
      "product_id": "8a5266eb-3aaf-4fb3-9aef-0e5bbfd17dc3",
      "name": "Annual Enterprise FinOps & Compliance Data Pass (All Portals)",
      "price_usd": 499,
      "billing": "yearly",
      "checkout_url": "https://buy.polar.sh/polar_cl_SPWfsAxuQAVHif3soxwqbq5zPAdNZFkN5CtQK3cZRft"
    }
  }
}