polykin.thermo.flash¤
solve_Rachford_Rice ¤
solve_Rachford_Rice(
K: FloatVector,
z: FloatVector,
beta0: float | None = None,
maxiter: int = 50,
atol_res: float = 1e-09,
) -> RachfordRiceResult
Solve the Rachford-Rice flash residual equation.
The numerical solution of the Rachford-Rice equation is carried out using a combination of the Newton and bisection methods, ensuring efficient and robust convergence.
References
- M.L. Michelsen and J. Mollerup, "Thermodynamic models: Fundamentals and computational aspects", Tie-Line publications, 2nd edition, 2007.
| PARAMETER | DESCRIPTION |
|---|---|
K
|
K-values.
TYPE:
|
z
|
Feed mole fractions (mol/mol).
TYPE:
|
beta0
|
Initial guess for vapor phase fraction (mol/mol).
TYPE:
|
maxiter
|
Maximum number of iterations.
TYPE:
|
atol_res
|
Absolute tolerance for residual.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
RachfordRiceResult
|
Result. |
See also
residual_Rachford_Rice: related method to determine the residual and its derivative.
Source code in src/polykin/thermo/flash/vle.py
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 | |