Skip to content

Commit

Permalink
feat: RKPR now autofits k to replicate the acentric factor
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebenelli committed Dec 16, 2024
1 parent 329fa2a commit 6421357
Show file tree
Hide file tree
Showing 5 changed files with 594 additions and 585 deletions.
2 changes: 1 addition & 1 deletion src/equilibria/saturations_points.f90
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ type(EquilibriumState) function saturation_temperature(model, n, p, kind, t0, y0

k = exp(lnfug_z - lnfug_y)
f = sum(z*k) - 1
step = f/sum(z * k * (dlnphi_dt_z - dlnphi_dt_y))
step = f/sum(T * z * k * (dlnphi_dt_z - dlnphi_dt_y))

if (.not. ieee_is_finite(step) .or. ieee_is_nan(step)) exit

Expand Down
Loading

0 comments on commit 6421357

Please sign in to comment.