---
url: /dyad/dev/stdlib/HVACComponents.md
description: >-
  Dyad index docs.  A Dyad-native component library for HVAC vapor compression
  cycles integrated with fast and accurate spline-based refrigerant and
  moist-air p...
---

# HVACComponents {#HVACComponents}

A Dyad-native component library for HVAC vapor compression cycles integrated with fast and accurate spline-based refrigerant and moist-air property models. Seamless environment for steady-state or transient analyses from a single model definition, coupling with `DyadModelOptimizer` for calibration to data, `DyadModelDiscovery` and `DyadSurrogates` for scientific machine learning workflows, `DyadControlSystems` for linear analysis, PID or Model-Predictive Control, or `DyadFMUGeneration` for interoperatibility with Functional Mockup Units.

## Features {#Features}

### Pre-built components {#Pre-built-components}

Drop-in components covering the full vapor-compression stack:

* **Heat exchangers** — Tube-fin, plate, and crossflow heat exchangers with refrigerant-side discretisation and moist-air sides supporting condensation.

* **Compressors** — positive-displacement compressor with map-driven volumetric efficiency and electrical power.

* **Valves** — linear electronic expansion valves (LEV) with smooth, differentiable opening curves.

* **Fans** — air-side momentum sources for forced-convection circuits.

* **Conditioned spaces** — lumped thermal-mass / humidity volumes for closing the air loop on a building or cabin model.

* **Pipes** — distributed-volume straight pipes with staggered-grid momentum balance for two-phase refrigerant transport.

### Thermodynamic property models {#Thermodynamic-property-models}

Property-evaluation backends pluggable into any component through the `medium_data` parameter:

* **Refrigerants** — spline-based property models for **R32**, **R1234YF**, **R290**, **R152a**, **R134a**, **R410A**, **R717**.

* **Air** — dry-air and moist-air properties

* **Generic media** — abstract refrigerant / dry-air / moist-air medium types let you bring your own property backend.

## Getting started {#Getting-started}

* [**Steady-state and dynamic simulation with one model**](tutorials/complete_cycle_tutorial.md) — a complete vapor-compression cycle (compressor + condenser + LEV + evaporator) wired up in Dyad, then run both as a transient with `Rodas5P` and as a steady-state solve — from the same component definition.

## API reference {#API-reference}

The remainder of this site is automatically generated from `.dyad` docstrings and is organised into the navigation sidebar:

* **[Types](types/MediaModels.AbstractRefrigerantMedium.md)** — abstract medium types, partial base classes, and enumerated configuration types.

* **[Connectors](connectors/FluidPort.md)** — `FluidPort`, `MoistAirFluidPort`, `TwoComponentFluidPort`.

* **[Components](components/Components.Compressor.md)** — every concrete component shipped with the library.

### Types {#Types}

* [`Components.Partial.PartialDistributedFlow`](types/Components.Partial.PartialDistributedFlow.md) — Partial base class for a steady-state distributed momentum balance over m cells.

* [`Components.Partial.PartialDistributedVolume`](types/Components.Partial.PartialDistributedVolume.md) — Partial base class for an N-cell 1-D distributed-volume refrigerant model.

* [`Components.Partial.PartialHEXCrossflow`](types/Components.Partial.PartialHEXCrossflow.md) — Partial base class for a moist-air cross-flow heat-exchanger element.

* [`Components.Partial.PartialStraightPipe`](types/Components.Partial.PartialStraightPipe.md) — Partial base class for a 1-D staggered-grid straight-pipe refrigerant model.

* [`FiniteVolumeInitializationMode`](types/FiniteVolumeInitializationMode.md)

* [`FlowModelMode`](types/FlowModelMode.md)

* [`HeatTransfer.PartialTwoPhaseHeatTransfer`](types/HeatTransfer.PartialTwoPhaseHeatTransfer.md) — Partial base class for an N-cell two-phase convective heat-transfer model.

* [`InitializationDistribution`](types/InitializationDistribution.md)

* [`MediaModels.AbstractDryAirMedium`](types/MediaModels.AbstractDryAirMedium.md)

