Name | Description |
---|---|
To_VolumeFraction | Model to convert between mass fraction and volume fraction |
Examples | Collection of models that illustrate model use and test models |
This component converts mass fraction to volume fraction for an ideal gas.
The default value for the parameter MMBul
assumes that the bulk medium is air.
The model assumes that the concentration
of the measured substance is small enough to be neglected in the molar mass
of the mixture.
Extends from Buildings.BaseClasses.BaseIcon (Base icon).
Type | Name | Default | Description |
---|---|---|---|
MolarMass | MMMea | Molar mass of measured substance [kg/mol] | |
MolarMass | MMBul | Modelica.Media.IdealGases.Co... | Molar mass of bulk medium [kg/mol] |
Type | Name | Description |
---|---|---|
input RealInput | m | Mass fraction |
output RealOutput | V | Volume fraction |
model To_VolumeFraction "Model to convert between mass fraction and volume fraction" extends Buildings.BaseClasses.BaseIcon;Modelica.Blocks.Interfaces.RealInput m "Mass fraction"; Modelica.Blocks.Interfaces.RealOutput V "Volume fraction"; parameter Modelica.SIunits.MolarMass MMMea "Molar mass of measured substance"; parameter Modelica.SIunits.MolarMass MMBul=Modelica.Media.IdealGases.Common.SingleGasesData.Air.MM "Molar mass of bulk medium"; protected parameter Real con = MMBul/MMMea "Conversion coefficient from mass to volume fraction"; equation V = con * m;end To_VolumeFraction;