Nodes of different colours represent the following:
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.
pressure_equality_V_beta_xy
Solve pressure equality between two phases at a given temperature,
total volume, vapor molar fractions and compositions.
Description
Uses to express Vy as a function of
Vx, then applies Newton iteration to . The
liquid volume is constrained to remain above the model’s covolume.
A failure to converge within the internal iteration cap returns
P=-1 after 100 iterations and writes a warning to the error unit.
Examples
See the module-level call pattern; x and y must be normalized
phase compositions and beta is the light-phase fraction.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.