Psat is calculated by Psat= 10^(A-(B/(T+C)) where T is the unknown. The script for Dew Temperature must be the sum of everything in equation one. Yi is equal to (xi*Psat)/P where xi is the Mole...

1 answer below »
This requires Numerical Methods and Python to solve the problem.


Psat is calculated by Psat= 10^(A-(B/(T+C)) where T is the unknown. The script for Dew Temperature must be the sum of everything in equation one. Yi is equal to (xi*Psat)/P where xi is the Mole fraction, Psat is the specific Psat of the component and P is 250 kPa. So yi= (x1*Psat1)/P + (x2*Psat2)/P + (x3*Psat3)/P (arbitrarily). This is what I got so far but T is unknown so that needs to be changed & this is just for the implementation of Psat’s for all T’s. I didn’t know that T was unknown. import math def itemeq(T: float, A: float, B: float, C: float): return math.exp(A* (B/(T+C))) #return math.exp(X(Y/(R+Z))) # driver code if __name__ == "__main__": T= 1.0 # R is constant, so assign it here N = input("Enter a number for number of items: ") N = (int(N)) # loop through N times for i in range(N): A= input(f"Enter a number for Afor Item {i+1}: ") A= (float(A)) B= input(f"Enter a number for B for Component {i+1}: ") B= (float(B)) C= input(f"Enter a number for C for Component {i+1}: ") C= (float(C)) result = itemeq(T, A, B, C) # call the method itemeq # print the result print(f"For given value of A={A},B={B} and C={C} Psat is {result}")
Answered 1 days AfterOct 30, 2022

Answer To: Psat is calculated by Psat= 10^(A-(B/(T+C)) where T is the unknown. The script for Dew Temperature...

Baljit answered on Oct 31 2022
60 Votes
In the Antoine’s equation we have given value of A,B,C and y for different material. We can calculate Psat by formula Psat= 10^(A-(B/(T+C)) where T is the unknown. And we have also given pressure 150kPa.
If the pressure is given, then we must decrease the temperature until the first liquid is formed. In both cases, this corresponds to adjusting T or p until Σxi = 1 .
We can calculate xi with formula xi=yi*P/Psat.
I have written a python code for calculation of Dew point and also plot the graph.
Python Code:-
import matplotlib.pyplot as plt # module for plot
def temp_d(N,P,y,A,B,C):
x=[]
T=130 # in celcius
tmp=[]
x1=[]
for t in range(0,150):
for...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here