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

Multipatch.boundaries_from_continuity([...])

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.control_point_offsets(self)

Multipatch.determine_interfaces([tolerance, ...])

Retrieve interfaces info

Multipatch.evaluate(queries[, nthreads])

Evaluate each individual spline at specific parametric positions.

Multipatch.get_interfaces(self[, recompute])

Multipatch.interface_orientations([...])

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

Multipatch.sub_multipatch(self)

Attributes

Multipatch.boundaries

Boundaries are stored within the interfaces array as negative entries

Multipatch.dim

Physical dimension of the splineset :returns: dim -- Physical dimensionality of the multipatch system :rtype: int

Multipatch.extract

Return Extractor object to provide extract functionality for multiple splines

Multipatch.fields

Save fields as individual splines on patches

Multipatch.interfaces

Determine the interfaces of a given multipatch system

Multipatch.para_dim

Parametric dimension of the splineset

Multipatch.patches

List of splines in splinepy format

Multipatch.show_options

Show option manager for Multipatches.

Multipatch.spline_data

Spline data helper for splines.

Multipatch.sub_patch_centers

Evaluated centers of the individual patches, used to determine connectivity and identify boundaries based on position