• No results found

1 Derivation of the Fugacity Coefficient for the Peng-Robinson ... - FET

N/A
N/A
Protected

Academic year: 2021

Share "1 Derivation of the Fugacity Coefficient for the Peng-Robinson ... - FET"

Copied!
13
0
0

Loading.... (view fulltext now)

Full text

(1)

University of Jordan

Chemical Engineering Department Chemical Engineering Thermodynamics 905721

Dr. Ali Khalaf Al-Matar aalmatar@ju.edu.jo

Exam I Solution 20/11/2003

1

Derivation of the fugacity coefficient for the

Peng-Robinson EOS

The derivation is similar to the derivation given in class for the van der Waal’s EOS. We need to get the equation of state in its mathematical form combined with its associated mixing rules. One of the tricks in the question is that re-gardless of the complexity of the combining rules given, the derivation is done once. This is a result of the combining rules being composition independent. Consequently, we need only to derive the expression for the fugacity coefficient once (not three times for every case).

You can solve this problem using a simple or a hard approach. The simple approach includes using the residual Helmholtz free energy and its relation to fugacity. The hard approach involves the brute force calculation of the deriv-atives required within the volume integral for fugacity. I am solving using the residual Helmholtz free energy approach.

1.1

Obtain the EOS

The Peng-Robinson EOS is given as P = RT v − b− a v(v + b) + b(v − b) = RT v − b− a v2+ 2vb − b2 (1)

The mixing rules to be used are

a = m X i=1 m X j=1 xixjaij = 1 n2 T m X i=1 m X j=1 ninjaij (2) b = m X i=1 m X j=1 xixjbij = 1 n2 T m X i=1 m X j=1 ninjbij (3)

With the cross parameters given by the appropriate combining rule. Notice that the formulation in the expressions for the a and b parameters is similar which reduces the amount of derivatives to be evaluated.

(2)

1.2

Convert the EOS to Density and Compressibility

No-tation

The equation of state to be used (regardless of its complexity) needs to be con-verted to the density (specific volume) and compressibility factor. Consequently, the Peng-Robinson EOS becomes

Z = 1 1 − bρ− aρ RT 1 1 + 2bρ − b2ρ2 (4)

1.3

Obtain an Expression for Helmholtz Free Energy

We have an equation of state that we can apply for a pure component to obtain the residual Helmholtz free energy. At a constant temperature and volume we can use (a − aIG) RT = ρ Z 0 Z − 1 ρ dρ = bρ Z 0 Z − 1 bρ d(bρ) (5)

From the Peng-Robinson EOS

Z − 1 = 1 1 − bρ− aρ RT 1 1 + 2bρ − b2ρ2− 1 − bρ 1 − bρ = bρ 1 − bρ− aρ RT 1 1 + 2bρ − b2ρ2 (6)

Substitute this expression into the residual Helmholtz free energy (a − aIG) RT = bρ Z 0 1 1 − bρd(bρ) + a bRT bρ Z 0 1 1 + 2bρ − b2ρ2d(bρ)

The first term to the right hand side of the equal sign is easy to integrate. However, the second can be obtained from the tables of integration formulas as

Z 1 a0x2+ b0x + c0dx = 1 (b02− 4a0c0)1/2ln ¯ ¯ ¯ ¯ ¯ 2a0x + b0¡b02− 4a0c0¢1/2 2a0x + b0+ (b02− 4a0c0)1/2 ¯ ¯ ¯ ¯ ¯ (7) This result applies when the discriminator is negative i.e.,

4a0c0− b02< 0 (8)

In our case we have

a0= −b2, b0= 2b, c0= 1 Which upon substitution

¡

(3)

Substituting back and carrying out the first integral to get (a − aIG) RT = − ln(1 − bρ) − a √ 8bRT ln " 1 + (1 +√2)bρ 1 + (1 −√2)bρ # (9)

We can use the compressibility factor, and the A and B factors to reduce this equation into dimensionless form. Notice that the A factor is not the Helmholtz free energy to avoid confusion between symbols.

(a − aIG) RT = Z − 1 − ln(Z − B) − A √ 8Bln " Z + (1 +√2)B Z + (1 −√2)B # (10)

1.4

Obtain an Expression for the Fugacity Coefficient

Using the relationship between fugacity coefficient and residual Helmholtz free energy we have ln φi= µ ∂ ∂ni (A − AIG) RT ¶ T,V,nj − ln Z (11)

Consequently, we need to put the residual Helmholtz free energy into its exten-sive form by multiplying by the total number of moles

