Fixed-volume two-phase pressure equality
Solve phase pressure equality for a two-phase state at fixed temperature and total volume.
Description
The routine treats the heavy-phase volume as the Newton unknown and
obtains the light-phase volume from the overall volume balance. It returns
the average phase pressure once the two phase pressures agree.
Examples
call pressure_equality_V_beta_xy ( model , T , V , beta , x , y , Vx , Vy , P )
module~~yaeos__solvers_pressure_equality~~UsesGraph
module~yaeos__solvers_pressure_equality
yaeos__solvers_pressure_equality
module~yaeos__constants
yaeos__constants
module~yaeos__solvers_pressure_equality->module~yaeos__constants
module~yaeos__models_ar
yaeos__models_ar
module~yaeos__solvers_pressure_equality->module~yaeos__models_ar
iso_fortran_env
iso_fortran_env
module~yaeos__constants->iso_fortran_env
module~yaeos__models_ar->module~yaeos__constants
module~yaeos__models_base
yaeos__models_base
module~yaeos__models_ar->module~yaeos__models_base
module~yaeos__substance
yaeos__substance
module~yaeos__models_base->module~yaeos__substance
module~yaeos__substance->module~yaeos__constants
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
module~~yaeos__solvers_pressure_equality~~UsedByGraph
module~yaeos__solvers_pressure_equality
yaeos__solvers_pressure_equality
module~yaeos__equilibria_flash
yaeos__equilibria_flash
module~yaeos__equilibria_flash->module~yaeos__solvers_pressure_equality
module~yaeos__equilibria
yaeos__equilibria
module~yaeos__equilibria->module~yaeos__equilibria_flash
module~yaeos
yaeos
module~yaeos->module~yaeos__equilibria
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Subroutines
Solve pressure equality between two phases at a given temperature,
total volume, vapor molar fractions and compositions.
Read more…
Arguments
Type
Intent Optional Attributes
Name
class(ArModel ),
intent(in)
::
model
EOS used to evaluate both phase pressures.
real(kind=pr),
intent(in)
::
T
Temperature [K]
real(kind=pr),
intent(in)
::
V
Overall molar volume of the two-phase system [L/mol]
real(kind=pr),
intent(in)
::
beta
Molar fraction of light-phase
real(kind=pr),
intent(in)
::
x (:)
Molar fractions of heavy-phase
real(kind=pr),
intent(in)
::
y (:)
Molar fractions of light-phase
real(kind=pr),
intent(inout)
::
Vx
Heavy-phase molar volume [L/mol]
real(kind=pr),
intent(inout)
::
Vy
Light-Phase molar volume [L/mol]
real(kind=pr),
intent(out)
::
P
Pressure [bar]