PTEnvel2 Derived Type

type, public :: PTEnvel2

PTEnvel2

Two-phase isopleth. Phase boundary line of a fluid at constant composition.

Description

points stores converged saturation states in continuation order; cps stores critical points detected along the branch.

Examples

envelope = pt_envelope_2ph(model, z, first_point)
write(*,*) envelope

Inherits

type~~ptenvel2~~InheritsGraph type~ptenvel2 PTEnvel2 type~criticalpoint~3 CriticalPoint type~ptenvel2->type~criticalpoint~3 cps type~equilibriumstate EquilibriumState type~ptenvel2->type~equilibriumstate points

Components

Type Visibility Attributes Name Initial
type(CriticalPoint), public, allocatable :: cps(:)

Critical points found along the line.

type(EquilibriumState), public, allocatable :: points(:)

Each point through the line.


Type-Bound Procedures

procedure, public, pass :: write => write_PTEnvel2

  • private subroutine write_PTEnvel2(pt2, unit, iotype, v_list, iostat, iomsg)

    Write a two-phase PT envelope using sectioned, plotting-friendly output.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(PTEnvel2), intent(in) :: pt2

    Envelope result to serialize.

    integer, intent(in) :: unit

    Output unit number.

    character(len=*), intent(in) :: iotype

    Fortran formatted-I/O mode.

    integer, intent(in) :: v_list(:)

    Format control list supplied by the runtime.

    integer, intent(out) :: iostat

    I/O status returned to the runtime.

    character(len=*), intent(inout) :: iomsg

    I/O error message buffer.

generic, public :: write (FORMATTED) => write

  • private subroutine write_PTEnvel2(pt2, unit, iotype, v_list, iostat, iomsg)

    Write a two-phase PT envelope using sectioned, plotting-friendly output.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(PTEnvel2), intent(in) :: pt2

    Envelope result to serialize.

    integer, intent(in) :: unit

    Output unit number.

    character(len=*), intent(in) :: iotype

    Fortran formatted-I/O mode.

    integer, intent(in) :: v_list(:)

    Format control list supplied by the runtime.

    integer, intent(out) :: iostat

    I/O status returned to the runtime.

    character(len=*), intent(inout) :: iomsg

    I/O error message buffer.