packageExternalSinglePhaseMedium
Generic external single phase medium package
Extends from TRANSFORM.Media.Interfaces.Fluids.PartialSinglePhaseMedium (Base class for single phase medium of one substance).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Media.Interfaces.Choices.IndependentVariables | ThermoStates (from PartialMedium) | Enumeration type for independent variables | |
| String | mediumName (from PartialMedium) | "unusablePartialMedium" | Name of the medium |
| String[:] | substanceNames (from PartialMedium) | {mediumName} | Names of the mixture substances. Set substanceNames={mediumName} if only one substance. |
| String[:] | extraPropertiesNames (from PartialMedium) | fill("", 0) | Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused |
| Boolean | singleState (from PartialMedium) | = true, if u and d are not a function of pressure | |
| Boolean | reducedX (from PartialMedium) | true | = true if medium contains the equation sum(X) = 1.0; set reducedX=true if only one substance (see docu for details) |
| Boolean | fixedX (from PartialMedium) | false | = true if medium contains the equation X = reference_X |
| AbsolutePressure | reference_p (from PartialMedium) | 101325 | Reference pressure of Medium: default 1 atmosphere |
| Temperature | reference_T (from PartialMedium) | 298.15 | Reference temperature of Medium: default 25 deg Celsius |
| MassFraction[nX] | reference_X (from PartialMedium) | fill(1/nX, nX) | Default mass fractions of medium |
| AbsolutePressure | p_default (from PartialMedium) | 101325 | Default value for pressure of medium (for initialization) |
| Temperature | T_default (from PartialMedium) | Modelica.Units.Conversions.from_degC(20) | Default value for temperature of medium (for initialization) |
| SpecificEnthalpy | h_default (from PartialMedium) | specificEnthalpy_pTX(p_default, T_default, X_default) | Default value for specific enthalpy of medium (for initialization) |
| MassFraction[nX] | X_default (from PartialMedium) | reference_X | Default value for mass fractions of medium (for initialization) |
| ExtraProperty[nC] | C_default (from PartialMedium) | fill(0, nC) | Default value for trace substances of medium (for initialization) |
| Integer | nS (from PartialMedium) | size(substanceNames, 1) | Number of substances |
| Integer | nX (from PartialMedium) | nS | Number of mass fractions |
| Integer | nXi (from PartialMedium) | if fixedX then 0 else if reducedX then nS - 1 else nS | Number of structurally independent mass fractions (see docu for details) |
| Integer | nC (from PartialMedium) | size(extraPropertiesNames, 1) | Number of extra (outside of standard mass-balance) transported properties |
| Real[nC] | C_nominal (from PartialMedium) | 1.0e-6*ones(nC) | Default for the nominal values for the extra properties |
| FluidConstants | fluidConstants (from PartialSinglePhaseMedium) | Constant data for the fluid | |
| FluidConstants | externalFluidConstants | FluidConstants(iupacName = "unknown", casRegistryNumber = "unknown", chemicalFormula = "unknown", structureFormula = "unknown", molarMass = getMolarMass()) | |
| SI.Temperature | T_min | 0 | |
| SI.Temperature | T_max | 1e9 | |
| InputChoice | inputChoice | InputChoice.pT | Default choice of input variables for property computations |
| String | tablePath | "modelica://TRANSFORM/Resources/data/lookupTables/" + mediumName + "/pT/" | |
| String | tablePath_p | Modelica.Utilities.Files.loadResource(tablePath + "p.csv") | Pressure |
| String | tablePath_T | Modelica.Utilities.Files.loadResource(tablePath + "T.csv") | Temperature |
| String | tablePath_h | Modelica.Utilities.Files.loadResource(tablePath + "h.csv") | Specific enthalpy |
| String | tablePath_a | Modelica.Utilities.Files.loadResource(tablePath + "a.csv") | Speed of sound |
| String | tablePath_cp | Modelica.Utilities.Files.loadResource(tablePath + "cp.csv") | Isobaric specific heat capacity |
| String | tablePath_cv | Modelica.Utilities.Files.loadResource(tablePath + "cv.csv") | Isochoric specific heat capacity |
| String | tablePath_d | Modelica.Utilities.Files.loadResource(tablePath + "d.csv") | Density |
| String | tablePath_lambda | Modelica.Utilities.Files.loadResource(tablePath + "k.csv") | Thermal conductivity |
| String | tablePath_mu | Modelica.Utilities.Files.loadResource(tablePath + "mu.csv") | Dynamic viscosity |
| String | tablePath_s | Modelica.Utilities.Files.loadResource(tablePath + "s.csv") | Specific entropy |
| String | tablesPath_pT_T | TRANSFORM.Utilities.Strings.concatenate({tablePath_p, tablePath_T, tablePath_T}, "|", 3) | |
| String | tablesPath_pT_h | TRANSFORM.Utilities.Strings.concatenate({tablePath_p, tablePath_T, tablePath_h}, "|", 3) | |
| String | tablesPath_pT_a | TRANSFORM.Utilities.Strings.concatenate({tablePath_p, tablePath_T, tablePath_a}, "|", 3) | |
| String | tablesPath_pT_cp | TRANSFORM.Utilities.Strings.concatenate({tablePath_p, tablePath_T, tablePath_cp}, "|", 3) | |
| String | tablesPath_pT_cv | TRANSFORM.Utilities.Strings.concatenate({tablePath_p, tablePath_T, tablePath_cv}, "|", 3) | |
| String | tablesPath_pT_d | TRANSFORM.Utilities.Strings.concatenate({tablePath_p, tablePath_T, tablePath_d}, "|", 3) | |
| String | tablesPath_pT_lambda | TRANSFORM.Utilities.Strings.concatenate({tablePath_p, tablePath_T, tablePath_lambda}, "|", 3) | |
| String | tablesPath_pT_mu | TRANSFORM.Utilities.Strings.concatenate({tablePath_p, tablePath_T, tablePath_mu}, "|", 3) | |
| String | tablesPath_pT_s | TRANSFORM.Utilities.Strings.concatenate({tablePath_p, tablePath_T, tablePath_s}, "|", 3) | |
| String | tablePath_ph | "modelica://TRANSFORM/Resources/data/lookupTables/" + mediumName + "/ph/" | |
| String | tablePath_ph_p | Modelica.Utilities.Files.loadResource(tablePath_ph + "p.csv") | Pressure |
| String | tablePath_ph_T | Modelica.Utilities.Files.loadResource(tablePath_ph + "T.csv") | Temperature |
| String | tablePath_ph_h | Modelica.Utilities.Files.loadResource(tablePath_ph + "h.csv") | Specific enthalpy |
| String | tablePath_ph_a | Modelica.Utilities.Files.loadResource(tablePath_ph + "a.csv") | Speed of sound |
| String | tablePath_ph_cp | Modelica.Utilities.Files.loadResource(tablePath_ph + "cp.csv") | Isobaric specific heat capacity |
| String | tablePath_ph_cv | Modelica.Utilities.Files.loadResource(tablePath_ph + "cv.csv") | Isochoric specific heat capacity |
| String | tablePath_ph_d | Modelica.Utilities.Files.loadResource(tablePath_ph + "d.csv") | Density |
| String | tablePath_ph_lambda | Modelica.Utilities.Files.loadResource(tablePath_ph + "k.csv") | Thermal conductivity |
| String | tablePath_ph_mu | Modelica.Utilities.Files.loadResource(tablePath_ph + "mu.csv") | Dynamic viscosity |
| String | tablePath_ph_s | Modelica.Utilities.Files.loadResource(tablePath_ph + "s.csv") | Specific entropy |
| String | tablesPath_ph_T | TRANSFORM.Utilities.Strings.concatenate({tablePath_ph_p, tablePath_ph_h, tablePath_ph_T}, "|", 3) | |
| String | tablesPath_ph_h | TRANSFORM.Utilities.Strings.concatenate({tablePath_ph_p, tablePath_ph_h, tablePath_ph_h}, "|", 3) | |
| String | tablesPath_ph_a | TRANSFORM.Utilities.Strings.concatenate({tablePath_ph_p, tablePath_ph_h, tablePath_ph_a}, "|", 3) | |
| String | tablesPath_ph_cp | TRANSFORM.Utilities.Strings.concatenate({tablePath_ph_p, tablePath_ph_h, tablePath_ph_cp}, "|", 3) | |
| String | tablesPath_ph_cv | TRANSFORM.Utilities.Strings.concatenate({tablePath_ph_p, tablePath_ph_h, tablePath_ph_cv}, "|", 3) | |
| String | tablesPath_ph_d | TRANSFORM.Utilities.Strings.concatenate({tablePath_ph_p, tablePath_ph_h, tablePath_ph_d}, "|", 3) | |
| String | tablesPath_ph_lambda | TRANSFORM.Utilities.Strings.concatenate({tablePath_ph_p, tablePath_ph_h, tablePath_ph_lambda}, "|", 3) | |
| String | tablesPath_ph_mu | TRANSFORM.Utilities.Strings.concatenate({tablePath_ph_p, tablePath_ph_h, tablePath_ph_mu}, "|", 3) | |
| String | tablesPath_ph_s | TRANSFORM.Utilities.Strings.concatenate({tablePath_ph_p, tablePath_ph_h, tablePath_ph_s}, "|", 3) | |
| String | tablePath_ps | "modelica://TRANSFORM/Resources/data/lookupTables/" + mediumName + "/ps/" | |
| String | tablePath_ps_p | Modelica.Utilities.Files.loadResource(tablePath_ps + "p.csv") | Pressure |
| String | tablePath_ps_T | Modelica.Utilities.Files.loadResource(tablePath_ps + "T.csv") | Temperature |
| String | tablePath_ps_h | Modelica.Utilities.Files.loadResource(tablePath_ps + "h.csv") | Specific enthalpy |
| String | tablePath_ps_a | Modelica.Utilities.Files.loadResource(tablePath_ps + "a.csv") | Speed of sound |
| String | tablePath_ps_cp | Modelica.Utilities.Files.loadResource(tablePath_ps + "cp.csv") | Isobaric specific heat capacity |
| String | tablePath_ps_cv | Modelica.Utilities.Files.loadResource(tablePath_ps + "cv.csv") | Isochoric specific heat capacity |
| String | tablePath_ps_d | Modelica.Utilities.Files.loadResource(tablePath_ps + "d.csv") | Density |
| String | tablePath_ps_lambda | Modelica.Utilities.Files.loadResource(tablePath_ps + "k.csv") | Thermal conductivity |
| String | tablePath_ps_mu | Modelica.Utilities.Files.loadResource(tablePath_ps + "mu.csv") | Dynamic viscosity |
| String | tablePath_ps_s | Modelica.Utilities.Files.loadResource(tablePath_ps + "s.csv") | Specific entropy |
| String | tablesPath_ps_T | TRANSFORM.Utilities.Strings.concatenate({tablePath_ps_p, tablePath_ps_s, tablePath_ps_T}, "|", 3) | |
| String | tablesPath_ps_h | TRANSFORM.Utilities.Strings.concatenate({tablePath_ps_p, tablePath_ps_s, tablePath_ps_h}, "|", 3) | |
| String | tablesPath_ps_a | TRANSFORM.Utilities.Strings.concatenate({tablePath_ps_p, tablePath_ps_s, tablePath_ps_a}, "|", 3) | |
| String | tablesPath_ps_cp | TRANSFORM.Utilities.Strings.concatenate({tablePath_ps_p, tablePath_ps_s, tablePath_ps_cp}, "|", 3) | |
| String | tablesPath_ps_cv | TRANSFORM.Utilities.Strings.concatenate({tablePath_ps_p, tablePath_ps_s, tablePath_ps_cv}, "|", 3) | |
| String | tablesPath_ps_d | TRANSFORM.Utilities.Strings.concatenate({tablePath_ps_p, tablePath_ps_s, tablePath_ps_d}, "|", 3) | |
| String | tablesPath_ps_lambda | TRANSFORM.Utilities.Strings.concatenate({tablePath_ps_p, tablePath_ps_s, tablePath_ps_lambda}, "|", 3) | |
| String | tablesPath_ps_mu | TRANSFORM.Utilities.Strings.concatenate({tablePath_ps_p, tablePath_ps_s, tablePath_ps_mu}, "|", 3) | |
| String | tablesPath_ps_s | TRANSFORM.Utilities.Strings.concatenate({tablePath_ps_p, tablePath_ps_s, tablePath_ps_s}, "|", 3) |
Contents
| Name | Description |
|---|---|
| Interpolation method selection | |
| Interpolation method selection for derivative wrt x | |
| Interpolation method selection for derivative wrt y | |
| getMolarMass | |
| Return thermodynamic state record from p and h | |
| Return thermodynamic state record from p and T | |
| Return thermodynamic state record from d and T | |
| Return thermodynamic state record from p and s | |
| Return thermodynamic state record from h and s | |
| Return density from p and h | |
| Total derivative of density_ph | |
| Return temperature from p and h | |
| Return specific entropy from p and h | |
| time derivative of specificEntropy_ph | |
| Return density from p and T | |
| Total derivative of density_pT | |
| Return specific enthalpy from p and T | |
| returns specific entropy for a given p and T | |
| Return pressure from d and T | |
| Return specific enthalpy from d and T | |
| returns specific entropy for a given d and T | |
| Return density from p and s | |
| Total derivative of density_ps | |
| Return temperature from p and s | |
| Return specific enthalpy from p and s | |
| Return density for given h and s | |
| Return pressure from h and s | |
| Return temperature from h and s | |
| Returns Prandtl number | |
| Return temperature from state | |
| Return velocity of sound from state | |
| Return isobaric expansion coefficient from state | |
| Return isentropic exponent | |
| Return specific heat capacity cp from state | |
| Return specific heat capacity cv from state | |
| Return density from state | |
| Return derivative of density wrt enthalpy at constant pressure from state | |
| Return derivative of density wrt pressure at constant enthalpy from state | |
| Return derivative of density wrt pressure at constant temperature from state | |
| Return derivative of density wrt temperature at constant pressure from state | |
| Return dynamic viscosity from state | |
| Return specific enthalpy from state | |
| Returns specific internal energy | |
| Return isothermal compressibility from state | |
| Return thermal conductivity from state | |
| Return pressure from state | |
| Return specific entropy from state |