This module contains an interface for external C++ code to compute liquid mixture property like thermodynamic factor and Maxwell-Stefan Diffusivity coefficients
This routine calculates thermodynamic factor for given mole_frac of all species for single element
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nFields | number of fields in mixture |
||
real(kind=rk), | intent(in) | :: | temp | mixture temperature |
||
real(kind=rk), | intent(in) | :: | press | mixture pressure |
||
real(kind=rk), | intent(in) | :: | mole_frac(nFields) | mole fraction of all species of single element |
||
real(kind=rk), | intent(out) | :: | therm_factors(nFields,nFields) | thermodynamic factor matrix |
This routine calculates Diffusivity coefficients matrix for given mole_frac of all species for single element
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nFields | number of fields in mixture |
||
real(kind=rk), | intent(in) | :: | temp | mixture temperature |
||
real(kind=rk), | intent(in) | :: | press | mixture pressure |
||
real(kind=rk), | intent(in) | :: | mole_dens(nFields) | mole density of all species of single element |
||
real(kind=rk), | intent(out) | :: | D_ij_out(nFields,nFields) | thermodynamic factor matrix |
This function initialize eNRTL model by loading liquid mixture property from filename
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=c_char), | dimension(*) | :: | filename | |||
integer(kind=c_int), | intent(out) | :: | nSpc |
This routine calculates thermodynamic factor for given mole_frac of all species
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int), | intent(in), | value | :: | nSpc | ||
real(kind=c_double), | intent(in), | value | :: | Temp | ||
real(kind=c_double), | intent(in), | value | :: | Press | ||
real(kind=c_double), | intent(in), | dimension(*) | :: | Mole_frac | ||
real(kind=c_double), | intent(out), | dimension(*) | :: | Therm_factors |
This routine calculates Maxwell-Stefan diffusivity coeffcient Matrix for given mole_frac of all species
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int), | intent(in), | value | :: | nSpc | ||
real(kind=c_double), | intent(in), | value | :: | Temp | ||
real(kind=c_double), | intent(in), | value | :: | Press | ||
real(kind=c_double), | intent(in), | dimension(*) | :: | Mole_frac | ||
real(kind=c_double), | intent(out), | dimension(*) | :: | D_ij_out |
This routine calculates Maxwell-Stefan diffusivity coeffcient Matrix for given mole_frac of all species
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int), | intent(in), | value | :: | nSpc | ||
real(kind=c_double), | intent(in), | value | :: | Temp | ||
real(kind=c_double), | intent(in), | value | :: | Press | ||
real(kind=c_double), | intent(in), | dimension(*) | :: | Mole_dens | ||
real(kind=c_double), | intent(out), | dimension(*) | :: | D_ij_out |
This function loads property file using external c-function
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=c_char), | dimension(*) | :: | filename | |||
integer, | intent(out) | :: | nFields | number of fields in mixture |
This routine calculates thermodynamic factor for given mole_frac of all species for single element
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nFields | number of fields in mixture |
||
real(kind=rk), | intent(in) | :: | temp | mixture temperature |
||
real(kind=rk), | intent(in) | :: | press | mixture pressure |
||
real(kind=rk), | intent(in) | :: | mole_frac(nFields) | mole fraction of all species of single element |
||
real(kind=rk), | intent(out) | :: | therm_factors(nFields,nFields) | thermodynamic factor matrix |
This routine calculates Diffusivity coefficients matrix for given mole_frac of all species for single element
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nFields | number of fields in mixture |
||
real(kind=rk), | intent(in) | :: | temp | mixture temperature |
||
real(kind=rk), | intent(in) | :: | press | mixture pressure |
||
real(kind=rk), | intent(in) | :: | mole_dens(nFields) | mole density of all species of single element |
||
real(kind=rk), | intent(out) | :: | D_ij_out(nFields,nFields) | thermodynamic factor matrix |