{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.mosfet.total_loss/1.1.2/output.json",
  "title": "MOSFET total loss — success output",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "status",
    "capability_id",
    "engine",
    "inputs",
    "result",
    "result_detail",
    "calculation_version",
    "verification"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Requested tool id"
    },
    "status": {
      "const": "success"
    },
    "capability_id": {
      "const": "electrical.mosfet.total_loss"
    },
    "tool": {
      "type": "string",
      "description": "Requested tool id"
    },
    "engine": {
      "type": "string"
    },
    "inputs": {
      "type": "object",
      "description": "Normalized calculation inputs (aliases resolved)"
    },
    "result": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "P_total_W",
        "P_device_W",
        "P_cond_W",
        "P_sw_W",
        "P_gate_W",
        "P_coss_W",
        "P_rr_W",
        "I",
        "Rds",
        "Vds",
        "Id",
        "f_sw",
        "current_basis",
        "coss_model",
        "terms_applied",
        "terms_omitted",
        "terms_in_device",
        "dominant_included"
      ],
      "properties": {
        "P_total_W": {
          "type": "number",
          "description": "Associated converter loss: P_device + P_gate + P_rr (W). Includes terms not dissipated in this MOSFET die."
        },
        "P_device_W": {
          "type": "number",
          "description": "MOSFET device dissipation: P_cond + P_sw + P_coss (W). Used for Tj_est. Excludes gate-drive and Qrr commutation."
        },
        "P_cond_W": {
          "type": "number",
          "description": "Conduction loss at Rds_Tj (W)."
        },
        "P_sw_W": {
          "type": "number",
          "description": "Hard-switching overlap loss (W)."
        },
        "P_gate_W": {
          "type": "number",
          "description": "Gate-drive power (W). 0 when Qg/Vdrive omitted — see terms_omitted; unknown ≠ 0."
        },
        "P_coss_W": {
          "type": "number",
          "description": "Output-capacitance / Eoss loss (W). 0 when omitted — see terms_omitted; unknown ≠ 0."
        },
        "P_rr_W": {
          "type": "number",
          "description": "Qrr-related commutation loss Qrr·Vds·f (W). Usually not this die. 0 when omitted — see terms_omitted."
        },
        "V_drop": {
          "type": "number",
          "description": "I·Rds_Tj at entered conduction current (V)."
        },
        "I": {
          "type": "number"
        },
        "Rds": {
          "type": "number"
        },
        "Rds_Tj": {
          "type": "number"
        },
        "D": {
          "type": "number"
        },
        "current_basis": {
          "type": "string",
          "enum": [
            "dc",
            "on_interval_rms",
            "full_cycle_rms"
          ]
        },
        "temperature_model": {
          "type": "string",
          "enum": [
            "none",
            "linear",
            "ratio"
          ]
        },
        "rds_ratio": {
          "type": "number"
        },
        "Vds": {
          "type": "number"
        },
        "Id": {
          "type": "number"
        },
        "tr": {
          "type": "number"
        },
        "tf": {
          "type": "number"
        },
        "f_sw": {
          "type": "number"
        },
        "Qg": {
          "type": [
            "number",
            "null"
          ]
        },
        "Vdrive": {
          "type": [
            "number",
            "null"
          ]
        },
        "coss_model": {
          "type": "string",
          "enum": [
            "none",
            "coss_eq",
            "eoss"
          ]
        },
        "Coss": {
          "type": "number"
        },
        "Eoss": {
          "type": "number"
        },
        "Qrr": {
          "type": "number"
        },
        "Tj_est_C": {
          "type": "number",
          "description": "Ta + P_device·Rth_JA when both thermal inputs are set."
        },
        "Ta_C": {
          "type": "number"
        },
        "Rth_JA": {
          "type": "number"
        },
        "terms_applied": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Loss terms included in P_total_W."
        },
        "terms_omitted": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional terms not entered (unknown ≠ 0). Values remain 0 in P_*_W."
        },
        "terms_in_device": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Terms included in P_device_W / Tj_est."
        },
        "dominant_included": {
          "type": "string",
          "description": "Largest included term among terms_applied."
        },
        "included_count": {
          "type": "integer",
          "description": "Count of terms_applied (2–5)."
        },
        "warnings": {
          "type": "array"
        }
      }
    },
    "result_detail": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "value",
        "unit",
        "formatted"
      ],
      "properties": {
        "value": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "P_total_W",
            "P_device_W",
            "P_cond_W",
            "P_sw_W",
            "P_gate_W",
            "P_coss_W",
            "P_rr_W",
            "I",
            "Rds",
            "Vds",
            "Id",
            "f_sw",
            "current_basis",
            "coss_model",
            "terms_applied",
            "terms_omitted",
            "terms_in_device",
            "dominant_included"
          ],
          "properties": {
            "P_total_W": {
              "type": "number",
              "description": "Associated converter loss: P_device + P_gate + P_rr (W). Includes terms not dissipated in this MOSFET die."
            },
            "P_device_W": {
              "type": "number",
              "description": "MOSFET device dissipation: P_cond + P_sw + P_coss (W). Used for Tj_est. Excludes gate-drive and Qrr commutation."
            },
            "P_cond_W": {
              "type": "number",
              "description": "Conduction loss at Rds_Tj (W)."
            },
            "P_sw_W": {
              "type": "number",
              "description": "Hard-switching overlap loss (W)."
            },
            "P_gate_W": {
              "type": "number",
              "description": "Gate-drive power (W). 0 when Qg/Vdrive omitted — see terms_omitted; unknown ≠ 0."
            },
            "P_coss_W": {
              "type": "number",
              "description": "Output-capacitance / Eoss loss (W). 0 when omitted — see terms_omitted; unknown ≠ 0."
            },
            "P_rr_W": {
              "type": "number",
              "description": "Qrr-related commutation loss Qrr·Vds·f (W). Usually not this die. 0 when omitted — see terms_omitted."
            },
            "V_drop": {
              "type": "number",
              "description": "I·Rds_Tj at entered conduction current (V)."
            },
            "I": {
              "type": "number"
            },
            "Rds": {
              "type": "number"
            },
            "Rds_Tj": {
              "type": "number"
            },
            "D": {
              "type": "number"
            },
            "current_basis": {
              "type": "string",
              "enum": [
                "dc",
                "on_interval_rms",
                "full_cycle_rms"
              ]
            },
            "temperature_model": {
              "type": "string",
              "enum": [
                "none",
                "linear",
                "ratio"
              ]
            },
            "rds_ratio": {
              "type": "number"
            },
            "Vds": {
              "type": "number"
            },
            "Id": {
              "type": "number"
            },
            "tr": {
              "type": "number"
            },
            "tf": {
              "type": "number"
            },
            "f_sw": {
              "type": "number"
            },
            "Qg": {
              "type": [
                "number",
                "null"
              ]
            },
            "Vdrive": {
              "type": [
                "number",
                "null"
              ]
            },
            "coss_model": {
              "type": "string",
              "enum": [
                "none",
                "coss_eq",
                "eoss"
              ]
            },
            "Coss": {
              "type": "number"
            },
            "Eoss": {
              "type": "number"
            },
            "Qrr": {
              "type": "number"
            },
            "Tj_est_C": {
              "type": "number",
              "description": "Ta + P_device·Rth_JA when both thermal inputs are set."
            },
            "Ta_C": {
              "type": "number"
            },
            "Rth_JA": {
              "type": "number"
            },
            "terms_applied": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Loss terms included in P_total_W."
            },
            "terms_omitted": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional terms not entered (unknown ≠ 0). Values remain 0 in P_*_W."
            },
            "terms_in_device": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Terms included in P_device_W / Tj_est."
            },
            "dominant_included": {
              "type": "string",
              "description": "Largest included term among terms_applied."
            },
            "included_count": {
              "type": "integer",
              "description": "Count of terms_applied (2–5)."
            },
            "warnings": {
              "type": "array"
            }
          }
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "formatted": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "formula": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "expression": {
              "type": "string"
            },
            "label": {
              "type": "string"
            }
          }
        }
      ]
    },
    "assumptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "suggestion": {
            "type": "string"
          }
        }
      }
    },
    "verification": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "tier",
        "engine_tested",
        "expert_reviewed",
        "source_checked",
        "reviewed_by",
        "reviewer_role",
        "last_reviewed"
      ],
      "properties": {
        "tier": {
          "type": "string",
          "enum": [
            "candidate",
            "engine_tested",
            "internally_reviewed",
            "expert_verified"
          ]
        },
        "engine_tested": {
          "type": "boolean"
        },
        "expert_reviewed": {
          "type": "boolean"
        },
        "internally_reviewed": {
          "type": "boolean"
        },
        "review_kind": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_checked": {
          "type": "boolean"
        },
        "reviewed_by": {
          "type": [
            "string",
            "null"
          ]
        },
        "reviewer_role": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_reviewed": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "tier": {
                "const": "expert_verified"
              }
            },
            "required": [
              "tier"
            ]
          },
          "then": {
            "properties": {
              "engine_tested": {
                "const": true
              },
              "expert_reviewed": {
                "const": true
              },
              "source_checked": {
                "const": true
              },
              "reviewed_by": {
                "type": "string",
                "minLength": 1
              },
              "reviewer_role": {
                "type": "string",
                "minLength": 1
              },
              "last_reviewed": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "tier": {
                "const": "internally_reviewed"
              }
            },
            "required": [
              "tier"
            ]
          },
          "then": {
            "properties": {
              "engine_tested": {
                "const": true
              },
              "internally_reviewed": {
                "const": true
              },
              "source_checked": {
                "const": true
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "tier": {
                "const": "engine_tested"
              }
            },
            "required": [
              "tier"
            ]
          },
          "then": {
            "properties": {
              "engine_tested": {
                "const": true
              }
            }
          }
        }
      ]
    },
    "calculation_version": {
      "type": "string",
      "const": "1.1.2"
    },
    "api_version": {
      "type": "string"
    },
    "api_contract_version": {
      "type": "string"
    },
    "spec_version": {
      "type": "string"
    },
    "page": {
      "type": [
        "string",
        "null"
      ],
      "description": "Canonical calculator page URL"
    },
    "links": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "schema_input": {
          "type": "string",
          "format": "uri"
        },
        "schema_output": {
          "type": "string",
          "format": "uri"
        },
        "evidence": {
          "type": "string",
          "format": "uri"
        },
        "openapi": {
          "type": "string",
          "format": "uri"
        },
        "capabilities": {
          "type": "string",
          "format": "uri"
        },
        "mcp": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}
