Skip to content
ForCADDocumentation

forcad_multipatch_curve Module

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

Patches remain complete nurbs_curve objects. The container records oriented endpoint connections; is_valid verifies their physical and derivative traces. Two complementary global algebraic objects are exposed:

  • cmp_dof_map composes intrinsic periodic equivalences and corresponding interface controls only where both endpoint bases are interpolatory;
  • cmp_dof_constraint returns sparse equations for derivative continuity through any requested order .

Element rows are concatenated in patch insertion order. Within a patch they retain the single-patch active-span ordering. This module stores topology and algebraic constraints; it does not assemble a PDE matrix or choose boundary conditions for an analysis.

If patch owns control variables, unmerged numbering is

[ \mathbf q= [(\mathbf q^{(1)})^T,\ldots,(\mathbf q^{(n_p)})^T]^T,\qquad o_k=1+\sum_{\ell



Derived Types

type, public ::  nurbs_multipatch_curve

Ordered collection of connected NURBS curve 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_curve

Append a validated patch copy and optionally return its identifier.

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

Assemble independent control and log-weight gradients.

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

Assemble derivative-continuity equations in CSR form.

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

Compact directly shareable controls.

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

Return prefix offsets for unmerged patch control variables.

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

Concatenate patch element connectivity with optional shared numbering.

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

Return the patch-local identifier for every global element.

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

Return the owning patch identifier for every global element.

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

Validate connection metadata and record an oriented endpoint interface.

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

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

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

Export separate or combined patch control polygons.

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

Export separate or combined cached patch geometry.

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

Export separate or combined embedded parameter lines.

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

Release patches and connections and reset counts.

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

Return a copy of one connection.

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

Alias for cmp_elem.

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

Return the active connection count.

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

Return the active patch count.

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

Return a copy of one patch.

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

Report whether any patch has nonuniform rational weights.

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

Validate patch states, interfaces, orientations, and requested continuity.

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

Rotate all patch control points.

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

Rotate all cached patch geometry points.

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

Apply one affine map to every patch and cache.

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

Translate all patch control points.

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

Translate all cached patch geometry points.

Read more…