Bronkhorst

How the ideal gas law helped us creating a software tool called Fluidat

September 15, 2020 Lammert Heijnen
ideal gas law helped to creating a software tool

In today’s blog I would like to take you with me into the world of thermodynamics and explain how the ideal gas law helped us creating a software tool called Fluidat on the Net.

Fluidat®

For an R&D Engineer at Bronkhorst calculating pressure drops and using physical properties in gas conversion models of thermal mass flow meters are frequently recurring activities. These physical properties are used to design and select flow meters, and to calibrate the flow devices during the production process on the customers’ requirements.

Therefore, a software was developed which can easily generate the physical fluid properties based on theoretical calculation methods. The application is called Fluidat on the NetLet me start with explaining the basics of the ideal gas law.

What is the ideal gas law?

The ideal gas law - an ideal model

The origin of Fluidat is directly related to the ideal gas law - the combination of Boyle and Gay-Lussac Law or universal gas law - resulting in the following equation of state and thermodynamic law of a hypothetical ideal gas:

PV = nRT

where:
  • P = pressure of the gas;
  • V = volume of the gas;
  • n =  amount of gas (molecules);
  • R = universal gas constant;
  • T = absolute temperature of the gas.

Equations of state like the ideal gas law are thermodynamic equations relating state variables, like pressure and temperature, and are useful in describing properties of fluids, either gas or liquid. For example, if in closed volume the pressure is increased by moving a piston, the resulting temperature can be calculated.

The ideal gas law - first adaption

However, the ideal gas law is based on an ideal model, but in practice I have experience that real gases do not behave in this way. Molecules are not point particles but do have volume and can also interact with each other.

The first adaption to the ideal gas law was performed by Johannes Diderik van der Waals, a famous Dutch theoretical physicist:

hypothetical ideal gas law

where:

  • a is the interaction energy between molecules;
  • b is the occupied volume by the molecules.

This equation gives a much better prediction of real gas behaviour in practice. Each gas (or mixture) has different a and b coefficients. When the molecules do not interact (a=0) and do not occupy space (b=0), the result is again the ideal gas law.

The ideal gas law - Benedict-Webb-Rubin equation

The equation of state used in Fluidat is based on a more advanced virial equation of state (an expression of a system derived from statistical mechanics, usually describing a system in equilibrium as a power series of particle interactions). It is called the Benedict-Webb-Rubin equation, named after the three researchers (M. Benedict, G.B. Webb and L.C. Rubin) working at the research laboratory of M. W. Kellogg Limited who determined the model. From this equation of state the non-ideal behavior of fluids can be derived, a required input for the calculation of physical properties like:

  • density
  • heat capacity
  • thermal conduction
  • viscosity
  • and vapor pressure

The Benedict-Webb-Rubin equations are calculated using intrinsic properties, like molar mass, critical properties, polarity, acentric factor and other parameters. These intrinsic properties characterize the fluid, including effects like compressibility, variable specific heat capacity, and Van der Waals forces. These properties will influence the physical properties of a fluid.

generalized compressibility factor Z diagram
Generalized compressibility factor Z diagram for ideal gas law


For example, the acentric factor (the shape of the molecule) will influence the viscosity for large hydrocarbon molecules. And the critical properties are most important to calculate the reduced (or normalized) properties; all calculations performed in the Benedict-Webb-Rubin equations are based on reduced properties, thus resulting in a universal gas model. The reduced properties are calculated by dividing the actual state properties by the critical properties (for example P_r=P/P_c, where P_r is the reduced pressure and P_c is the critical pressure).

Basically, the Benedict-Webb-Rubin equation is a model to derive the compressibility factor (the deviation from ideality) of fluids:

The compressibility factor is required for property calculations and can be found in this graph by looking up the value for a certain reduced temperature T_r=T/T_c and reduced pressure p_r=p/p_c (solid lines).

The total non-ideal behaviour of fluids is summarized in the compressibility factor Z:

compressibility factor z  for ideal gas law

where Z = 1 for an ideal gas. Under normal operating conditions, usually the compressibility factor is Z < 1 for common gases, except Hydrogen and Helium for which under normal circumstances the compressibility factor is Z > 1 resulting in different behavior compared to other gases (for example the Joule-Thomson effect when a real gas is throttled through a valve or porous plug).

When the compressibility factor is known, the physical properties like density, specific heat capacity, thermal conductivity, and viscosity can be calculated using specific calculation methods. These physical properties can be used in other calculations.

compressibility factor z

Real gas behavior

It is important to include real gas behavior in a mass flow controller (MFC), because the ideal gas law can differ significantly from the real gas behavior, especially near the critical point and vapor pressure line. Some important gases, like CO2 and SF6 are at critical temperature at room temperature, thus real gas compensation is important to achieve high accuracy for these gases.

Physical properties for calibration and gas conversion

The physical properties are also required for calibration and gas conversion; thus, an accurate fluid database is necessary to deliver customer requirements. Without the Fluidat database, for me as an engineer, it would be impossible to accurately predict the behavior of mass flow controllers, because you require highly accurate property calculations, for example for conversion model for thermal instruments.

Bronkhorst thermal mass flow meter with Fluidat on board
Bronkhorst thermal mass flow meter with Fluidat on board

For this, Bronkhorst has developed a thermal mass flow meter for gases with Fluidat on board. This flow meter is equipped with an on-board gas conversion model, including a gas database for 100 unique gases. For more information check the EL-FLOW Prestige product pages.

Fluidat, a fluid database

In conclusion, Fluidat is a valuable fluid database when it comes to mass flow meters, both for our internal use and to our customers, either indirect during the calibration process or directly on our website. At this moment the database contains fluid data of > 1800 fluids.

Do you already benefit from Fluidat?  Register for a FREE account of Fluidat today!

Would you like more information about Fluidat?

Check the Fluidat page Contact for advice

Bronkhorst USA inc.

57 South Commerce Way
Suite 120
USA - Bethlehem, PA 18017 
Tel.  +1-610-866-6750
[email protected]

     
Copyright © 2020 Bronkhorst. All rights reserved.     Sitemap     Disclaimer     Privacy note