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.
detect_critical
Detect if the system is close to a critical point.
Description
When the system is close to a critical point, the values
are close to zero, since the composition of the incipient phase and the
phase are similar (equal in the critical point). This can be used
to detect if the system is close to a critical point and force a jump
above it.
Arguments
Type
Intent
Optional
Attributes
Name
integer,
intent(in)
::
nc
Number of components in the mixture.
integer,
intent(in)
::
np
Number of main phases.
integer,
intent(in)
::
point
Point number in the phase boundary.
character(len=14),
intent(inout)
::
kinds_x(np)
Kinds of the main phases.
character(len=14),
intent(inout)
::
kind_w
Kind of the incipient phase.
logical,
intent(in)
::
binary_stop
If true, stop at the critical point if its a binary system.
real(kind=pr),
intent(in)
::
Xold(:)
Old vector of variables.
real(kind=pr),
intent(inout)
::
X(:)
Vector of variables.
real(kind=pr),
intent(inout)
::
dXdS(:)
Sensitivity of the variables wrt the specification.
integer,
intent(inout)
::
ns
Number of the specified variable.
real(kind=pr),
intent(inout)
::
dS
Step size of the specification for the next point.
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.