(A − AIG) RT = −nTln(1−bρ)− an2T √ 8bRT nT h ln³1 + (1 +√2)bρ´− ln³1 + (1 −√2)bρ´i (12) Carry out the differentiation with respect to the number of moles of any arbi-trary component µ ∂(A − AIG)/RT ∂ni ¶ T,V,nj = − ln(1 − bρ) + n (1 − bρ) µ ∂(bρ) ∂ni ¶ (13) − an 2 T √ 8bRT nT  (1 + √ 2)³∂(bρ)∂n i ´ 1 + (1 +√2)bρ − (1 −√2)³∂(bρ)∂n i ´ 1 + (1 −√2)bρ   − ln " 1 + (1 +√2)bρ 1 + (1 −√2)bρ #   ³∂(an2 T) ∂ni ´ √ 8bRT nT − an2 T √ 8RT ³∂(n Tb) ∂ni ´ (nTb)2  

This contribution can be evaluated if the derivatives with respect to the number of moles are obtain. The next section derives general expressions for the quadratic mixing rules.

(4)

1.5

Obtain Derivatives of the Mixing Rules

The following derivatives are required to be obtained from the mixing rules

µ ∂(n2 Ta) ∂ni ¶ nj =       ∂ " m P i=1 m P j=1 ninjaij # ∂ni       nj =       ∂ " m P i=1 ni m P j=1 njaij # ∂ni       nj µ∂(n2 Ta) ∂ni ¶ nj = 2 m X k=1 nkaik. (14) Also, µ ∂(nTb) ∂ni ¶ nj =       ∂ " 1 nT m P i=1 m P j=1 ninjbij # ∂ni       nj = 1 nT       ∂ " m P i=1 m P j=1 ninjbij # ∂ni       nj − 1 n2 T m X i=1 m X j=1 ninjbij = 1 nT       ∂ " m P i=1 ni m P j=1 njbij # ∂ni       nj − b µ ∂(nTb) ∂ni ¶ nj = 2 m X k=1 xkbik− b. (15)

For a single summation: µ ∂(nTb) ∂ni ¶ nj =     ∂( m P i=1 nibi) ∂ni     nj = bi (16)

(5)

1.6

Plug into the Fugacity Coefficient Expression

The derivatives are ready to be plugged into the fugacity coefficient expressions as follows ln φi = − ln Z − ln(1 − bρ) + ρ µ 2 m P k=1 xkbik− b ¶ (1 − bρ) − ρa µ 2 m P k=1 xkbik− b ¶ √ 8bRT " (1 +√2) 1 + (1 +√2)bρ− (1 −√2) 1 + (1 −√2)bρ # − ln " 1 + (1 +√2)bρ 1 + (1 −√2)bρ #    2 m P k=1 xkaik √ 8bRT − a √ 8bRT µ 2 m P k=1 xkbik− b ¶ b    

Simplifying this equation further by taking a common factor in the last term to obtain ln φi = − ln Z − ln(1 − bρ) + ρ µ 2 m P k=1 xkbik− b ¶ (1 − bρ) − ρa µ 2 m P k=1 xkbik− b ¶ √ 8bRT " (1 +√2) 1 + (1 +√2)bρ− (1 −√2) 1 + (1 −√2)bρ # −√ a 8bRT ln " 1 + (1 +√2)bρ 1 + (1 −√2)bρ #    2 m P k=1 xkaik a − µ 2 m P k=1 xkbik− b ¶ b    

To simplify the notation further define bi = Ã 2 m X k=1 xkbik− b ! (17) ai = m X k=1 xkaik (18) From which ln φi = − ln Z − ln(1 − bρ) + biρ (1 − bρ) −√ρabi 8bRT " (1 +√2) 1 + (1 +√2)bρ − (1 −√2) 1 + (1 −√2)bρ # −√ a 8bRT ln " 1 + (1 +√2)bρ 1 + (1 −√2)bρ # · 2ai a − bi b ¸

(6)

There is another simplification that can be carried out biρ (1 − bρ)− ρabi √ 8bRT " (1 +√2) 1 + (1 +√2)bρ− (1 −√2) 1 + (1 −√2)bρ # = bi b · bρ (1 − bρ)− ρab √ 8bRT µ 1 1 + 2bρ − b2ρ2 ¶¸ =bi b(Z − 1) Consequently, ln φi = − ln Z − ln(1 − bρ) + biρ (1 − bρ)+ bi b(Z − 1) (19) −√ a 8bRT ln " 1 + (1 +√2)bρ 1 + (1 −√2)bρ # · 2ai a − bi b ¸ .

To have a more compact notation, define the variables in terms of the reducing variables A, B, and Z as follows

bρ = B Z; a bRT = A B; ai a = Ai A; bi b = Bi B.

