Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -254,7 +254,7 @@ def calculate_mixture_density(P, Z, T, mole_fractions, MWs, b_vol_shifts):
|
|
| 254 |
# Step 3: Corrected molar density
|
| 255 |
try:
|
| 256 |
corrected_molar_density = molar_density / (1 - b_mixture * molar_density)
|
| 257 |
-
print(f"Corrected Molar Density: {corrected_molar_density:.6f} lb-mole/ft³")
|
| 258 |
except ZeroDivisionError:
|
| 259 |
raise ValueError("Volume shift correction caused division by zero.")
|
| 260 |
|
|
|
|
| 254 |
# Step 3: Corrected molar density
|
| 255 |
try:
|
| 256 |
corrected_molar_density = molar_density / (1 - b_mixture * molar_density)
|
| 257 |
+
#print(f"Corrected Molar Density: {corrected_molar_density:.6f} lb-mole/ft³")
|
| 258 |
except ZeroDivisionError:
|
| 259 |
raise ValueError("Volume shift correction caused division by zero.")
|
| 260 |
|