Remove spaces from folders
This commit is contained in:
parent
19c96868a4
commit
1fe79c2a95
4 changed files with 319 additions and 0 deletions
43
test_code/Ternary Diagram Practice.py
Normal file
43
test_code/Ternary Diagram Practice.py
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Tue Apr 29 12:12:56 2025
|
||||
|
||||
|
||||
Plots the water, acetone and n-octane ternary diagram at 25 °C as calculated
|
||||
by Aspen Plus.
|
||||
|
||||
|
||||
@author: lobo
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
import mpltern
|
||||
|
||||
|
||||
data_set = np.loadtxt("WaterAcetoneOctaneEquil.csv", delimiter = ',', skiprows=2)
|
||||
|
||||
water = data_set[:,1]
|
||||
acetone = data_set[:,2]
|
||||
octane = data_set[:,3]
|
||||
|
||||
ax = plt.subplot(projection='ternary')
|
||||
|
||||
ax.plot(acetone, octane, water)
|
||||
|
||||
#Tie Lines
|
||||
ax.plot([0,0],[0.9989768, 2.43E-06], [0.00102325, 0.9999976], 'b')
|
||||
ax.plot([0.1248013,0.1403329],[0.8706273,0.000389155],[0.00457142,0.8592779], 'r')
|
||||
ax.plot([0.2102607,0.3371009],[0.7798967,0.00720065],[0.00984261,0.6556985], 'k')
|
||||
ax.plot([0.2552231,0.5722035],[0.731291,0.055398],[0.0134858,0.3723985], 'g')
|
||||
ax.plot([0.4018703,0.6527512],[0.5729588,0.2466414],[0.0251709,0.1006074], 'c')
|
||||
|
||||
ax.grid()
|
||||
|
||||
ax.set_tlabel("Acetone")
|
||||
ax.set_llabel("n-Octane")
|
||||
ax.set_rlabel("Water")
|
||||
|
||||
|
||||
plt.show()
|
||||
1
test_code/WaterAcetoneOctaneEquil.csv
Normal file
1
test_code/WaterAcetoneOctaneEquil.csv
Normal file
|
|
@ -0,0 +1 @@
|
|||
NUMBER,MOLEFRAC WATER,MOLEFRAC ACETO-01,MOLEFRAC N-OCT-01
,,,
1,0.00102325,0,0.9989768
1,0.00313195,0.0887932,0.9080748
1,0.00581823,0.1496758,0.844506
1,0.00844799,0.1915717,0.7999803
1,0.0102965,0.2160187,0.7736848
1,0.0114953,0.2308099,0.7576948
1,0.0126262,0.2446168,0.7427569
1,0.0141047,0.2629019,0.7229934
1,0.016268,0.2900783,0.6936536
1,0.0195717,0.3322021,0.6482261
1,0.0251668,0.4018477,0.5729855
1,0.0273743,0.4267799,0.5458458
1,0.031737,0.4666277,0.5016353
1,0.0689948,0.6182799,0.3127253
1,0.0849716,0.639267,0.2757613
1,0.1006058,0.6527549,0.2466392
1,0.1713427,0.6670415,0.1616157
1,0.2516352,0.6426541,0.1057108
1,0.3384626,0.5947338,0.0668036
1,0.4302309,0.5301969,0.0395722
1,0.5263484,0.4525658,0.0210858
1,0.626094,0.3644045,0.00950154
1,0.7256479,0.2709878,0.00336432
1,0.8196334,0.1795186,0.000847999
1,0.9070264,0.0928556,0.000117929
1,0.9999976,0,2.43E-06
|
||||
|
104
test_code/ternary.ipynb
Normal file
104
test_code/ternary.ipynb
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue