hookeai.simulators.fetorch.element.type.tetra10.gauss_quadrature

gauss_quadrature(n_gauss, domain, device=None)[source]

Get Gaussian quadrature points local coordinates and weights.

Parameters:
  • n_gauss (int) – Number of Gauss quadrature integration points.

  • domain ({'linear', quadrilateral', 'triangular', 'hexahedral',) – ‘tetrahedral’} Integration domain geometry type.

  • device (torch.device, default=None) – Device on which torch.Tensor is allocated.

Returns:

  • gp_coords (dict) – Gauss quadrature integration points (key, str[int]) local coordinates (item, torch.Tensor(1d)). Gauss integration points are labeled from 1 to n_gauss.

  • gp_weights (dict) – Gauss quadrature integration points (key, str[int]) weights (item, torch.Tensor(0d)). Gauss integration points are labeled from 1 to n_gauss.