packageExternalTwoPhaseMedium
Generic external two phase medium package
Extends from Modelica.Media.Interfaces.PartialTwoPhaseMedium (Base class for two 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 |
| Boolean | smoothModel (from PartialTwoPhaseMedium) | false | = true, if the (derived) model should not generate state events |
| Boolean | onePhase (from PartialTwoPhaseMedium) | false | = true, if the (derived) model should never be called with two-phase inputs |
| FluidConstants | fluidConstants (from PartialTwoPhaseMedium) | Constant data for the fluid | |
| String | libraryName | "UnusableExternalMedium" | Name of the external fluid property computation library |
| String | substanceName | substanceNames[1] | Only one substance can be specified |
| FluidConstants | externalFluidConstants | ||
| InputChoice | inputChoice | InputChoice.ph | Default choice of input variables for property computations |
Contents
| Name | Description |
|---|---|
| ThermodynamicState | |
| SaturationProperties | |
| molarMass | Return the molar mass of the medium |
| getMolarMass | |
| getCriticalTemperature | |
| getCriticalPressure | |
| getCriticalMolarVolume | |
| Return thermodynamic state record from p and h | |
| Return thermodynamic state record from p and T | |
| Return thermodynamic state record from p and T - does not use workaround to handle ModelicaError | |
| 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 partial derivative from a thermodynamic state record | |
| Return density from p and h | |
| returns density for given p and h | |
| Total derivative of density_ph | |
| Return temperature from p and h | |
| returns temperature for given p and h | |
| Return specific entropy from p and h | |
| returns specific entropy for a given 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 | |
| Return specific enthalpy from p and T - doesn't use workaround for ModelicaError | |
| returns specific enthalpy for given p and T | |
| returns specific entropy for a given 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 | |
| returns specific entropy for a given d and T | |
| Return density from p and s | |
| Return density from p and s | |
| Total derivative of density_ps | |
| Return temperature from p and s | |
| returns temperature for given p and s | |
| Return specific enthalpy from p and s | |
| Return enthalpy from p and s | |
| Return density for given h and s | |
| Return density for given h and s | |
| Return pressure from h and s | |
| Return pressure for given h and s | |
| Return temperature from h and s | |
| Return temperature for given 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 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 | |
| Return saturation properties from p | |
| Return saturation properties from the state | |
| Return saturation properties from p | |
| Return saturation properties from the state | |
| set the thermodynamic state on the bubble line | |
| set the thermodynamic state on the dew line | |
| Returns derivative of saturation temperature w.r.t.. pressureBeing this function inefficient, it is strongly recommended to use saturationTemperature_derp_sat and never use saturationTemperature_derp directly | |
| Returns derivative of saturation temperature w.r.t.. pressure | |
| Returns bubble point density derivative | |
| Returns dew point density derivative | |
| Returns bubble point specific enthalpy derivative | |
| Returns dew point specific enthalpy derivative | |
| Returns bubble point density | |
| Returns dew point density | |
| Returns bubble point specific enthalpy | |
| Returns dew point specific enthalpy | |
| Return saturation pressure time derivative | |
| Returns surface tension sigma in the two phase region | |
| Returns bubble point specific entropy | |
| Returns dew point specific entropy |