functiongetMolarMasses_fromRecord

gets molar masses from record

Extends from TransiEnt.Basics.Icons.Function.

Information

1. Purpose of model

This function supplies the molar masses of the components passed by the input vector.

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

No physical effects considered.

3. Limits of validity

(no remarks)

4. Interfaces

(no remarks), just input and output vectors.

5. Nomenclature

(no elements)

6. Governing Equations

No governing equations. The function just searches the name vector in the molar masses record for the component names passed. Then it returns the molar mass defined in the molar mass vector in the record.

7. Remarks for Usage

  • To unify this function the input vector must contain shortened component names or chemical formulas for the components, e.g. "Methane", or "CH4"
  • If there's no corresponding entry for the component in the molar masses record, the molar mass will be supplied as zero, which might cause troubles (e.g. division by zero)

8. Validation

No validation needed. Tested in check model "TransiEnt.Basics.Functions.GasProperties.Check.TestConvertMoleToMassFraction"

9. References

(no remarks)

10. Version History

Created by Jan Braune (jan.braune@tu-harburg.de), Mar 2015

Revised by Lisa Andresen (andresen@tuhh.de), Dec 2015

Inputs

TypeNameDefaultDescription
Stringcomponents_inshortened fuel component names

Outputs

TypeNameDefaultDescription
RealMmolar mass of components in input vector