From 5f1dc2d06cee531430bd4885dfa65f729e1ec7dc Mon Sep 17 00:00:00 2001 From: DHildt Date: Fri, 28 Feb 2025 14:41:18 -0500 Subject: [PATCH] Update raoult_law_kvalue_Hildt.py --- raoult_law_kvalue.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/raoult_law_kvalue.py b/raoult_law_kvalue.py index 4bff56e..531c9ed 100644 --- a/raoult_law_kvalue.py +++ b/raoult_law_kvalue.py @@ -34,8 +34,10 @@ def raoult_law_kvalue( T, P, a, *gamma): K = np.zeros(ns) Ps = antoine(a, T) K = Ps/P - if gamma: + if gamma = 1: + print('The mixture is ideal') + else + print('The mixture is not ideal') K *= gamma - return K