{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.power_factor/1.5.1/input.json",
  "title": "Power factor — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "single",
        "three-ll",
        "three-ln"
      ],
      "description": "single = 1φ; three-ll = balanced 3φ line-to-line; three-ln = balanced 3φ line-to-neutral"
    },
    "V": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "RMS volts; L-L or L-N per mode"
    },
    "I": {
      "type": "number",
      "minimum": 0,
      "description": "RMS current (A)"
    },
    "P_kW": {
      "type": "number",
      "minimum": 0,
      "description": "Real power in kilowatts"
    },
    "f": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Optional frequency (Hz) for UI capacitor estimate only — ignored by the calculation engine"
    }
  },
  "required": [
    "V",
    "I",
    "P_kW"
  ],
  "description": "Compute apparent power S, power factor λ, and reactive power Q from RMS V, I, and real power P for 1φ or balanced 3φ. (calculation_version 1.5.1)"
}
