{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.thermo.composite_wall/1.0.0/input.json",
  "title": "Composite wall — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "plane"
      ],
      "description": "plane (default). Not heat-transfer, heatsink, radiation, steam, cylindrical, or a thermal-resistance series of R."
    },
    "A": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Shared face area in m²."
    },
    "k1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Layer 1 conductivity in W/(m·K). Alternative: layers[]."
    },
    "L1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Layer 1 thickness in m."
    },
    "k2": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Layer 2 conductivity in W/(m·K)."
    },
    "L2": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Layer 2 thickness in m."
    },
    "layers": {
      "type": "array",
      "minItems": 2,
      "items": {
        "type": "object",
        "properties": {
          "k": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "L": {
            "type": "number",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "k",
          "L"
        ]
      },
      "description": "Layer list {k, L}. Alternative: k1/L1…. Do not send both."
    },
    "h_in": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Optional inner film coefficient in W/(m²·K)."
    },
    "h_out": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Optional outer film coefficient in W/(m²·K)."
    },
    "dT": {
      "type": "number",
      "description": "Optional temperature difference in K. If given, Q=ΔT/R."
    }
  },
  "required": [
    "A"
  ],
  "description": "Plane composite wall from a layer list. R_i = L_i/(k_i A), optional films 1/(h A), R = R_in + ΣR_i + R_out. Optional Q=ΔT/R. Not Fourier/Newton Q, not lumped R-network, not heatsink θ, not steam, not cylindrical. (calculation_version 1.0.0)"
}
