modelPowerLawResistance
Flow resistance that uses the power law
Extends from IBPSA.Fluid.Interfaces.PartialTwoPortInterface, IBPSA.Airflow.Multizone.BaseClasses.ErrorControl.
Information
This model describes the mass flow rate and pressure difference relation of an orifice in the form
V_flow = k * dp^m,
where k is a variable and
m a parameter.
For turbulent flow, set m=1/2 and
for laminar flow, set m=1.
The model is used as a base for the interzonal air flow models.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | m | Flow exponent, m=0.5 for turbulent, m=1 for laminar | |
| Advanced | |||
| Boolean | useDefaultProperties | true | Set to false to use density and viscosity based on actual medium state, rather than using default values |
| Modelica.SIunits.PressureDifference | dp_turbulent | 0.1 | Pressure difference where laminar and turbulent flow relation coincide. Recommended = 0.1 |
| Boolean | homotopyInitialization | true | = true, use homotopy method |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.VolumeFlowRate | V_flow | Volume flow rate through the component | |
| Modelica.SIunits.Velocity | v | Average velocity | |
| Modelica.SIunits.Density | rho | Fluid density at port_a |
Revisions
-
June 24, 2018, by Michael Wetter:
Removed parameterAbecause IBPSA.Airflow.Multizone.EffectiveAirLeakageArea uses the effective leakage areaLrather thanA.
Removed calculationv=V_flow/Aas parameterAhas been removed.
Removed parameterlWetas this is only used to compute the Reynolds number, and the Reynolds number is not used by this model. Also removed the variableRefor the Reynolds number.
This change is non-backward compatible.
This is for IBPSA, #932. -
May 1, 2018, by Filip Jorissen:
Setfinal allowFlowReversal=true. See #877. -
January 22, 2016, by Michael Wetter:
Corrected type declaration of pressure difference. This is for #404. -
November 19, 2015, by Michael Wetter:
Removed assignment of parametershowDesignFlowDirectioninextendsstatement. This is for #349. -
January 21, 2015 by Michael Wetter:
Changed type ofmExcasModelica.SIunits.Masssetsmin=0, butmExccan be negative. -
October 8, 2013 by Michael Wetter:
Changed the parameteruseConstantDensitytouseDefaultPropertiesand also applied the parameter to the computation of the dynamic viscosity. The conversion script can be used to update this parameter.
Change model to not use the instancesta_a, as this may be conditionally removed and hence it is not proper Modelica syntax to use it outside of aconnectstatement. -
March 27, 2013 by Michael Wetter:
Added assignment of initial value formExcto avoid error when checking model in pedantic mode with Dymola 2014. -
December 14, 2012 by Michael Wetter:
Renamed protected parameters for consistency with the naming conventions. - December 6, 2011 by Michael Wetter:
Removedfixed=falseattribute of protected parameterk. - July 20, 2010 by Michael Wetter:
Migrated model to Modelica 3.1 and integrated it into the Buildings library. - February 4, 2005 by Michael Wetter:
Released first version.