Comment calculer le réactif limitant en Python avec UliEngineering

Vous pouvez facilement calculer le réactif limitant d’une réaction chimique en utilisant la bibliothèque Python UliEngineering :

limiting_reagent.py
from UliEngineering.Chemistry.Stoichiometry import limiting_reagent

# Calculer le réactif limitant pour 2H2 + O2 -> 2H2O
# Avec 2 moles de H2 et 1 mole de O2
limiting = limiting_reagent({"H2": 2.0, "O2": 1.0}, {"H2": 2, "O2": 1})
print(f"Réactif limitant (2H2, 1O2) : {limiting}")

# Calculer le réactif limitant avec un excès de H2
limiting = limiting_reagent({"H2": 5.0, "O2": 1.0}, {"H2": 2, "O2": 1})
print(f"Réactif limitant (5H2, 1O2) : {limiting}")

# Calculer le réactif limitant avec un excès de O2
limiting = limiting_reagent({"H2": 1.0, "O2": 2.0}, {"H2": 2, "O2": 1})
print(f"Réactif limitant (1H2, 2O2) : {limiting}")

Exemple de sortie

limiting_reagent_output.txt
Réactif limitant (2H2, 1O2) : None
Réactif limitant (5H2, 1O2) : O2
Réactif limitant (1H2, 2O2) : H2

Le calcul du réactif limitant détermine quel réactif sera entièrement consommé en premier lors d’une réaction chimique, limitant ainsi la quantité de produit qui peut être formée. Ceci est fondamental pour la stœchiométrie, la planification des réactions et l’optimisation des procédés chimiques. L’identification du réactif limitant permet aux chimistes de prédire les rendements maximaux en produits et d’éviter le gaspillage de réactifs en excès.

Le réactif limitant est déterminé en calculant le rapport entre la quantité disponible de chaque réactif et son coefficient stœchiométrique : $\text{rapport} = \frac{n_{disponible}}{n_{stoechiometrique}}$. Le réactif ayant le plus petit rapport est le réactif limitant. Si tous les rapports sont égaux, il n’y a pas de réactif limitant (les réactifs sont en proportion stœchiométrique parfaite).

Articles liés


Check out similar posts by category: Chemistry, Python