12 Public :: bubblepointcalculation
22 Subroutine bubblepointcalculation
26 Use utilities
, Only: file_open
29 Integer :: converg,iterate_t
30 Real :: rhoi1(nc),rhoi2(nc)
32 CHARACTER (LEN=50) :: filename
42 xi(1,1:ncomp) = xif(1:ncomp)
44 xi(2,2:ncomp) = (1. - xi(2,1)) /
REAL(ncomp-1)
47 call bubble_point_rachford_rice(iterate_t,converg,rhoi1,rhoi2)
55 h = xi(2,1) * p / xi(1,1)
56 filename =
'./out.txt' 57 CALL file_open(filename,78)
61 h=xi(1,1)*mm(1)/(xi(1,2)*mm(2))/p*1e5
62 write(*,*)
'Solubility Coefficient g/g/bar', h
63 elseif (ncomp == 3)
then 64 h=xi(1,1)*mm(1)/(xi(1,2)*mm(2)+xi(1,3)*mm(3))/p
66 write(*,*)
'Solubility Coefficient mol/m3/Pa', h,mm(1)
71 End Subroutine bubblepointcalculation
74 End Module bubblepoint
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW Module STARTING_VALUES This m...
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW This module contains paramete...