This model is used to calculate the net calorific value (NCV), also known as lower heating value (LHV) of a fuel gas mixture based on mass fractions and respective mass weighted 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 NCV values record, they will just be ignored, giving a faulty calorific value. The function will throw a warning.
NCVIn was added to give the possibility to define a constant calorific value. If this value is set to 0, the NCV will be calculated by the composition of the medium.
Tested in check model "TransiEnt.Basics.Functions.GasProperties.Check.TestNCVCalculation"
(no remarks)
Created by Lisa Andresen (andresen@tuhh.de), Sep 2016
function getIdealGasNCV_xi extends TransiEnt.Basics.Icons.Function; input TILMedia.GasTypes.BaseGas idealGasType "Ideal gas type" annotation( choicesAllMatching = true); input SI.MassFraction[:] xi_in "Mass fractions"; input SI.SpecificEnthalpy NCVIn "Set this to a specific value for a constant NCV or to zero for NCV-calculation"; output SI.SpecificEnthalpy NCVOut "Returned NCV"; end getIdealGasNCV_xi;