warp.fem.RegularQuadrature#

class warp.fem.RegularQuadrature(domain, order, family=None)[source]#

Regular quadrature formula, using a constant set of quadrature points per element.

Parameters:
__init__(domain, order, family=None)[source]#
Parameters:

Methods

__init__(domain, order[, family])

arg_value(device)

element_index_arg_value(device)

evaluation_point_count()

fill_arg(arg, device)

Fill the quadrature argument structure for device functions.

max_points_per_element()

Maximum number of quadrature points per element.

point_coords(elt_arg, qp_arg, ...)

Coordinate values in element of the element's qp_index'th quadrature point.

point_count(elt_arg, qp_arg, ...)

Number of quadrature points for a given element.

point_evaluation_index(elt_arg, qp_arg, ...)

Quadrature point index according to evaluation order.

point_index(elt_arg, qp_arg, ...)

Global index of the element's qp_index'th quadrature point.

point_weight(elt_arg, qp_arg, ...)

Weight of the element's qp_index'th quadrature point.

total_point_count()

Total number of quadrature points.

Attributes

Arg

ElementIndexArg

Mapping from evaluation point indices to element indices.

domain

Domain over which this quadrature is defined

evaluation_point_element_index

name

Unique name of the quadrature rule.

points

Quadrature point coordinates in reference space.

weights

Quadrature weights for the reference element.

Arg = <warp._src.codegen.Struct object>#
class CachedFormula(element, order, family)[source]#
Parameters:
arg_value(device)[source]#
fill_arg(arg, device)[source]#
Parameters:

arg (Arg)

static get(element, order, family)[source]#
Parameters:
property name#

Unique name of the quadrature rule.

total_point_count()[source]#

Total number of quadrature points.

max_points_per_element()[source]#

Maximum number of quadrature points per element.

property points[source]#

Quadrature point coordinates in reference space.

property weights[source]#

Quadrature weights for the reference element.

fill_arg(arg, device)[source]#

Fill the quadrature argument structure for device functions.

Parameters:

arg (Arg)