This package contains examples for the use of models that can be found in Buildings.Utilities.Psychrometrics.Functions.BaseClasses.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).Name | Description |
---|---|
DewPointTemperatureDerivativeCheck | Model to test correct implementation of derivative |
DewPointTemperatureDerivativeCheck_amb | Model to test correct implementation of derivative |
InverseDewPointTemperatureDerivativeCheck_amb | Model to test correct implementation of derivative |
WaterVaporPressureDerivativeCheck | Model to test correct implementation of derivative |
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).
Type | Name | Default | Description |
---|---|---|---|
Real | uniCon | 1 | Constant to convert units [K/s] |
model DewPointTemperatureDerivativeCheck "Model to test correct implementation of derivative" extends Modelica.Icons.Example; Real x; Real y; parameter Real uniCon(unit="K/s") = 1 "Constant to convert units"; initial equation y=x; equation x=Buildings.Utilities.Psychrometrics.Functions.pW_TDewPoi( T=time*uniCon); der(y)=der(x); assert(abs(x-y) < 1E-2, "Model has an error");end DewPointTemperatureDerivativeCheck;
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).
Type | Name | Default | Description |
---|---|---|---|
Real | uniCon | 1 | Constant to convert units [K/s] |
model DewPointTemperatureDerivativeCheck_amb "Model to test correct implementation of derivative" extends Modelica.Icons.Example; Real x; Real y; parameter Real uniCon(unit="K/s") = 1 "Constant to convert units"; initial equation y = x; equation x = Buildings.Utilities.Psychrometrics.Functions.pW_TDewPoi_amb(T=time*uniCon); der(y) = der(x); assert(abs(x - y) < 1E-2, "Model has an error");end DewPointTemperatureDerivativeCheck_amb;
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).
Type | Name | Default | Description |
---|---|---|---|
Real | uniCon | 1 | Constant to convert units [Pa/s] |
model InverseDewPointTemperatureDerivativeCheck_amb "Model to test correct implementation of derivative" extends Modelica.Icons.Example; Real x; Real y; parameter Real uniCon(unit="Pa/s") = 1 "Constant to convert units"; initial equation y = x; equation x = Buildings.Utilities.Psychrometrics.Functions.TDewPoi_pW_amb(p_w=time*uniCon); der(y) = der(x); assert(abs(x - y) < 1E-2, "Model has an error");end InverseDewPointTemperatureDerivativeCheck_amb;
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).
Type | Name | Default | Description |
---|---|---|---|
Real | uniCon | 0.99 | Constant to convert units [1/s] |
model WaterVaporPressureDerivativeCheck "Model to test correct implementation of derivative" extends Modelica.Icons.Example; Real x; Real y; parameter Real uniCon(unit="1/s") = 0.99 "Constant to convert units"; initial equation y=x; equation x=Buildings.Utilities.Psychrometrics.Functions.pW_X(X_w=time*uniCon,p=101525); der(y)=der(x); assert(abs(x-y) < 1E-2, "Model has an error");end WaterVaporPressureDerivativeCheck;