modelCheckFlow1DFV2phMassBalance

Checks Flow1DFV2ph equations for mass conservation

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model checks the dynamic mass balance equations of Flow1DFV2ph, by prescribing enthalpy and pressure values that will ensure complete coverage of the different cases.

Parameters

TypeNameDefaultDescription
IntegerN2
SI.Pressurepzero10Small deltap for calculations
SI.PressurepcMedium.fluidConstants[1].criticalPressure
SI.SpecificEnthalpyhzero1e-3Small value for deltah

Components

TypeNameDefaultDescription
SmoothMedium.BaseProperties[N]fluidProperties of the fluid at the nodes
Medium.SaturationPropertiessatProperties of saturated fluid
Medium.ThermodynamicStatedewThermodynamic state at dewpoint
Medium.ThermodynamicStatebubbleThermodynamic state at bubblepoint
Medium.AbsolutePressurepFluid pressure for property calculations
Medium.Temperature[N]TFluid temperature
Medium.TemperatureTsSaturated water temperature
Medium.SpecificEnthalpy[N]hFluid specific enthalpy
Medium.SpecificEnthalpyhlSaturated liquid temperature
Medium.SpecificEnthalpyhvSaturated vapour temperature
SI.PerUnit[N]xSteam quality
Medium.Density[N]rhoFluid density
Units.LiquidDensityrholSaturated liquid density
Units.GasDensityrhovSaturated vapour density
SI.DerEnthalpyByPressuredhldpDerivative of saturated liquid enthalpy by pressure
SI.DerEnthalpyByPressuredhvdpDerivative of saturated vapour enthalpy by pressure
Medium.Density[N - 1]rhobarFluid average density
SI.DerDensityByPressure[N]drdpDerivative of density by pressure
SI.DerDensityByPressure[N - 1]drbdpDerivative of average density by pressure
SI.DerDensityByPressuredrldpDerivative of saturated liquid density by pressure
SI.DerDensityByPressuredrvdpDerivative of saturated vapour density by pressure
SI.DerDensityByEnthalpy[N]drdhDerivative of density by enthalpy
SI.DerDensityByEnthalpy[N - 1]drbdh1Derivative of average density by left enthalpy
SI.DerDensityByEnthalpy[N - 1]drbdh2Derivative of average density by right enthalpy
RealAA
RealAA1
Real[N - 1]rhobar_check
Real[N - 1]rhobar_errrhobar - rhobar_check
Real[N - 1]case

Contents

NameDescription
Medium
SmoothMedium