* [`MediaModels.AbstractMoistAirMedium`](types/MediaModels.AbstractMoistAirMedium.md)

* [`MediaModels.AbstractRefrigerantMedium`](types/MediaModels.AbstractRefrigerantMedium.md)

* [`ModelStructure`](types/ModelStructure.md)

### Connectors {#Connectors}

* [`FluidPort`](connectors/FluidPort.md)

* [`MoistAirFluidPort`](connectors/MoistAirFluidPort.md)

* [`TwoComponentFluidPort`](connectors/TwoComponentFluidPort.md)

### Components {#Components}

* [`Components.AirSplitterMerger`](components/Components.AirSplitterMerger.md) — Symmetric n-way splitter/merger for a moist-air MoistAirFluidPort.

* [`Components.Compressor`](components/Components.Compressor.md) — Positive-displacement compressor with no mass or energy storage.

* [`Components.LEV`](components/Components.LEV.md) — Linear Electronic Expansion Valve (LEV).

* [`Components.OneTempWall1D`](components/Components.OneTempWall1D.md) — Discretised one-temperature wall for tube-fin heat exchangers.

* [`Components.Partial.HEXCrossflow`](components/Components.Partial.HEXCrossflow.md) — Moist-air cross-flow heat exchanger element with condensation.

* [`Components.Partial.SimpleStaggeredFlowModel`](components/Components.Partial.SimpleStaggeredFlowModel.md) — Staggered-grid momentum flow model used inside the StraightPipe family.

* [`Components.RefrigerantSplitterMerger`](components/Components.RefrigerantSplitterMerger.md) — Symmetric n-way splitter/merger for a single-phase refrigerant FluidPort.

* [`Components.Sources.Boundary_pTPhi`](components/Components.Sources.Boundary_pTPhi.md) — Moist-air boundary condition fixing pressure, temperature, and relative humidity.

* [`Components.Sources.Boundary_ph`](components/Components.Sources.Boundary_ph.md) — Refrigerant boundary fixing pressure and specific enthalpy.

* [`Components.Sources.MassFlowSource_TPhi`](components/Components.Sources.MassFlowSource_TPhi.md) — Moist-air mass flow source with prescribed temperature and relative humidity.

* [`Components.Sources.MassFlowSource_h`](components/Components.Sources.MassFlowSource_h.md) — Refrigerant mass flow source with prescribed specific enthalpy.

* [`Components.Sources.PrescribedTemperature`](components/Components.Sources.PrescribedTemperature.md) — Constant-temperature boundary for an array of HeatPorts.

* [`Components.StraightPipe`](components/Components.StraightPipe.md) — Distributed-volume straight pipe with circular cross-section.

* [`Components.TubeFinHEX`](components/Components.TubeFinHEX.md) — Tube-fin heat exchanger with refrigerant side and moist-air side.

* [`HeatTransfer.ConstantPhasic`](components/HeatTransfer.ConstantPhasic.md) — Phase-resolved heat-transfer model with constant coefficients per regime.

* [`MediaModels.BaseProperties_DryAir`](components/MediaModels.BaseProperties_DryAir.md) — Dry-air property model using (p, T) as independent states.

* [`MediaModels.BaseProperties_MoistAir`](components/MediaModels.BaseProperties_MoistAir.md) — Moist-air (dry air + water vapor) property model using (p, T, Xi) as states.

* [`MediaModels.BaseProperties_Refrigerant`](components/MediaModels.BaseProperties_Refrigerant.md) — Refrigerant property model using (p, h) as independent states.

* [`MediaModels.ThermodynamicState_pT`](components/MediaModels.ThermodynamicState_pT.md) — Thermodynamic-state record parametrised by (p, T) for ideal-gas media (dry air).

* [`MediaModels.ThermodynamicState_pTXi`](components/MediaModels.ThermodynamicState_pTXi.md) — Thermodynamic-state record parametrised by (p, T, Xi) for moist-air media.

* [`MediaModels.ThermodynamicState_ph`](components/MediaModels.ThermodynamicState_ph.md) — Thermodynamic-state record parametrised by (p, h) for refrigerant media.
