autopdex.spaces.precompute_shape_functions

autopdex.spaces.precompute_shape_functions(dofs, settings, static_settings, set, num_diff)[source]

Precompute shape functions and their derivatives for all integration points.

Parameters:
  • dofs (jnp.ndarray) – The degrees of freedom.

  • settings (dict) – Dictionary containing various settings for the computation. Keywords used: - ‘connectivity’: Connectivity information for the integration points or elements. - ‘integration coordinates’: Coordinates of the integration points.

  • static_settings (dict) – Dictionary containing static settings for the solution space.

  • set (int) – The index of the current set of settings being used.

  • num_diff (int) – The number of derivatives to compute (0, 1, or 2).

Returns:

tuple

A tuple containing the precomputed shape functions and their derivatives.