sfepy.discrete.iga.extmods.igac module

class sfepy.discrete.iga.extmods.igac.CNURBSContext
R
bf
bfg
bufBN
cprint()
dR_dx
dR_dxi
e_coors_max
evaluate()
iel
sfepy.discrete.iga.extmods.igac.eval_bernstein_basis()
sfepy.discrete.iga.extmods.igac.eval_in_tp_coors()

Evaluate a field variable (if given) or the NURBS geometry in the given tensor-product reference coordinates. The field variable is defined by its DOFs - the coefficients of the NURBS basis.

Parameters:
variable : array

The DOF values of the variable with n_c components, shape (:, n_c).

indices : list of arrays

The indices of knot spans for each axis, defining the Bezier element numbers.

ref_coors : list of arrays

The reference coordinates in [0, 1] for each knot span for each axis, defining the reference coordinates in the Bezier elements given by indices.

control_points : array

The NURBS control points.

weights : array

The NURBS weights.

degrees : sequence of ints or int

The basis degrees in each parametric dimension.

cs : list of lists of 2D arrays

The element extraction operators in each parametric dimension.

conn : array

The connectivity of the global NURBS basis.

Returns:
out : array

The field variable values or NURBS geometry coordinates for the given reference coordinates.

sfepy.discrete.iga.extmods.igac.eval_mapping_data_in_qp()

Evaluate data required for the isogeometric domain reference mapping in the given quadrature points. The quadrature points are the same for all Bezier elements and should correspond to the Bernstein basis degree.

Parameters:
qps : array

The quadrature points coordinates with components in [0, 1] reference element domain.

control_points : array

The NURBS control points.

weights : array

The NURBS weights.

degrees : sequence of ints or int

The basis degrees in each parametric dimension.

cs : list of lists of 2D arrays

The element extraction operators in each parametric dimension.

conn : array

The connectivity of the global NURBS basis.

cells : array, optional

If given, use only the given Bezier elements.

Returns:
bfs : array

The NURBS shape functions in the physical quadrature points of all elements.

bfgs : array

The NURBS shape functions derivatives w.r.t. the physical coordinates in the physical quadrature points of all elements.

dets : array

The Jacobians of the mapping to the unit reference element in the physical quadrature points of all elements.

sfepy.discrete.iga.extmods.igac.eval_variable_in_qp()

Evaluate a field variable in the given quadrature points. The quadrature points are the same for all Bezier elements and should correspond to the Bernstein basis degree. The field variable is defined by its DOFs - the coefficients of the NURBS basis.

Parameters:
variable : array

The DOF values of the variable with n_c components, shape (:, n_c).

qps : array

The quadrature points coordinates with components in [0, 1] reference element domain.

control_points : array

The NURBS control points.

weights : array

The NURBS weights.

degrees : sequence of ints or int

The basis degrees in each parametric dimension.

cs : list of lists of 2D arrays

The element extraction operators in each parametric dimension.

conn : array

The connectivity of the global NURBS basis.

cells : array, optional

If given, use only the given Bezier elements.

Returns:
coors : array

The physical coordinates of the quadrature points of all elements.

vals : array

The field variable values in the physical quadrature points.

dets : array

The Jacobians of the mapping to the unit reference element in the physical quadrature points.

sfepy.discrete.iga.extmods.igac.is_nurbs()

Return True if some weights are not one.