Buildings.Fluids.Sensors.Conversions

Package with conversions for sensor models

Information


This package contains models to convert sensor output.

Package Content

NameDescription
Buildings.Fluids.Sensors.Conversions.MassFractionVolumeFraction MassFractionVolumeFraction Model to convert between mass fraction and volume fraction


Buildings.Fluids.Sensors.Conversions.MassFractionVolumeFraction Buildings.Fluids.Sensors.Conversions.MassFractionVolumeFraction

Model to convert between mass fraction and volume fraction

Buildings.Fluids.Sensors.Conversions.MassFractionVolumeFraction

Information


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 specy is small enough to be neglected in the molar mass of the mixture.


Parameters

TypeNameDefaultDescription
MolarMassMMMea Molar mass of measured substance [kg/mol]
MolarMassMMBulModelica.Media.IdealGases.Co...Molar mass of bulk medium [kg/mol]

Connectors

TypeNameDescription
RealSignalmMass fraction
RealSignalVVolume fraction

Modelica definition

model MassFractionVolumeFraction 
  "Model to convert between mass fraction and volume fraction" 
  extends Buildings.BaseClasses.BaseIcon;
  Modelica.Blocks.Interfaces.RealSignal m(redeclare type SignalType = 
        Modelica.SIunits.MassFraction) "Mass fraction";
  Modelica.Blocks.Interfaces.RealSignal V(redeclare type SignalType = 
        Modelica.SIunits.VolumeFraction) "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 MassFractionVolumeFraction;

HTML-documentation generated by Dymola Fri Oct 31 16:23:49 2008.