modelRefrigerantsDerivativesR290

Model that checks the implementation of derivatives for R134a

Extends from RefrigerantsDerivativesR134a (Model that checks the implementation of derivatives for R134a).

Information

This example model checks the implementation of the refrigerant's partial derivatives. Therefore, the user has first to introduce some information about the refrigerant and afterwards the partial 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 partial derivatives are calculated and checked:

  1. Thermodynamic properties calculated by partial derivatives of the Helmholtz equation of state (e.g. specific heat capacity at constant pressure).
  2. Partial derivatives that only depend on partial derivatives of the Helmholtz equation of state (i.e. derivatives wrt. density and temperature).
  3. Partial derivatives that do not directly depend on partial derivatives of the Helmholtz equation of state (i.e. derivatives not wrt. density and temperature).
  4. Partial derivatives at bubble and dew line.

Furthermore, the derivatives are compared with the associated derivatives calculated by an external medium model (i.e. HelmholtzMedia) Therefore, the parameters are not allowed to change (except for the medium package).

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

Parameters

TypeNameDefaultDescription
MediumInt.AbsolutePressurep0 (from RefrigerantsDerivativesR134a)20e5Fixed pressure for calculations at initialization
MediumInt.Densityd0 (from RefrigerantsDerivativesR134a)75Fixed density for calculations at initialization
RealconvT (from RefrigerantsDerivativesR134a)125Conversion factor to satisfy derivative check
RealconvH (from RefrigerantsDerivativesR134a)300e3Conversion factor to satisfy derivative check
RealconvS (from RefrigerantsDerivativesR134a)750Conversion factor to satisfy derivative check

Components

TypeNameDefaultDescription
MediumInt.AbsolutePressurep (from RefrigerantsDerivativesR134a)p0 + 10e5*time^3Pressure used for calculations
MediumInt.TemperatureT (from RefrigerantsDerivativesR134a)273.15 + convT*time^3Temperature used for calculations
MediumInt.Densityd (from RefrigerantsDerivativesR134a)d0 + 125*time^3Density used for calculations
MediumInt.SpecificEnthalpyh (from RefrigerantsDerivativesR134a)200e3 + convH*time^3Specific enthalpy used for calculations
MediumInt.SpecificEntropys (from RefrigerantsDerivativesR134a)1e3 + convS*time^3Specific entropy used for calculations
Modelica.Blocks.Sources.CombiTimeTableextProp (from RefrigerantsDerivativesR134a)Table that contains the results of the external media library
Statesstates (from RefrigerantsDerivativesR134a)Record that contains thermodynamic states calculated by independent state variables
DerPropderProp (from RefrigerantsDerivativesR134a)Record that contains thermodynamic properties derived by partial derivatives
ExplDerexplDer (from RefrigerantsDerivativesR134a)Record that contains partial derivatives wrt. density and temperature
FurDerfurDer (from RefrigerantsDerivativesR134a)Record that contains further derivatives not wrt. density and temperature
SatDersatDer (from RefrigerantsDerivativesR134a)Record that contains derivates at bubble and dew state