{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.mosfet.switching_loss/1.0.0/input.json",
  "title": "MOSFET switching loss — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "Vds": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Drain-source voltage during the transition (V)."
    },
    "Id": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Switched current during the transition (A)."
    },
    "tr": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Effective rise/overlap time (s)."
    },
    "tf": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Effective fall/overlap time (s)."
    },
    "f_sw": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Switching frequency (Hz)."
    },
    "Qg": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Total gate charge (C). Requires Vdrive."
    },
    "Vdrive": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Gate-drive voltage (V). Requires Qg."
    }
  },
  "required": [
    "Vds",
    "Id",
    "tr",
    "tf",
    "f_sw"
  ],
  "description": "First-order hard-switching overlap loss P_sw = ½·Vds·Id·(tr+tf)·f_sw and optional gate-drive power Qg·Vdrive·f_sw. Not a full MOSFET loss stack. (calculation_version 1.0.0)"
}