Applying these transformations, we end up with the desired expression for the fugacity coefficient using the Peng-Robinson equation of state. This expression is derived for quadratic mixing rules for the co-volume and the energy parameters. It simplifies a little computationally if we use arithmetic averages for the co-volume. ln φi= − ln(Z−B)+Bi B(Z −1)− A √ 8Bln " Z + (1 +√2)B Z + (1 −√2)B # · 2Ai A − Bi B ¸ . (20) where B = bP RT; (21) Bi = µ 2 m P k=1 xkbik− b ¶ P RT (22) b = 0.07780RTc Pc (23) A = aP (RT )2; (24) Ai = µ m P k=1 xkaik ¶ P (RT )2 ; (25) a(T ) = 0.45724(RTc) 2 Pc α(T ); (26)

(7)

p α(T ) = 1 + κ Ã 1 − r T Tc ! ; (27) κ = 0.37464 + 1.5422ω − 0.26992ω2. (28)

2

Algorithm for using the Fugacity Expression

The expression for the fugacity coefficient and its associated variables and equa-tions needs to be solved to obtain a value for the fugacity. This is not hard computationally. However, one of the main points encountered frequently is the solution for the roots of a cubic equation. The provided notes are implemented in the Excel worksheet to obtain the roots of the cubic at any given temperature and pressure.

3

Mixing Rules

Three mixing rules were used to solve the exam statement. • Lorentz-Berthelot bij= 1 2(bii+ bjj), (29) aij = (aiiajj)1/2. (30) • Waldman-Hagler bij= Ã b2 ii+ b2jj 2 !1/2 , (31) aij= (aiiajj)1/2 Ã biibjj b2 ij ! . (32) • MADAR-1 bij = 1 3 2 X L=0 Ã 0.25 (bii+ bjj)2 bL/3ii bL/3jj ! 1 2−2L/3 (33) aij = (aiiajj)1/2 Ã biibjj b2 ij ! . (34)

4

Isobutane and Carbon Dioxide System

The exam asked to generate plots for the fugacity as a function of composition and pressure for the system: isobutane and carbon dioxide. The required input information are given below for the two components.

The fugacity coefficient as obtained from the Peng-Robinson equation of state was evaluated as a function of pressure and composition using Microsoft

(8)

Table 1: Critical parameters, and the acentric factors of carbon dioxide and i-butane.

Component Tc (K) Pc (MPa) ω (-) Zc (-)

Carbon dioxide 304.14 7.375 0.239 0.274145 Isobutane 407.8 3.604 0.183 0.275296

Excel. The Excel worksheet is obtained and modified from the textbook of Elliot and Lira.

Figures 1 through 3 present the final plots of fugacity for isobutane and carbon dioxide respectively as a function of composition and pressure. Figure 1 is plotted using the Lorentz-Berthelot set of mixing rules, Figure 2 is plotted using the Waldman-Hagler, while Figure 3 is plotted using the MADAR-1 set of mixing rules. Additionally, Figure 4 is plotted to show the effect of mixing rules on the same graph at pressures of 1, 2, and 4 MPa.

4.1

Pure Component Limit

From the first three figures, it is evident that at the pure component limit, the fugacity of CO2 approaches the pressure of the system. This is to be expected

since CO2 is supercritical at the temperature of the system. However, for the

isobutane it seems that the fugacity is almost an order of magnitude lower than the system pressure. Isobutane being a liquid at the given temperature explains the low fugacity of at the pure component limit. Furthermore, there is a linear composition dependence at any given pressure as the pure component limit is approached.

4.2

Influence of System Pressure

The pressure affects the fugacity of both components appreciably. However, the influence of the pressure may be divided into two main regions:

• At pressures below approximately 1 MPa, the fugacity is a linear function of the composition in all the composition range.

• At pressures above approximately 1 MPa, the fugacity begins to show some sort of going through a maximum, rising again, going through a minimum, then it begins to increase again. This is due to the mixture being a vapor approaching its dew pressure at compositions rich in CO2 that is

being enriched with isobutane tending to lower the fugacity. Consequently, condensing the mixture to a liquid phase at isobutane rich areas.

At very low pressures, the ideal gas mixture limit is approached. This leads to the fugacity of any component being equal to its partial pressure. This happens at a pressure of 0.001 MPa which is sufficiently low to guarantee the application of the ideal gas mixture limit. This pressure was given to check

(9)

the results obtained from the Excel sheet. The ideal gas mixture and pure component limits are useful safeguards for checking and debugging the codes used.

4.3

Effect of Different Mixing Rules

The figures provided; indicate that there is an effect of the mixing rules used. There are minor differences between the Waldman-Hagler and MADAR-1 rules. However, both rules feature some major differences with the Lorentz-Berthelot rules. These differences increase close to regions where there is a liquid phase. The Lorentz-Berthelot rules provides lower values of the fugacity compared to the Waldman-Hagler and MADAR-1 rules. This may be explained by the over-estimation of repulsive forces using the Lorentz-Berthelot rules.

