---
url: /dyad/dev/stdlib/HVACComponents/components/Components.Sources.MassFlowSource_h.md
description: >-
  Dyad Components.Sources.MassFlowSource_h docs.  Refrigerant mass flow source
  with prescribed specific enthalpy.
---

# `Components.Sources.MassFlowSource_h` {#Components.Sources.MassFlowSource_h}

Refrigerant mass flow source with prescribed specific enthalpy.

Drives a constant mass flow m_flow_in into the network through a single FluidPort (port.m_flow = -m_flow_in, so positive m_flow_in pushes fluid into the connected component). Outflow enthalpy is h_in; pressure adjusts to match the adjacent network. Input-driven m_flow / h are not yet supported — use the parameter form.

## Usage {#Usage}

`HVACComponents.Components.Sources.MassFlowSource_h(p_start, h_in, m_flow_in)`

## Parameters: {#Parameters:}

|        Name |                                                                   Description | Units | Default value |
| -----------:| -----------------------------------------------------------------------------:| -----:| -------------:|
|   `p_start` |                      Initial boundary pressure \[Pa] (solver guess for port.p) |    Pa |               |
|      `h_in` |                                              Outflow specific enthalpy \[J/kg] |  J/kg |               |
| `m_flow_in` | Prescribed mass flow into the network \[kg/s] (positive injects into the port) |  kg/s |               |

## Connectors {#Connectors}

* `port` - ([`FluidPort`](/stdlib/HVACComponents/connectors/FluidPort#FluidPort))

## Variables {#Variables}

| Name |                       Description | Units |
| ----:| ---------------------------------:| -----:|
|  `p` | Boundary pressure \[Pa] (= port.p) |    Pa |
