Wilson K values: use exact coefficient by longemen3000 · Pull Request #2746 · CoolProp/CoolProp · GitHub
Skip to content

Wilson K values: use exact coefficient#2746

Open
longemen3000 wants to merge 1 commit into
CoolProp:masterfrom
longemen3000:patch-1
Open

Wilson K values: use exact coefficient#2746
longemen3000 wants to merge 1 commit into
CoolProp:masterfrom
longemen3000:patch-1

Conversation

@longemen3000

Copy link
Copy Markdown
Contributor

somewhat related to #2742. The Wilson K-value correlation is actually a linear interpolation between ($0.7T_c$, $P(0.7T_c$) and ($T_c$, $P_c$) in ($T^{-1}$, $\log{p}$) coordinates. with that in mind, the more precise correlation is:

$$ \log{K} = \log{\frac{P_c}{P}}+c_1 \left(1 + \omega\right)\left(1-\frac{T_c}{T}\right) $$

$$ c_1 = \frac{7\log{10}}{3} \approx 5.3726985503194395 $$

@ibell

ibell commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

@ibell

ibell commented May 12, 2026

Copy link
Copy Markdown
Contributor

Ping @longemen3000 . Still interested in this one?

@longemen3000

longemen3000 commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

Sorry, I did not see the notification 😅, I will add some descriptions in the files, but if the LLM does it, that would also be good

@longemen3000

Copy link
Copy Markdown
Contributor Author

If you are interested in a better correlation for the initial point of the VLE 2-phase PT flash, the algorithm that I use is a combination of:

  • Wilson K-values if they result in a valid K
  • the thermopack initial point (a pseudo TPD approach, they have it their flash docs)
  • if the point is above the critical point, we can extrapolate at the critical point to get a pseudo-saturation line.

@ibell

ibell commented May 29, 2026

Copy link
Copy Markdown
Contributor

See also #3026 & #2720 - exciting things are coming!

@ibell

ibell commented May 29, 2026

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants