.TransiEnt.Basics.Functions.GasProperties.getMolarMasses_fromRecord

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

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

Interface

function getMolarMasses_fromRecord
  extends TransiEnt.Basics.Icons.Function;
  import Modelica.Utilities.Strings;
  parameter TransiEnt.Basics.Records.GasProperties.MolarMasses molarmasses;
  input String[:] components_in "shortened fuel component names";
  output Real[size(components_in, 1)] M "molar mass of components in input vector";
end getMolarMasses_fromRecord;

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