splinepy.multipatch.Multipatch#
- class splinepy.multipatch.Multipatch(splines=None, interfaces=None, *, spline=None)[source]#
Bases:
SplinepyBase
,PyMultipatch
System of patches to store information such as boundaries and interfaces
Methods
Multipatch.add_fields
(fields, field_dim[, ...])Add fields using lists of splines
Starting from a seed position, the splines are propagated until they reach a kink (no g1 continuity).
Multipatch.boundary_from_function
(function)Uses all faces, that were identified as boundaries in the interfaces array and checks if they fit a boundary function
Multipatch.boundary_multipatch
([bid, nthreads])Extract all boundary patches of a given Multipatch system as splines
Multipatch.boundary_patch_ids
(self[, bid])Multipatch.clear
(self)Multipatch.combine_boundaries
([mask])Combines all boundaries that match an id from the mask to a single boundary
Multipatch.determine_interfaces
([tolerance, ...])Retrieve interfaces info
Multipatch.evaluate
(queries[, nthreads])Evaluate each individual spline at specific parametric positions.
Multipatch.get_interfaces
(self[, recompute])Determine orientation between adjacent splines which is required, e.g., for gismo export and orientation check
Multipatch.sample
(resolutions[, nthreads])Uniformly sample along each parametric dimensions from spline.
Multipatch.set_boundary
(spline_ids, ...[, ...])Adds a boundary to a specific set of spline and spline-
Multipatch.set_interfaces
(self, interfaces)Multipatch.show
(**kwargs)Multipatch.showable
(**kwargs)Equivalent to
Attributes
Boundaries are stored within the interfaces array as negative entries
Physical dimension of the splineset :returns: dim -- Physical dimensionality of the multipatch system :rtype: int
Return Extractor object to provide extract functionality for multiple splines
Save fields as individual splines on patches
Determine the interfaces of a given multipatch system
Parametric dimension of the splineset
List of splines in splinepy format
Show option manager for Multipatches.
Spline data helper for splines.
Evaluated centers of the individual patches, used to determine connectivity and identify boundaries based on position