warp.fem.Quadrature#
- class warp.fem.Quadrature(domain)[source]#
Interface class for quadrature rules
- Parameters:
domain (GeometryDomain)
- __init__(domain)[source]#
- Parameters:
domain (GeometryDomain)
Methods
__init__(domain)arg_value(device)element_index_arg_value(device)Number of quadrature points that needs to be evaluated, mostly for internal purposes.
fill_arg(arg, device)Fill the argument with the value of the argument to be passed to device
Maximum number of points per element if known, or
Noneotherwisepoint_coords(elt_arg, qp_arg, ...)Coordinates 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
Number of unique quadrature points that can be indexed by this rule.
Attributes
Domain over which this quadrature is defined
- Arg = <warp._src.codegen.Struct object>#
- fill_arg(arg, device)[source]#
Fill the argument with the value of the argument to be passed to device
- Parameters:
arg (Arg)
- total_point_count()[source]#
Number of unique quadrature points that can be indexed by this rule. Returns a number such that point_index() is always smaller than this number.
- evaluation_point_count()[source]#
Number of quadrature points that needs to be evaluated, mostly for internal purposes. If the indexing scheme is sparse, or if a quadrature point is shared among multiple elements (e.g, nodal quadrature), evaluation_point_count may be different than total_point_count(). Returns a number such that evaluation_point_index() is always smaller than this number.
- static point_count(
- elt_arg,
- qp_arg,
- domain_element_index,
- geo_element_index,
Number of quadrature points for a given element
- static point_coords(
- elt_arg,
- qp_arg,
- domain_element_index,
- geo_element_index,
- element_qp_index,
Coordinates in element of the element’s qp_index’th quadrature point
- static point_weight(
- elt_arg,
- qp_arg,
- domain_element_index,
- geo_element_index,
- element_qp_index,
Weight of the element’s qp_index’th quadrature point
- static point_index(
- elt_arg,
- qp_arg,
- domain_element_index,
- geo_element_index,
- element_qp_index,
Global index of the element’s qp_index’th quadrature point. May be shared among elements. This is what determines qp_index in integrands’ Sample arguments.
- static point_evaluation_index(
- elt_arg,
- qp_arg,
- domain_element_index,
- geo_element_index,
- element_qp_index,
Quadrature point index according to evaluation order. Quadrature points for distinct elements must have different evaluation indices. Only required if evaluation_point_element_index is not overloaded
- ElementIndexArg = array(ndim=1, dtype=warp._src.fem.quadrature.quadrature.QuadraturePointElementIndex)#
- evaluation_point_element_index = <Function Quadrature__evaluation_point_element_index(element_index_arg: array(ndim=1, dtype=warp._src.fem.quadrature.quadrature.QuadraturePointElementIndex), qp_eval_index: int)>#