This model is used to calculate the gross calorific value (GCV), also known as higher heating value (HHV) of a fuel gas mixture based on mole fractions and molar mass and respective molar calorific values from a record.
(no remarks)
(no remarks)
(no remarks)
(no elements)
(no remarks)
If there are components in the gas which don't have a corresponding entry in the GCVm values record, they will just be ignored, giving a faulty calorific value. The function will throw a warning.
GCVIn was added to give the possibility to define a constant calorific value. If this value is set to 0, the GCV will be calculated by the composition of the defined medium.
Tested in check model "TransiEnt.Basics.Functions.GasProperties.Check.TestGCVCalculation"
(no remarks)
Created by Lisa Andresen (andresen@tuhh.de), Sep 2016
function getRealGasGCV_xM extends TransiEnt.Basics.Icons.Function; input TILMedia.VLEFluidTypes.BaseVLEFluid realGasType "Real gas type" annotation( choicesAllMatching = true); input SI.MoleFraction[:] x_in "Mole fractions"; input SI.MolarMass M_in "Molar mass"; input SI.SpecificEnthalpy GCVIn "Set this to a specific value for a constant GCV or to zero for GCV calculation"; output SI.SpecificEnthalpy GCVOut "Returned GCV"; end getRealGasGCV_xM;