forcad_multipatch_volume Module
- BSD 3-Clause
- 553 statements
Topology, continuity constraints, and assembly data for volume patches.
Patches remain complete nurbs_volume mappings. Connections identify oriented boundary surfaces and validate both tangential trace spaces after the requested reversal, axis exchange, and flips. cmp_dof_map merges controls paired by recorded matching face topology with interpolatory normal endpoints. cmp_dof_constraint couples nested faces at order zero and supplies normal-derivative equations on matching spaces through order . A compact geometric connection uses the separable map . A general connection supplies tensor-product Bernstein fields for every normal derivative of all three mapped coordinates and, for rational patches, every derivative of a nonvanishing projective factor. The assembled equations therefore include tangentially varying normal jets, mixed derivatives, and the complete projective product rule.
Global elements are ordered by patch insertion and then by each volume's direction-1-fastest active-span ordering. The type supplies topology and assembly metadata but does not assemble or solve a physical model.
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. Face reversal, tangential-axis exchange, and flips are applied before equations are formed. 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_volume
Ordered collection of connected trivariate NURBS 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_volume | Append a validated patch copy and optionally return its identifier. |
| procedure, public :: assemble_sensitivities => assemble_sensitivities_volume | Assemble independent control and log-weight gradients. |
| procedure, public :: cmp_dof_constraint => cmp_dof_constraint_volume | Assemble derivative-continuity equations in CSR form. |
| procedure, public :: cmp_dof_map => cmp_dof_map_volume | Compact directly shareable controls. |
| procedure, public :: cmp_dof_offsets => cmp_dof_offsets_volume | Return prefix offsets for unmerged patch controls. |
| procedure, public :: cmp_elem => cmp_elem_volume | Concatenate patch element connectivity with optional shared numbering. |
| procedure, public :: cmp_elem_local => cmp_elem_local_volume | Return the patch-local identifier for every global element. |
| procedure, public :: cmp_elem_patch => cmp_elem_patch_volume | Return the owning patch identifier for every global element. |
| procedure, public :: connect => connect_volume | Validate metadata and trace-space shape, then record a face 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_volume | Export separate or combined patch control lattices. |
| procedure, public :: export_Xg => export_Xg_volume | Export separate or combined cached patch geometry. |
| procedure, public :: export_Xth_in_Xg => export_Xth_in_Xg_volume | Export separate or combined embedded parameter grids. |
| procedure, public :: finalize => clear_volume | Release patches and connections and reset counts. |
| procedure, public :: get_connection => get_connection_volume | Return a copy of one connection. |
| procedure, public :: get_elem => cmp_elem_volume | Alias for cmp_elem. |
| procedure, public :: get_nconnection => get_nconnection_volume | Return the active connection count. |
| procedure, public :: get_npatch => get_npatch_volume | Return the active patch count. |
| procedure, public :: get_patch => get_patch_volume | Return a copy of one patch. |
| procedure, public :: interface_quadrature => interface_quadrature_volume | Paired integration on a connected boundary. |
| procedure, public :: is_rational => is_rational_volume | Report whether any patch has nonuniform rational weights. |
| procedure, public :: is_valid => is_valid_volume | Validate patch states, face maps, traces, and continuity. |
| procedure, public :: rotate_Xc => rotate_Xc_volume | Rotate all patch control points. |
| procedure, public :: rotate_Xg => rotate_Xg_volume | Rotate all cached patch geometry points. |
| procedure, public :: transform => transform_volume | Apply one affine map to every patch and cache. |
| procedure, public :: translate_Xc => translate_Xc_volume | Translate all patch control points. |
| procedure, public :: translate_Xg => translate_Xg_volume | Translate all cached patch geometry points. |