You are on page 1of 4

In[4]:=

P, T : R  T   1 b 

a  

Solving first for the spinodal in terms of temperature by finding when


compressibility is zero.
In[5]:=

Out[5]=

In[6]:=

SolveDP, T,  0, T  Expand


T 

2a
R

4 a b 2
R

SpinodalT :

2 a b2 3

2a
R

4 a b 2
R

2 a b2 3
R

Finding critical temperature and density by taking derivative and checking


for local mins and maxes. ->1/b is discarded as it is a local minimum, and
is allowed.
In[7]:=

Out[7]=

In[8]:=

SolveDSpinodalT,  0, 


1
3b

, 

1
b

s  1  3 b

Out[8]=

3b
In[9]:=

SpinodalT . 1  3 b

8a

Out[9]=

27 b R
In[10]:=

Ts 

8a
27 b R

8a
Out[10]=

27 b R

Solving for critical pressure by using equation of state


In[11]:=

Ps, Ts
a

Out[11]=

27 b2
In[12]:=

ps 

a
27 b2

a
Out[12]=

27 b2

Casting equations in reduced variables (x/xs) to get rid of a and b


In[13]:=

Out[13]=

R  T   1 b 

a  

 ps .  s . T T  Ts  FullSimplify
 8 T  3  3   
3 

In[14]:=

 8 T 3  3

In[15]:=

Pr, T :

In[54]:=

SolvePr, T Pp, T

Out[54]=

T  

 3   Pp  3 2
8

This is the equation of state in terms of reduced T


In[56]:=

Tre, Pp :
2a

27 b R 3 b R

4 a 2
9bR

4 a b 2

In[39]:=

2a

 3
Pp 3 2
8

2 a b2 3
R

2 a 3

27 b R

In[40]:=

8a

1
Out[40]=

Ts .  s

 FullSimplify

 3  2

Reduced variable form of spinodal as a function of in terms of pressure


and in terms of temperature.
1
In[42]:=

SpinodalTr :
4

In[57]:=
Out[57]=

In[58]:=

 3
2

SolveSpinodalTr Tre, Pp, Pp


Pp   2  3  2 
SpinodalP : 2  3 2

In[60]:=

PlotSpinodalP, , 0, 1.5
1.0

0.8

0.6
Out[60]=

0.4

0.2

0.2
In[103]:=

0.4

0.6

0.8

1.0

1.2

1.4

PlotPr, 2, , 0, 2


20

15

Out[103]= 10

0.5
In[17]:=

1.0

1.5

2.0

1.5

2.0

PlotPr, 1, , 0, 2


2.5

2.0

1.5
Out[17]=

1.0

0.5

0.5

1.0

In[105]:=

PlotPr, .8, , 0, 2


0.8

0.6

0.4
Out[105]=

0.2

0.5
0.2

0.4

1.0

1.5

2.0

You might also like