functioncalcProperties_duX_ext
Return thermodynamic state record from d and u
Extends from MultiPhaseMixture.Icons.ExternalFunction.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Density | d | Density | |
| Modelica.SIunits.SpecificInternalEnergy | u | Specific internal energy | |
| Modelica.SIunits.MassFraction[nC] | X | reference_X | Mass fractions |
| Integer | X_unit | UnitBasis.MassFraction | |
| Integer | phase | 0 | 2 for two-phase, 1 for one-phase, 0 if not known |
| MultiPhaseMixture.Templates.ExternalObjects.ExternalMediaObject | eo |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.AbsolutePressure | p_overall_ | pressure | |
| Modelica.SIunits.Temperature | T_overall_ | temperature | |
| Modelica.SIunits.Density | d_overall_ | density | |
| Modelica.SIunits.SpecificEnthalpy | h_overall_ | specific enthalpy | |
| Modelica.SIunits.SpecificEntropy | s_overall_ | specific entropy | |
| Modelica.SIunits.Density[nP] | d_1ph_ | density | |
| Modelica.SIunits.SpecificEnthalpy[nP] | h_1ph_ | specific enthalpy | |
| Modelica.SIunits.SpecificEntropy[nP] | s_1ph_ | specific entropy | |
| Modelica.SIunits.PrandtlNumber[nP] | Pr_1ph_ | prandtl number | |
| Modelica.SIunits.VelocityOfSound[nP] | a_1ph_ | velocity of sound | |
| Modelica.SIunits.CubicExpansionCoefficient[nP] | beta_1ph_ | isobaric expansion coefficient | |
| Modelica.SIunits.SpecificHeatCapacity[nP] | cp_1ph_ | specific heat capacity cp | |
| Modelica.SIunits.SpecificHeatCapacity[nP] | cv_1ph_ | specific heat capacity cv | |
| Modelica.SIunits.Compressibility[nP] | kappa_1ph_ | compressibility | |
| Modelica.SIunits.ThermalConductivity[nP] | lambda_1ph_ | thermal conductivity | |
| Modelica.SIunits.DynamicViscosity[nP] | eta_1ph_ | dynamic viscosity | |
| Modelica.SIunits.DerPressureByTemperature[nP] | dpdT_dN_1ph_ | Derivative of pressure w.r.t. temperature | |
| Modelica.SIunits.DerPressureByDensity[nP] | dpdd_TN_1ph_ | Derivative of pressure w.r.t. density | |
| Integer | nbrOfPresentPhases_ | Number of present phases, 0= unknown,1=single phase | |
| Integer[nP] | presentPhaseIndex_ | ||
| Modelica.SIunits.MassFraction[nP*nC] | phaseCompositions_ | matrix with composition for each phase | |
| Modelica.SIunits.MoleFraction[nP] | phaseFractions_ | molar fraction of the fluid that is in the specified phase |