Related Experiment Video
Updated: Nov 17, 2025

Analyzing Melts and Fluids from Ab Initio Molecular Dynamics Simulations with the UMD Package
Published on: September 17, 2021
SGTPy: A Python Code for Calculating the Interfacial Properties of Fluids Based on the Square Gradient Theory Using
Andrés Mejía1, Erich A Müller2, Gustavo Chaparro Maldonado1
1Departamento de Ingeniería Química, Universidad de Concepción, Concepción 4030000, Chile.
This study introduces SGTPy, an open-source Python code for calculating fluid interfacial properties using Square Gradient Theory (SGT) and SAFT-VR-Mie. SGTPy enables phase stability, equilibria calculations, and interfacial property computations for diverse fluid systems.
Area of Science:
- Thermodynamics and physical chemistry.
- Computational fluid dynamics and molecular modeling.
Background:
- Calculating interfacial properties is crucial for understanding fluid behavior.
- Existing methods may lack flexibility or ease of use for complex fluid mixtures.
Purpose of the Study:
- To present SGTPy, a novel open-source Python code for interfacial property calculations.
- To couple Square Gradient Theory (SGT) with the Statistical Associating Fluid Theory of Variable Range (SAFT-VR-Mie) for enhanced accuracy.
Main Methods:
- Development of SGTPy using standard Python numerical packages (NumPy, SciPy).
- Implementation of SGT coupled with SAFT-VR-Mie equation of state.
- Inclusion of multiple techniques for solving interfacial concentration, such as path technique and orthogonal collocation.
- Facilitation of integration with Fortran and C++ subroutines via Cython and f2py.
Main Results:
- SGTPy successfully calculates interfacial concentration profiles and surface tension for pure fluids and mixtures.
- The code handles phase stability, phase equilibria (including multiphase flash, bubble/dew points), and parameter optimization.
- Demonstrated capabilities through Jupyter notebooks with examples for pure and multicomponent systems.
Conclusions:
- SGTPy provides a versatile and extensible platform for interfacial property calculations.
- The open-source nature and integration capabilities of SGTPy promote further research and application in fluid thermodynamics.
More Related Videos
Related Concept Videos
Surface Tension of Fluid
Surface tension varies...
Accelerating Fluids
The motion of the liquid within this infinitesimal cylinder is considered to obtain the pressure difference. Three vertical forces act on this liquid:
Newtonian Fluid: Problem Solving
A velocity gradient forms within the fluid when a Newtonian fluid is placed between two parallel plates, with...
Vapor Pressure of Fluid
When a liquid is placed in a closed container with a small air space, and the space is evacuated, vapor molecules will...
Viscosity of Fluid
Pressure of Fluids

