5 SUBROUTINE vle_mix(rhob,density,chemPot_total,compID)
9 USE eos_variables, ONLY: fres, eta, eta_start, dhs, mseg, uij, sig_ij, rho, x, z3t
21 REAL :: chempot_total(nc)
22 REAL :: rhob(2,0:nc),density(np)
26 REAL,
DIMENSION(nc) :: dhs_star
27 REAL :: w(np,nc), lnphi(np,nc)
29 CHARACTER(LEN=4) :: char_ncomp
30 REAL :: polymer_density
31 INTEGER :: i, maxits, its
32 CHARACTER (LEN=50) :: filename
39 dhs(1:ncomp) = parame(1:ncomp,2) * ( 1.0 - 0.12*exp( -3.0*parame(1:ncomp,3)/t ) )
40 dhs_star(1:ncomp) = dhs(1:ncomp)/parame(1:ncomp,2)
48 Do while(converg == 0)
50 CALL start_var (converg)
59 If(its > maxits) stop
'Polymer_density tool: no liquid density could be found.' 62 rhob(1,0) = dense(1) / ( pi/6.0* sum( xi(1,1:ncomp) * parame(1:ncomp,1) * dhs(1:ncomp)**3 ) )
63 rhob(2,0) = dense(2) / ( pi/6.0* sum( xi(2,1:ncomp) * parame(1:ncomp,1) * dhs(1:ncomp)**3 ) )
65 rhob(1,1:ncomp) = rhob(1,0)*xi(1,1:ncomp)
66 rhob(2,1:ncomp) = rhob(2,0)*xi(2,1:ncomp)
69 CALL si_dens ( density, w )
76 chempot_total(1:ncomp) = lnphi(1,1:ncomp)
107 write(*,*)
'--------------------------------------------' 108 write(*,*)
'Output detailed model:' 110 write(*,*)
'Liquid density /kg/m3:', max(density(1),density(2))
111 write(*,*)
'--------------------------------------------' 118 polymer_density = max(density(1),density(2))
121 CALL file_open(filename,78)
122 write(78,*) polymer_density
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW This module contains constant...
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW Module DFT_MODULE This module...
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW This module contains paramete...
subroutine vle_mix(rhob, density, chemPot_total, user)
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW This module contains paramete...
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW This module contains paramete...