A web-based tool for calculating gas flow dilution using sonic nozzles according to ISO 9300:2022 standards.
If you appreciate my work, please consider giving it a star! 🤩
Try it now at Lasersmart Dilution!

This application helps calculate and visualize gas flow dilution using sonic nozzles. It implements the AGA8/GERG-2008 equations of state for accurate gas property calculations and follows ISO 9300:2022 standards for sonic nozzle flow calculations.
- Two main calculation modes:
- General gas dilution
- Calibration gas dilution
- Real-time calculation of mass flow rates
- Support for multiple gas mixtures using GERG-2008 equation of state
- Configurable inlet pressures (0-1000 kPa)
- Selectable standard orifice sizes (1-1000 microns)
- Automatic calculation of:
- Mass flow rates
- Critical pressures
- Gas mixture concentrations
- Final calibration gas concentration
- Predefined calibration concentrations (5-1000 ppm)
- Scientific notation display for precise values
- Responsive design for desktop and mobile use
- Detailed gas properties display for each inlet
- Select gas mixtures for both inlets
- Adjust inlet pressures using the sliders
- Choose appropriate orifice sizes
- View results in the table below
- Set the temperature
- Configure the dilution gas (typically N₂)
- Select the calibration gas concentration
- Adjust pressures and orifice sizes
- View resulting concentration and flow rates
- Optional: View detailed gas properties for each inlet
Note: The mass of the calibration gas (ppm values) is ignored in calculations as 1000 ppm = 0.1% is within ISO 9300:2022 standard tolerance.
- React 19
- HeroUI 2.7
- TailwindCSS 4
- WebAssembly (via @sctg/aga8-js)
- TypeScript 5.7
- Vite 6
# Clone the repository
git clone https://github.com/sctg-development/flow-dilution.git
# Install dependencies
cd flow-dilution
npm install
# Start development server
npm run dev
All calculations are performed locally in your browser using WebAssembly technology. No data is ever sent to external servers or third parties. The application can even work offline once loaded, ensuring complete privacy of your calculations and gas mixture configurations.
Key privacy features:
- 100% client-side calculations
- No data collection or tracking
- No external API calls
- Works offline
- No server-side processing
The application uses the GERG-2008 equation of state through a WebAssembly port (@sctg/aga8-js) to calculate gas properties. Flow calculations follow ISO 9300:2022 standards for sonic nozzles, including:
- Critical flow factor calculations
- Discharge coefficient estimation
- Mass flow rate computation
- Critical pressure ratio verification
- @sctg/aga8-js - GERG-2008 equation of state
- vite-react-heroui-template - Base template
Copyright (c) 2024-2025 Ronan LE MEILLAT
This project is licensed under the GNU Affero General Public License v3.0 or later - see the LICENSE file for details.
Ronan LE MEILLAT
SCTG Development
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
- Based on ISO 9300:2022 standards
- Uses GERG-2008 equation of state
- Implements AGA8 calculations