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
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 |
|