Friday, 20 March 2026

Applications of Elemental Properties

This code in python demonstrates how to calculate molecular weights, physical properties like mole fractions, partial pressure calculations using the mixture composition and application like making molar solutions and calculation of gas solubilities using Henry's law. First of all, a dictionary of all elements and their atomic weights was created. Then from the name and number of atoms present in the formula, molecular weights were calculated. These were stored in a dictionary to access them later on. The code is profusely commented and explained using # and f-string. It is free to use and I hope it will be useful tonthe students of physical chemistry. Now for the code Author: My name is Ranjit Singh. I am retired from a petroleum company and a coding enthusiast. I am trying coding chemistry, physics and astronomy problems.

No comments:

Post a Comment

Visualizing Particle Kinematics with Python

Understanding the relationship between position, velocity, and acceleration is fundamental to physics. However, seeing how these variables e...