forcad_multipatch_surface Module
- BSD 3-Clause
- 523 statements
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.
Uses
Derived Types
type, public :: nurbs_multipatch_surface
Ordered collection of connected NURBS surface 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_surface | Append a validated patch copy and optionally return its identifier. |
| procedure, public :: assemble_sensitivities => assemble_sensitivities_surface | Assemble independent control and log-weight gradients. |
| procedure, public :: cmp_dof_constraint => cmp_dof_constraint_surface | Assemble derivative-continuity equations in CSR form. |
| procedure, public :: cmp_dof_map => cmp_dof_map_surface | Compact directly shareable controls. |
| procedure, public :: cmp_dof_offsets => cmp_dof_offsets_surface | Return prefix offsets for unmerged patch controls. |
| procedure, public :: cmp_elem => cmp_elem_surface | Concatenate patch element connectivity with optional shared numbering. |
| procedure, public :: cmp_elem_local => cmp_elem_local_surface | Return the patch-local identifier for every global element. |
| procedure, public :: cmp_elem_patch => cmp_elem_patch_surface | Return the owning patch identifier for every global element. |
| procedure, public :: connect => connect_surface | Validate metadata and trace-space shape, then record an edge interface. |
| generic, public :: create => create_common, create_uniform, create_patches, create_automatic | Sample patches with common, patch-specific, or physically scaled resolutions. |
| procedure, public :: export_Xc => export_Xc_surface | Export separate or combined patch control nets. |
| procedure, public :: export_Xg => export_Xg_surface | Export separate or combined cached patch geometry. |
| procedure, public :: export_Xth_in_Xg => export_Xth_in_Xg_surface | Export separate or combined embedded parameter grids. |
| procedure, public :: finalize => clear_surface | Release patches and connections and reset counts. |
| procedure, public :: get_connection => get_connection_surface | Return a copy of one connection. |
| procedure, public :: get_elem => cmp_elem_surface | Alias for cmp_elem. |
| procedure, public :: get_nconnection => get_nconnection_surface | Return the active connection count. |
| procedure, public :: get_npatch => get_npatch_surface | Return the active patch count. |
| procedure, public :: get_patch => get_patch_surface | Return a copy of one patch. |
| procedure, public :: interface_quadrature => interface_quadrature_surface | Paired integration on a connected boundary. |
| procedure, public :: is_rational => is_rational_surface | Report whether any patch has nonuniform rational weights. |
| procedure, public :: is_valid => is_valid_surface | Validate patch states, traces, orientations, and continuity. |
| procedure, public :: rotate_Xc => rotate_Xc_surface | Rotate all patch control points. |
| procedure, public :: rotate_Xg => rotate_Xg_surface | Rotate all cached patch geometry points. |
| procedure, public :: transform => transform_surface | Apply one affine map to every patch and cache. |
| procedure, public :: translate_Xc => translate_Xc_surface | Translate all patch control points. |
| procedure, public :: translate_Xg => translate_Xg_surface | Translate all cached patch geometry points. |