کد متلب محاسبه ی آنتالپی و آنتروپی مواد خالص در حالت تغییر فاز ورودی ها: state,eos,T1,P1,T2,P2,cmp خروجی ها: [dH dS] نوع فایل: Matlab % state: fluid state (liquid: L, vapor: V) % eos: type of the equation of state (VR, VDW, RK, SRK, PR) % T1,P1: temperature (K) and pressure (bar) at state 1 % T2,P2: temperature (K) and pressure (bar) at state 2 % cmp: structure containing the properties of pure fluids % (A, B, C, D (coefficients of Cp equation), Tc, Pc, w) % outputs: % dH: change in enthalpy % dS: change in entropy Enthalpy and Entropy Departures at Each State State 1 State 2 ...
کد متلب محاسبه ی ضریب تراکم پذیری و حجم با معادلات حالات درجه سوم ورودی ها: state,eos,T,P,Tc,Pc,w خروجی ها: [Z V] نوع فایل: Matlab % Estimation of Z and V using cubic equations of state% % input% ( state: fluid state (liquid: L, vapor: V% ( eos: type of equation being used (VDW, RK, SRK, PR% ( T,P: temperature (K) and pressure (bar% ( Tc,Pc: critical temperature (K) and pressure (bar% w: acentric factor% Example ; T=350; P=9.4573; Tc=425.1; Pc=37.96; w=0.2 ; state ='v'; eos = 'vdw' (Z V] = cubicEOSZ(state,eos,T,P,Tc,Pc,w] Z = 0.8667 V = 2.6669e+03 ...