Buildings.Media.Specialized.Water.Examples
Collection of models that test the water models
Information
This package contains examples that test the media packages in Buildings.Media.Water.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name | Description |
---|---|
TemperatureDependentDensityDerivativeCheck | Model that tests the derivative implementation |
TemperatureDependentDensityProperties | Model that tests the implementation of the fluid properties |
TemperatureDependentDensityTemperatureEnthalpyInversion | Model to check computation of h(T) and its inverse |
WaterProperties_pT | Model that tests the implementation of the fluid properties at nominal conditions |
Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck
Model that tests the derivative implementation
Information
This example checks whether the function derivative is implemented correctly. If the derivative implementation is not correct, the model will stop with an assert statement.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties
Model that tests the implementation of the fluid properties
Information
This example checks thermophysical properties of the medium.
Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Media.Examples.BaseClasses.FluidProperties (Model that tests the implementation of the fluid properties).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | ||
Temperature | TMin | 273.15 | Minimum temperature for the simulation [K] |
Temperature | TMax | 373.15 | Maximum temperature for the simulation [K] |
Pressure | p | Medium.p_default | Pressure [Pa] |
MassFraction | X[Medium.nX] | Medium.X_default | Mass fraction [1] |
Connectors
Type | Name | Description |
---|---|---|
replaceable package Medium |
Modelica definition
Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion
Model to check computation of h(T) and its inverse
Information
This model tests whether the inversion of temperature and enthalpy is implemented correctly. If T ≠ T(h(T)), the model stops with an error.
Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Media.Examples.BaseClasses.TestTemperatureEnthalpyInversion (Model to check computation of h(T) and its inverse with a controlleable tolerance).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | ||
Temperature | T0 | 273.15 + 20 | Temperature [K] |
Real | tol | 1E-8 | Numerical tolerance |
Connectors
Type | Name | Description |
---|---|---|
replaceable package Medium |
Modelica definition
Buildings.Media.Specialized.Water.Examples.WaterProperties_pT
Model that tests the implementation of the fluid properties at nominal conditions
Information
This example checks the thermophysical properties of the medium Buildings.Media.Specialized.Water.Examples.WaterProperties_pT.
Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Media.Examples.BaseClasses.FluidProperties (Model that tests the implementation of the fluid properties).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | ||
Temperature | TMin | 273.15 | Minimum temperature for the simulation [K] |
Temperature | TMax | 273.15 + 150 | Maximum temperature for the simulation [K] |
Pressure | p | Medium.p_default | Pressure [Pa] |
MassFraction | X[Medium.nX] | Medium.X_default | Mass fraction [1] |
Connectors
Type | Name | Description |
---|---|---|
replaceable package Medium |