---
url: /dyad/stable/stdlib/HVACComponents/components/Components.Partial.SimpleStaggeredFlowModel.md
description: >-
  Dyad Components.Partial.SimpleStaggeredFlowModel docs.  Staggered-grid
  momentum flow model used inside the StraightPipe family.
---

# `Components.Partial.SimpleStaggeredFlowModel` {#Components.Partial.SimpleStaggeredFlowModel}

Staggered-grid momentum flow model used inside the StraightPipe family.

Computes friction-plus-gravity pressure drops dps_f between N adjacent thermodynamic states. Set flow_model_mode = FromPressureDifference to compute the segment mass flows m_flows from the segment pressure drops, or FromMassFlow to compute the segment pressure drops from given m_flows. The caller (typically PartialStraightPipe) provides medium_data, the N states array linked to the bulk mediums, the per-segment geometry arrays (crossAreas, dimensions, roughnesses, dheights, diameters) via initial bindings, and the nominal friction parameters dp_nominal, m_flow_nominal, K_dp, dp_exp.

This component extends from [`PartialDistributedFlow`](../types/PartialDistributedFlow.md)

## Usage {#Usage}

`HVACComponents.Components.Partial.SimpleStaggeredFlowModel(pathLengths=missing, m_flow_start, medium_data, crossAreas=missing, dimensions=missing, roughnesses=missing, dheights=missing, diameters=missing, dp_nominal=missing, m_flow_nominal=missing, K_dp=missing, dp_exp=missing, p_a_start, p_b_start, h_a_start, h_b_start, crossAreas_start, dimensions_start, roughnesses_start, dheights_start, diameters_start, dp_nominal_start, m_flow_nominal_start, K_dp_start, dp_exp_start)`

## Parameters: {#Parameters:}

|                   Name |                                                                                Description | Units | Default value |
| ----------------------:| ------------------------------------------------------------------------------------------:| -----:| -------------:|
|                    `N` |                                Number of thermodynamic state points used by the flow model |     – |               |
|                    `m` |                                 Number of momentum segments between state points (= N - 1) |     – |         N - 1 |
|            `N_Minus_1` |                                                N - 1, alias used for momentum-array sizing |     – |         N - 1 |
|      `flow_model_mode` | Flow formulation: FromPressureDifference solves for m_flows; FromMassFlow solves for dps_f |     – |               |
|         `m_flow_start` |                         Initial mass flow rate \[kg/s] (solver guess applied to every cell) |  kg/s |               |
|          `medium_data` |                                                              Refrigerant medium properties |     – |               |
|            `p_a_start` |                                           Initial pressure at the inlet end (state 1) \[Pa] |    Pa |               |
|            `p_b_start` |                                          Initial pressure at the outlet end (state N) \[Pa] |    Pa |               |
|            `h_a_start` |                                Initial specific enthalpy at the inlet end (state 1) \[J/kg] |  J/kg |               |
|            `h_b_start` |                               Initial specific enthalpy at the outlet end (state N) \[J/kg] |  J/kg |               |
|     `crossAreas_start` |                                                          Scalar guess for crossAreas \[m^2] |     – |               |
|     `dimensions_start` |                                                            Scalar guess for dimensions \[m] |     – |               |
|    `roughnesses_start` |                                                           Scalar guess for roughnesses \[m] |     – |               |
|       `dheights_start` |                                                              Scalar guess for dheights \[m] |     – |               |
|      `diameters_start` |                                                             Scalar guess for diameters \[m] |     – |               |
|     `dp_nominal_start` |                                                           Scalar guess for dp_nominal \[Pa] |    Pa |               |
| `m_flow_nominal_start` |                                                     Scalar guess for m_flow_nominal \[kg/s] |  kg/s |               |
|           `K_dp_start` |                                                                      Scalar guess for K_dp |     – |               |
|         `dp_exp_start` |                                                                    Scalar guess for dp_exp |     – |               |

## Variables {#Variables}

|       Name |                                                                         Description | Units |
| ----------:| -----------------------------------------------------------------------------------:| -----:|
|  `m_flows` |                              Mass flow rate in each momentum cell \[kg/s] (length m) |  kg/s |
|       `Is` |                         Momentum of fluid in each momentum cell \[kg.m/s] (length m) |     – |
|     `Fs_p` |              Pressure force on each momentum cell \[N] (length m); extender supplies |     – |
|    `Fs_fg` | Friction-plus-gravity force on each momentum cell \[N] (length m); extender supplies |     – |
| `Ib_flows` |           Momentum flow across each cell boundary \[N] (length m); extender supplies |     – |
|    `dps_f` |                         Friction-only pressure drop per segment \[Pa] (length N - 1) |    Pa |
|   `dps_fg` |                 Friction-plus-gravity pressure drop per segment \[Pa] (length N - 1) |    Pa |