The differences between the Lorentz-Berthelot rules and the two other rules is quantitative and qualitative. The trends predicted and locations of phase changes are contradictory among these rules. These differences increase with the pressure i.e., increase when the Lorentz-Berthelot rules results are not as good as the gas limits. The difference in the values of fugacity amounts to threefold difference. Consider P = 4 MPa, the maximum fugacity of isobutane predicted by the Lorentz-Berthelot rules is about 0.2 MPa at x = 0.15, while that predicted by Waldman-Hagler and MADAR-1 rules is 0.57 MPa at x = 0.37! Additionally, the Lorentz-Berthelot rules show an almost constant value of carbon dioxide fugacity over the region where minimum and maximum fugacities in isobutane fugacity occurs. This is some sort of an inconsistency compared to the inverted trends predicted by the Waldman-Hagler and MADAR-1 rules.

(10)

Mole fraction of isobuatne 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Fu ga city of is ob ut an e (M Pa ) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.001 MPa 0.100 MPa 1.000 MP 2.000 MPa 4.000 MPa

Mole fraction of isobutane

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 F uga ci ty of c ar bon di oxi de ( M P a) 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 0.001 MPa 0.100 MPa 1.000 MP 2.000 MPa 4.000 MPa

Figure 1: Fugacities of isobuatne and carbon dioxide as a function of composition and pressure using the Lorentz-Berthelot mixing rules.

(11)

Mole fraction of isobuatne 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Fu ga city of is ob ut an e (M Pa ) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.001 MPa 0.100 MPa 1.000 MP 2.000 MPa 4.000 MPa

Mole fraction of isobutane

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 F uga ci ty of c ar bon di oxi de ( M P a) 0 1 2 3 4 0.001 MPa 0.100 MPa 1.000 MP 2.000 MPa 4.000 MPa

Figure 2: Fugacities of isobuatne and carbon dioxide as a function of composition and pressure using the Waldman-Hagler mixing rules.

(12)

Mole fraction of isobuatne 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Fu ga city of is ob ut an e (M Pa ) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.001 MPa 0.100 MPa 1.000 MP 2.000 MPa 4.000 MPa

Mole fraction of isobutane

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 F uga ci ty of c ar bon di oxi de ( M P a) 0 1 2 3 4 0.001 MPa 0.100 MPa 1.000 MP 2.000 MPa 4.000 MPa

Figure 3: Fugacities of isobuatne and carbon dioxide as a function of composition and pressure using the MADAR-1 mixing rules.

(13)

Mole fraction of isobutane 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Fu ga ci ty o f i sob ut an e ( M P a) 0.0 0.2 0.4 0.6 0.8 L-B, 1 MPa L-B, 2 MPa L-B, 4 MPa W-H, 1 MPa W-H, 2 MPa W-H, 4 MPa MADAR-1, 1 MPa MADAR-1, 2 MPa MADAR-1, 4 MPa

Mole fraction of isobutane

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Fu gaci ty of ca rbo n di oxi de (M Pa ) 0 1 2 3 4 L-B, 1 MPa L-B, 2 MPa L-B, 4 MPa W-H, 1 MPa W-H, 2 MPa W-H, 4 MPa MADAR-1, 1 MPa MADAR-1, 2 MPa MADAR-1, 4 MPa

Figure 4: The effect of different mixing rules on the fugacity of isobutane and carbon dioxide at pressures of 1, 2, and 4 MPa.

References

Related documents

These records indicate that the dynamic trafficking of CheZ produces an improved temporal response: a rise in the production of CheYp is relayed most effectively to flagellar motors

recently, there wasn’t a strong need for CenturyLink to add that feature for the Globe area. CenturyLink will be updating its equipment as will the County, which will enable caller

Fadugba will seek intervention of IATA in issues including: the harmful impact of the EU blacklist on the global reputation of the African airline industry; unilateral

Resolved, the House of _____ concurring, That the 78th General Convention direct that the 2004 Model Policies developed by The Church Insurance Agency Corporation for

BRIEF DESCRIPTION OF PROJECT APPROVED FOR COLLECTION AND USE: Rehabilitate runway 1/19 and runway safety area, phase I Snow removal equipment.. Crack seal

Only the Term products combined as well as the Direct Marketing (Guaranteed Acceptance) had sufficient data. The results for females indicated that some effects of

348.08(4) Special limitations on load All provisions notwithstanding, no person shall operate on a highway any trailer or semitrailer when the gross weight of the trailer

– ntop users can also monitor VoIP without having to use any specialized VoIP traffic analysis application (VoIP is not a first class citizen)?. – The use of