.TRANSFORM.PeriodicTable.CalculateMolarMass

Information

Returns the molar mass (kg/mol) of a chemical formula.

For example, calling the function with "CF3CH2F" returns 0.102031066 kg/mol.

Interface

function CalculateMolarMass
  input String chemicalFormula = "" "Chemical formula (e.g., 'C6H6'";
  output SI.MolarMass molarMass "Molar mass";
end CalculateMolarMass;

Generated at 2024-12-03T19:25:34Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos