splinepy.helpme.integrate.Transformation#

class splinepy.helpme.integrate.Transformation(spline, solution_field=None, orders=None)[source]#

Bases: object

Helper class to be used for the numerical integration of field variables on a single-patch geometry.

It computes the elements within the patch and for each one of them the quadrature points and the Jacobian at those points.

Parameters:
  • spline (spline) – The geometry

  • solution_field (None or spline) – Solution field as spline function. If not given, supports and quadrature will be calculated for geometry

  • orders (None or list<int>) – Quadrature orders. If not given, default quadrature orders will be used

Methods

Transformation.check_element_id_validity(...)

Check if given element ID is valid

Transformation.compute_all_element_jacobian_determinants([...])

Compute Jacobians' determinants of each element at each quadrature point

Transformation.compute_all_element_jacobian_inverses([...])

Compute Jacobians' inverses of each element at each quadrature point

Transformation.compute_all_element_jacobians([...])

Compute Jacobians of each element at each quadrature point

Transformation.compute_all_element_measures([...])

Computes the measures of all elements in parametric space.

Transformation.compute_all_element_quad_points([...])

Compute the quadrature points of all elements

Transformation.compute_all_supports([recompute])

Compute the support for all quadrature points

Transformation.get_element_grid_id(element_id)

Compute element ID in grid.

Transformation.get_element_quad_points(...)

Compute the quadrature points for a given element.

Transformation.get_element_support(element_id)

Get support for quadrature points in element

Transformation.jacobian(element_id)

Return Jacobian of single element at quadrature points

Transformation.jacobian_determinant(element_id)

Return determinant of Jacobian of single element, evaluated at quadrature points

Transformation.jacobian_inverse(element_id)

Return inverse of Jacobian of single element, evaluated at quadrature points

Attributes

Transformation.all_jacobian_determinants

Determinants of Jacobians of all elements.

Transformation.all_jacobian_inverses

Inverses of Jacobians of all elements.

Transformation.all_jacobians

Jacobians of all elements.

Transformation.all_quad_points

Quadrature points of all elements.

Transformation.all_supports

Supports of all quadrature points.

Transformation.quadrature_weights