IGA manipulation module
Created on Fri Feb 23 2018
@author: thirschler
CONTAINS: Utility functions to apply boundary conditions and for multi-patch coupling.
- yeti_iga.preprocessing.igaparametrization.IGAmanip.get_boundCPindice(Nkv, Jpqr, num_bound, num_patch=0, offset=0)
Get indices from boundary face control points of a given patch.
Returns local indices of control points controlling the boundary indexed at num_bound of the patch indexed at num_patch. The offset argument enables to return the indices of control points forming a following row.
- Parameters:
Nkv (list of int) – Number of knots by direction.
Jpqr (list of int) – Degree by direction.
num_bound (int) – Index of the boundary face. Must be
1,2,3,4,5or6.num_patch (int, optional) – Index of the patch. The default is 0.
offset (int, optional) – Offset to get the indices of a following row of control points. The default is 0.
- Returns:
ind_face – List of local control points indices on the boundary.
- Return type:
list of int
- yeti_iga.preprocessing.igaparametrization.IGAmanip.get_vertexCPindice(Nkv, Jpqr, dim, num_patch=0)
Return indices of control points describing the corners of a given patch
- Parameters:
Nkv (2D array of float) – knot vectors size for all patches
Jpqr (2D array of int) – degrees for all patches
dim (array of int) – dimension for all patches
num_patch (int, optional) – Index of the patch. The default is 0
- Returns:
vertex – corner points of the patch
- Return type:
array