.TransiEnt.Basics.Functions.GasProperties.getIdealGasNCV_xM

Information

1. Purpose of model

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 mole fractions and molar mass and respective molar calorific values from a record.

2. Level of detail, physical effects considered, and physical insight

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

(no remarks)

5. Nomenclature

(no elements)

6. Governing Equations

(no remarks)

7. Remarks for Usage

If there are components in the gas which don't have a corresponding entry in the NCVm 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.

8. Validation

Tested in check model "TransiEnt.Basics.Functions.GasProperties.Check.TestNCVCalculation"

9. References

(no remarks)

10. Version History

Created by Lisa Andresen (andresen@tuhh.de), Sep 2016

Interface

function getIdealGasNCV_xM
  import TransiEnt;
  extends TransiEnt.Basics.Icons.Function;
  input TILMedia.GasTypes.BaseGas idealGasType "Ideal gas type" annotation(
    choicesAllMatching = true);
  input SI.MoleFraction[:] x_in "Mole fractions";
  input SI.MolarMass M_in "Molar mass";
  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_xM;

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos