Define beta limits to avoid overshooting when solving the Rachford-Rice equation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=pr), | intent(in) | :: | z(:) |
Molar fractions vector |
||
real(kind=pr), | intent(in) | :: | K(:) |
K-factors |
||
real(kind=pr), | intent(out) | :: | bmin |
Minimum beta value |
||
real(kind=pr), | intent(out) | :: | bmax |
Maximum beta value |
Modify K-factor values to assure that lies between (0,1)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=pr), | intent(in) | :: | z(:) |
Molar fractions of the system |
||
real(kind=pr) | :: | K(:) |
K factors |
Rachford-Rice equation for a two phase system
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=pr), | intent(in) | :: | z(:) | |||
real(kind=pr), | intent(in) | :: | K(:) | |||
real(kind=pr), | intent(in) | :: | beta | |||
real(kind=pr), | intent(out) | :: | rr | |||
real(kind=pr), | intent(out) | :: | drrdb |
Solve the Rachford-Rice Equation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=pr), | intent(in) | :: | z(:) |
Mole fractions vector |
||
real(kind=pr), | intent(in) | :: | K(:) |
K-factors |
||
real(kind=pr), | intent(out) | :: | beta |
value |
||
real(kind=pr), | intent(out) | :: | beta_min |
Lower limit for |
||
real(kind=pr), | intent(out) | :: | beta_max |
Upper limit for |