modelPowerLaw05
Test model for power law function with constant exponent of 0.5
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This examples demonstrates the
Buildings.Airflow.Multizone.BaseClasses.powerLaw
and
Buildings.Airflow.Multizone.BaseClasses.powerLaw05
functions.
They need to return the same function value.
This is verified by an assert statement.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | C | 2/10^m | Flow coefficient, C = V_flow/ dp^m |
| Real | m | 0.5 | Flow exponent, m=0.5 for turbulent, m=1 for laminar |
| Modelica.Units.SI.PressureDifference | dp_turbulent | 5 | Pressure difference where regularization starts |
| Real | sqrt_dp_turbulent | sqrt(dp_turbulent) | Square root of pressure difference where regularization starts |
| Real | gamma | 1.5 | Normalized flow rate where dphi(0)/dpi intersects phi(1) |
| Real | a | gamma | Polynomial coefficient for regularized implementation of flow resistance |
| Real | b | 1/8*m^2 - 3*gamma - 3/2*m + 35.0/8 | Polynomial coefficient for regularized implementation of flow resistance |
| Real | c | -1/4*m^2 + 3*gamma + 5/2*m - 21.0/4 | Polynomial coefficient for regularized implementation of flow resistance |
| Real | d | 1/8*m^2 - gamma - m + 15.0/8 | Polynomial coefficient for regularized implementation of flow resistance |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.PressureDifference | dp | Pressure difference | |
| Modelica.Units.SI.VolumeFlowRate | V_flow | Volume flow rate computed with model powerLaw | |
| Modelica.Units.SI.VolumeFlowRate | VFixed_flow | Volume flow rate computed with model powerLawFixed |
Revisions
-
September 19. 2025, by Michael Wetter:
First implementation.
This is for IBPSA, #2043.