Skip to content
ForCADDocumentation

multipatch_connection Derived Type

type, public :: multipatch_connection

Oriented interface and continuity metadata for two patches.

Patch identifiers are one-based. Side identifiers use the rank-specific ordering: curve left/right = 1/2; surface u_min/u_max/v_min/v_max = 1:4; and volume adds w_min/w_max = 5/6.

reverse reverses the single tangential direction. Curve endpoints have no tangential direction, so reverse has no effect for curve patches and is retained only for rank-consistent metadata. For volume faces, swap exchanges the two tangential directions and flip(1:2) reverses either direction after that mapping. For geometric continuity, reparameterization(k) is , the -th derivative of the normalized patch-B normal coordinate with respect to patch A's normalized local increment at the interface. Surface and volume connections may instead store all mapped-coordinate normal derivatives as Bernstein fields in transition_jet; projective_jet stores the Bernstein fields for the homogeneous scale and its normal derivatives.

Warning

set is a low-level metadata setter. It does not have access to patches and cannot validate topology or spline compatibility. Prefer the rank-specific connect binding.


Type-Bound Procedures

procedure, public :: get_continuity => get_connection_continuity

Return the requested continuity order.

  • private pure elemental function get_connection_continuity(this) result(continuity)

    Return the requested continuity order. The value -1 records topology without continuity equations.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value integer

procedure, public :: get_patch_a => get_connection_patch_a

Return the first patch identifier.

  • private pure elemental function get_connection_patch_a(this) result(patch_id)

    Return the one-based identifier of the first connected patch.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value integer

procedure, public :: get_patch_b => get_connection_patch_b

Return the second patch identifier.

  • private pure elemental function get_connection_patch_b(this) result(patch_id)

    Return the one-based identifier of the second connected patch.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value integer

procedure, public :: get_projective_jet => get_connection_projective_jet

Return the projective-factor jet.

  • private pure function get_connection_projective_jet(this) result(projective_jet)

    Return the projective-factor jet Bernstein coefficients. The final index stores derivative orders zero through . An absent jet returns a zero-sized array.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value real(kind=rk), allocatable, (:,:,:)

procedure, public :: get_reparameterization => get_connection_reparameterization

Return a copy of the transition jet.

  • private pure function get_connection_reparameterization(this) result(reparameterization)

    Return a copy of the normalized normal-coordinate transition derivatives. An unallocated transition jet is represented by a zero-length result.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value real(kind=rk), allocatable, (:)

procedure, public :: get_side_a => get_connection_side_a

Return the first boundary identifier.

  • private pure elemental function get_connection_side_a(this) result(side)

    Return the rank-specific side identifier on the first patch.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value integer

procedure, public :: get_side_b => get_connection_side_b

Return the second boundary identifier.

  • private pure elemental function get_connection_side_b(this) result(side)

    Return the rank-specific side identifier on the second patch.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value integer

procedure, public :: get_transition_jet => get_connection_transition_jet

Return the multivariate transition jet.

  • private pure function get_connection_transition_jet(this) result(transition_jet)

    Return the full multivariate transition-jet Bernstein coefficients. A surface jet has shape [q+1,1,2,n]; a volume jet has shape [q1+1,q2+1,3,n]. An absent jet returns a zero-sized array.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value real(kind=rk), allocatable, (:,:,:,:)

procedure, public :: has_projective_jet => connection_has_projective_jet

Report a variable projective-factor jet.

  • private pure elemental function connection_has_projective_jet(this) result(has_jet)

    Report whether a variable projective-factor jet is stored.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value logical

procedure, public :: has_transition_jet => connection_has_transition_jet

Report a full multivariate transition jet.

  • private pure elemental function connection_has_transition_jet(this) result(has_jet)

    Report whether full multivariate transition data are stored.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value logical

procedure, public :: is_flipped => get_connection_flip

Report a selected tangential-axis flip.

  • private pure elemental function get_connection_flip(this, dir) result(flip)

    Report reversal of mapped tangential direction dir. Invalid directions return .false..

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this
    integer, intent(in) :: dir

    Return Value logical

procedure, public :: is_geometric => get_connection_geometric

Report whether geometric continuity is selected.

  • private pure elemental function get_connection_geometric(this) result(geometric)

    Report whether the connection requests geometric continuity.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value logical

procedure, public :: is_reversed => get_connection_reverse

Report tangential reversal.

  • private pure elemental function get_connection_reverse(this) result(reverse)

    Report reversal of the mapped tangential ordering.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value logical

procedure, public :: is_swapped => get_connection_swap

Report tangential-axis exchange.

  • private pure elemental function get_connection_swap(this) result(swap)

    Report exchange of the two mapped tangential face directions.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(in) :: this

    Return Value logical

procedure, public :: set => set_connection

Replace all connection metadata without patch-level validation.

  • private pure subroutine set_connection(this, patch_a, side_a, patch_b, side_b, continuity, reverse, swap, flip, geometric, reparameterization, transition_jet, projective_jet)

    Store low-level connection metadata and reset omitted options to defaults.

    Warning

    This routine performs no patch-level validation. Rank-specific connect methods should be used for normal construction.

    Arguments

    Type IntentOptional Attributes Name
    class(multipatch_connection), intent(inout) :: this

    Connection to replace.

    integer, intent(in) :: patch_a

    One-based first patch identifier.

    integer, intent(in) :: side_a

    First boundary identifier using rank-specific numbering.

    integer, intent(in) :: patch_b

    One-based second patch identifier.

    integer, intent(in) :: side_b

    Second boundary identifier using rank-specific numbering.

    integer, intent(in), optional :: continuity

    Requested order; defaults to zero.

    logical, intent(in), optional :: reverse

    Reverse the mapped boundary orientation; defaults to false.

    logical, intent(in), optional :: swap

    Exchange volume-face tangential directions; defaults to false.

    logical, intent(in), optional, contiguous :: flip(:)

    Up to two volume-face tangential flips; omitted entries are false.

    logical, intent(in), optional :: geometric

    Select the scalar normal-transition model instead of normalized ; defaults to false.

    real(kind=rk), intent(in), optional, contiguous :: reparameterization(:)

    Normal transition derivatives 1 through .

    real(kind=rk), intent(in), optional, contiguous :: transition_jet(:,:,:,:)

    Full transition-jet Bernstein coefficients.

    real(kind=rk), intent(in), optional, contiguous :: projective_jet(:,:,:)

    Projective-factor Bernstein coefficients for orders zero through .