sfepy.mesh.splinebox module

class sfepy.mesh.splinebox.SplineBox(bbox, coors, name='spbox', **kwargs)[source]

B-spline geometry parametrization. Geometry can be modified by moving spline control points.

static augknt(knots, k, mults=1)[source]
change_shape(cpoint, val)[source]

Change shape of spline parametrization.

Parameters:

cpoint : list

The indices of the spline control point.

val : array

Displacement.

static create_spb(bbox, coors, nsg=None)[source]
dvelocity(cpoint, dir)[source]

Evaluate derivative of spline in a given control point and direction.

Parameters:

cpoint : list

The indices of the spline control point.

dir : array

The directional vector.

Returns:

dvel : array

The design velocity field.

evaluate(cp_coors=None)[source]

Evaluate SplineBox.

Returns:

coors : array

The coordinates corresponding to the actual spline control points position.

cp_coors : array

If is not None, use as control points cooardinates.

get_control_points(init=False)[source]

Get spline control points coordinates.

static mmax(x, y)[source]
set_control_points(cpt_coors, add=False)[source]

Set spline control points position.

Parameters:

cpt_coors : array

The coordinates of the spline control points.

add : bool

If True, coors += cpt_coors

static spcol(knots, k, tau)[source]
static spsorted(meshsites, sites)[source]
write_vtk(filename)[source]