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

March 1, 2024 Lammert Heijnen
ideal gas law

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.


For an R&D Engineer at Bronkhorst, calculating pressure drops and using physical properties in gas conversion models of thermal mass flow instruments are frequently recurring activities. These physical properties are used to design and select flow devices, and to calibrate the flow meters 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 Net
Let 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

  • 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:

ideal gas law van der waals
Generalized compressibility factor Z diagram.


  • 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 behaviour of fluids can be derived, a required input for the calculation of physical properties like:

  • density
  • heat capacity
  • thermal conduction
  • viscosity
  • and vapour 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 factorz diagram
Generalized compressibility factor Z diagram.


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 perfomed 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

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 behaviour 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.


Real gas behaviour

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


compressibility factor z

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 te deliver customer requirements. Without the Fluidat database, for me as an engineer, it would be impossible to accurately predict the behaviour 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!

Do you want to know more? 

Check the Fluidat page

Would you like more information about FLUIDAT?

Stay up to date with the latest developments in high tech with our newsletter.

Contact us for advice Subscribe to our Newsletter


1 Kings Court
Willie Snaith Road
Newmarket Suffolk CB8 7TG
Tel. +44 1223 833222
[email protected]

         Social Responsibility
Copyright © 2024 Bronkhorst. All rights reserved.     Sitemap     Disclaimer     Privacy note