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:

  1. The refrigerant package that shall be tested.
  2. The independent variables (i.e. independents variables' alteration with time).

The following refrigerant's derivatives are c alculated and checked:

  1. Calculation of state variables depending on the independent state variables (e.g. pressure depending on density and temperature).
  2. Calculation of variables of the Helmholtz equation of state.

Parameters

TypeNameDefaultDescription
Medium.AbsolutePressurep020e5Fixed pressure for calculations at initialization
Medium.Densityd075Fixed density for calculations at initialization
RealconvT125Conversion factor to satisfy derivative check
RealconvH200e3Conversion factor to satisfy derivative check
RealconvS1250Conversion factor to satisfy derivative check

Components

TypeNameDefaultDescription
Medium.AbsolutePressurepPressure used for calculations
Medium.TemperatureTTemperature used for calculations
Medium.DensitydDensity used for calculations
Medium.SpecificEnthalpyhSpecific enthalpy used for calculations
Medium.SpecificEntropysSpecific entropy used for calculations
RealtauReduced temperature used for calculations
RealdeltaRecuded density used for calculations
StateVariablesstateVariablesRecord containing state variables
EoSeoSRecord containing variables of the Helmholtz equation of state

Contents

NameDescription
MediumInternal medium model
StateVariablesRecord that containts state variables
EoSRecord that contains variables of the Helmholtz equation of state

Revisions

  • August 13, 2017, by Mirko Engelpracht:
    First implementation (see issue 408).