Free Chemical Process Simulator Toolkit using Scipy Priyank

  • Slides: 7
Download presentation
Free Chemical Process Simulator Toolkit using Scipy Priyank Tiwari M. Chem 2 nd year

Free Chemical Process Simulator Toolkit using Scipy Priyank Tiwari M. Chem 2 nd year Institute Of Chemical Technology, Mumbai

Input üDatabase: Perry Chemical Engineering Handbook 7 th Edition • Sample input data sheet

Input üDatabase: Perry Chemical Engineering Handbook 7 th Edition • Sample input data sheet import Ideal. Gas ig=Ideal. Gas(Name)

Fit Equation Cubic Equation of State. Of Parameters State • Equation of States ü

Fit Equation Cubic Equation of State. Of Parameters State • Equation of States ü Van Der Waals Equation of State ; ‘vdw’ ü Ping Robinson Equation of State; ‘pr’ ü Redlich-Kwong Equation of State; ‘rk’ ü Soave-Redlich-Kwong Equation of State; ‘srk’ ü Peng-Robinson-Stryjek-Vera Equation of State; 'prsv 2' ü Schwartzentruber & Renon Equation of State; ‘scrk’ ü ‘scrkdual’ & ‘srkdual’

Get Saturation Pressure GRg=GRl P Psat V

Get Saturation Pressure GRg=GRl P Psat V

def func(P, T, g. R, get. Compressibility. Factors): ZG, ZL = get. Compressibility. Factors(T,

def func(P, T, g. R, get. Compressibility. Factors): ZG, ZL = get. Compressibility. Factors(T, P) if ZG == ZL: return P else: g. RG = g. R(T, P, ZG) g. RL = g. R(T, P, ZL) return g. RG – g. RL Psat = scipy. optimize. brentq(func, Pmin, Pmax, args=(T, self. g. R, self. get. Compressibility. Factors)) import Cubic. Equation. Of. State eos = Cubic. Equation. Of. State(Name, Type. EOS)

Non Random Two Liquid : NRTL import NRTL acm = NRTL(dict_molfraction. keys()) GE, Gamma

Non Random Two Liquid : NRTL import NRTL acm = NRTL(dict_molfraction. keys()) GE, Gamma = acm. getgamma(T, dict_molfraction)

Thank You

Thank You