Skip to content
ForCADDocumentation

forcad_multipatch_surface Module

Topology, continuity constraints, and assembly data for surface patches.

Patches remain complete nurbs_surface objects. Connections identify oriented boundary curves. cmp_dof_map merges directly matching controls. cmp_dof_constraint couples nested clamped edges by knot insertion at order zero and supplies sparse equations on matching trace spaces for normal derivatives through order . A compact geometric connection uses the separable map . A general connection supplies Bernstein fields for every normal derivative of both mapped coordinates and, for rational patches, every derivative of a nonvanishing projective factor. The resulting tangentially varying multivariate equations include all mixed chain-rule and projective-product terms.

Global element order is patch insertion order followed by each patch's direction-1-fastest active-span order. The container does not assemble PDE operators; it provides the topology and algebraic data required to do so.

Unmerged scalar control variables are concatenated by patch, . An order-zero interface may be represented by the compact map from cmp_dof_map only when its normal endpoints are interpolatory. General unclamped traces and higher continuity are returned as in one-based CSR form and are not silently folded into element connectivity. Raw rows act on polynomial coefficients or homogeneous rational controls. Rational scalar fields require weighted numerator controls , together with a compatible denominator.



Derived Types

type, public ::  nurbs_multipatch_surface

Ordered collection of connected NURBS surface patches.

Read more…

Components

Type Visibility Attributes Name Initial
type(debug), public :: err

Recoverable diagnostic state for the most recent failed operation.

Type-Bound Procedures

procedure, public :: add_patch => add_patch_surface

Append a validated patch copy and optionally return its identifier.

Read more…
procedure, public :: assemble_sensitivities => assemble_sensitivities_surface

Assemble independent control and log-weight gradients.

Read more…
procedure, public :: cmp_dof_constraint => cmp_dof_constraint_surface

Assemble derivative-continuity equations in CSR form.

Read more…
procedure, public :: cmp_dof_map => cmp_dof_map_surface

Compact directly shareable controls.

Read more…
procedure, public :: cmp_dof_offsets => cmp_dof_offsets_surface

Return prefix offsets for unmerged patch controls.

Read more…
procedure, public :: cmp_elem => cmp_elem_surface

Concatenate patch element connectivity with optional shared numbering.

Read more…
procedure, public :: cmp_elem_local => cmp_elem_local_surface

Return the patch-local identifier for every global element.

Read more…
procedure, public :: cmp_elem_patch => cmp_elem_patch_surface

Return the owning patch identifier for every global element.

Read more…
procedure, public :: connect => connect_surface

Validate metadata and trace-space shape, then record an edge interface.

Read more…
generic, public :: create => create_common, create_uniform, create_patches, create_automatic

Sample patches with common, patch-specific, or physically scaled resolutions.

Read more…
procedure, public :: export_Xc => export_Xc_surface

Export separate or combined patch control nets.

Read more…
procedure, public :: export_Xg => export_Xg_surface

Export separate or combined cached patch geometry.

Read more…
procedure, public :: export_Xth_in_Xg => export_Xth_in_Xg_surface

Export separate or combined embedded parameter grids.

Read more…
procedure, public :: finalize => clear_surface

Release patches and connections and reset counts.

Read more…
procedure, public :: get_connection => get_connection_surface

Return a copy of one connection.

Read more…
procedure, public :: get_elem => cmp_elem_surface

Alias for cmp_elem.

Read more…
procedure, public :: get_nconnection => get_nconnection_surface

Return the active connection count.

Read more…
procedure, public :: get_npatch => get_npatch_surface

Return the active patch count.

Read more…
procedure, public :: get_patch => get_patch_surface

Return a copy of one patch.

Read more…
procedure, public :: interface_quadrature => interface_quadrature_surface

Paired integration on a connected boundary.

Read more…
procedure, public :: is_rational => is_rational_surface

Report whether any patch has nonuniform rational weights.

Read more…
procedure, public :: is_valid => is_valid_surface

Validate patch states, traces, orientations, and continuity.

Read more…
procedure, public :: rotate_Xc => rotate_Xc_surface

Rotate all patch control points.

Read more…
procedure, public :: rotate_Xg => rotate_Xg_surface

Rotate all cached patch geometry points.

Read more…
procedure, public :: transform => transform_surface

Apply one affine map to every patch and cache.

Read more…
procedure, public :: translate_Xc => translate_Xc_surface

Translate all patch control points.

Read more…
procedure, public :: translate_Xg => translate_Xg_surface

Translate all cached patch geometry points.

Read more…