bfieldtools.utils.get_line_quad_points¶
-
bfieldtools.utils.
get_line_quad_points
(line_vertices, method='midpoint', index=None)¶ Get quad points and weights from quadrature rules implemented in quadpy
- Parameters
- line_vertices: array-like [Nverts x 3]
Assumes vertices are connected according to index, last index connects to first
- Returns
- w: array-like (Nquad, )
quadrature weights
- qp: array-like (Nverts, Nquad)
quadrature points for each edge connecting the vertices