forcad_multipatch_curve Module
- BSD 3-Clause
- 481 statements
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.
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. |
| procedure, public :: assemble_sensitivities => assemble_sensitivities_curve | Assemble independent control and log-weight gradients. |
| procedure, public :: cmp_dof_constraint => cmp_dof_constraint_curve | Assemble derivative-continuity equations in CSR form. |
| procedure, public :: cmp_dof_map => cmp_dof_map_curve | Compact directly shareable controls. |
| procedure, public :: cmp_dof_offsets => cmp_dof_offsets_curve | Return prefix offsets for unmerged patch control variables. |
| procedure, public :: cmp_elem => cmp_elem_curve | Concatenate patch element connectivity with optional shared numbering. |
| procedure, public :: cmp_elem_local => cmp_elem_local_curve | Return the patch-local identifier for every global element. |
| procedure, public :: cmp_elem_patch => cmp_elem_patch_curve | Return the owning patch identifier for every global element. |
| procedure, public :: connect => connect_curve | Validate connection metadata and record an oriented endpoint interface. |
| generic, public :: create => create_common, create_patches, create_automatic | Sample patches with common, patch-specific, or physically scaled resolutions. |
| procedure, public :: export_Xc => export_Xc_curve | Export separate or combined patch control polygons. |
| procedure, public :: export_Xg => export_Xg_curve | Export separate or combined cached patch geometry. |
| procedure, public :: export_Xth_in_Xg => export_Xth_in_Xg_curve | Export separate or combined embedded parameter lines. |
| procedure, public :: finalize => clear_curve | Release patches and connections and reset counts. |
| procedure, public :: get_connection => get_connection_curve | Return a copy of one connection. |
| procedure, public :: get_elem => cmp_elem_curve | Alias for cmp_elem. |
| procedure, public :: get_nconnection => get_nconnection_curve | Return the active connection count. |
| procedure, public :: get_npatch => get_npatch_curve | Return the active patch count. |
| procedure, public :: get_patch => get_patch_curve | Return a copy of one patch. |
| procedure, public :: is_rational => is_rational_curve | Report whether any patch has nonuniform rational weights. |
| procedure, public :: is_valid => is_valid_curve | Validate patch states, interfaces, orientations, and requested continuity. |
| procedure, public :: rotate_Xc => rotate_Xc_curve | Rotate all patch control points. |
| procedure, public :: rotate_Xg => rotate_Xg_curve | Rotate all cached patch geometry points. |
| procedure, public :: transform => transform_curve | Apply one affine map to every patch and cache. |
| procedure, public :: translate_Xc => translate_Xc_curve | Translate all patch control points. |
| procedure, public :: translate_Xg => translate_Xg_curve | Translate all cached patch geometry points. |