polykin.thermo.flash¤
solve_Rachford_Rice ¤
solve_Rachford_Rice(
K: FloatVector,
z: FloatVector,
beta0: float,
*,
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]. If
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
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 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 | |