{
  "name": "Four-Port Air-Water Heat Exchanger",
  "fluid": "Water",
  "fluid_backend": "CoolProp",
  "circuits": [
    {
      "id": 0,
      "components": [
        {
          "type": "BrineSource",
          "name": "hot_water_in",
          "fluid": "Water",
          "p_set_bar": 2.0,
          "t_set_c": 60.0,
          "m_flow_kg_s": 0.5
        },
        {
          "type": "HeatExchanger",
          "name": "hx",
          "ua": 3000.0,
          "hot_fluid_id": "Water",
          "cold_fluid_id": "Air",
          "cold_humidity_ratio": 0.010
        },
        {
          "type": "BrineSink",
          "name": "hot_water_out",
          "fluid": "Water",
          "p_back_bar": 2.0
        },
        {
          "type": "AirSource",
          "name": "cold_air_in",
          "p_set_bar": 1.01325,
          "t_dry_c": 20.0,
          "rh": 50.0,
          "m_flow_kg_s": 1.0
        },
        {
          "type": "Fan",
          "name": "supply_fan",
          "fluid": "Air",
          "speed_ratio": 1.0,
          "air_density_kg_per_m3": 1.204,
          "design_flow_m3_s": 0.83,
          "curve_p0": 250.0,
          "curve_p1": 0.0,
          "curve_p2": -20.0,
          "eff_e0": 0.65,
          "eff_e1": 0.0,
          "eff_e2": 0.0
        },
        {
          "type": "AirSink",
          "name": "cold_air_out",
          "p_back_bar": 1.01325
        }
      ],
      "edges": [
        {
          "from": "hot_water_in:outlet",
          "to": "hx:hot_inlet"
        },
        {
          "from": "hx:hot_outlet",
          "to": "hot_water_out:inlet"
        },
        {
          "from": "cold_air_in:outlet",
          "to": "supply_fan:inlet"
        },
        {
          "from": "supply_fan:outlet",
          "to": "hx:cold_inlet"
        },
        {
          "from": "hx:cold_outlet",
          "to": "cold_air_out:inlet"
        }
      ]
    }
  ],
  "solver": {
    "strategy": "newton",
    "max_iterations": 300,
    "tolerance": 1e-6
  }
}
