lsdo_genie.bsplines.BsplineCurve

Module Contents

Classes

BsplineCurve

Base class for B-spline Curves

class lsdo_genie.bsplines.BsplineCurve.BsplineCurve(name, order_u, knots_u, shape)

Base class for B-spline Curves

Attributes:
namestr

A nickname for the B-spline Curve

order_uint

B-spline polynomial order in the ‘u’ direction

knots_uint

Knot vector in the ‘u’ direction

shapetuple

Shape for the B-spline control points (num_u,)

get_basis_matrix(u_vec, du)

Builds the basis matrix for a given set of points

Parameters:
u_vecnp.ndarray(N,)

Vector storing the ‘u’ cooridinates of a set of input points

duint

Derivative in the ‘u’ direction

Returns:
basissps.csc_matrix(N,Ncp)

The basis matrix that can be multiplied with the control points to get (N,) output values