modelRefrigerantIntegration
Model that checks the implementation of derivatives wrt. to time
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example models checks the implementation of the refrigerant's main derivatives wrt. to time. Therefore, the user has first to introduce some information about the refrigerant and afterwards the derivatives are calculated. The following refrigerant's information is required:
- The refrigerant package that shall be tested.
- The independent variables (i.e. independents variables' alteration with time).
The following refrigerant's derivatives are c alculated and checked:
- Calculation of state variables depending on the independent state variables (e.g. pressure depending on density and temperature).
- Calculation of variables of the Helmholtz equation of state.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.AbsolutePressure | p0 | 20e5 | Fixed pressure for calculations at initialization |
| Medium.Density | d0 | 75 | Fixed density for calculations at initialization |
| Real | convT | 125 | Conversion factor to satisfy derivative check |
| Real | convH | 200e3 | Conversion factor to satisfy derivative check |
| Real | convS | 1250 | Conversion factor to satisfy derivative check |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.AbsolutePressure | p | Pressure used for calculations | |
| Medium.Temperature | T | Temperature used for calculations | |
| Medium.Density | d | Density used for calculations | |
| Medium.SpecificEnthalpy | h | Specific enthalpy used for calculations | |
| Medium.SpecificEntropy | s | Specific entropy used for calculations | |
| Real | tau | Reduced temperature used for calculations | |
| Real | delta | Recuded density used for calculations | |
| StateVariables | stateVariables | Record containing state variables | |
| EoS | eoS | Record containing variables of the Helmholtz equation of state |
Contents
| Name | Description |
|---|---|
| Internal medium model | |
| StateVariables | Record that containts state variables |
| EoS | Record that contains variables of the Helmholtz equation of state |
Revisions
- August 13, 2017, by Mirko Engelpracht:
First implementation (see issue 408).