fastvpinns.FE.quadratureformulas_quad2d module

The file quadratureformulas_quad2d.py defines the Quadrature Formulas for the 2D Quadrilateral elements. It supports both Gauss-Legendre and Gauss-Jacobi quadrature types. The quadrature points and weights are calculated based on the specified quadrature order and type.

Author: Thivin Anandh D

Changelog: Not specified

Known issues: None

Dependencies: numpy, scipy

class fastvpinns.FE.quadratureformulas_quad2d.Quadratureformulas_Quad2D(quad_order: int, quad_type: str)[source]

Bases: Quadratureformulas

Defines the Quadrature Formulas for the 2D Quadrilateral elements.

Parameters:
  • quad_order (int) – The order of the quadrature.

  • quad_type (str) – The type of the quadrature.

get_num_quad_points()[source]

Returns the number of quadrature points.

Returns:

The number of quadrature points.

Return type:

int

get_quad_values()[source]

Returns the quadrature weights, xi and eta values.

Returns:

A tuple containing the quadrature weights, xi values, and eta values.

Return type:

tuple