autopdex.variational_schemes.least_square_function_approximation

autopdex.variational_schemes.least_square_function_approximation(x_i, w_i, int_point_number, local_dofs, settings, static_settings, set)[source]

Computes the least square function approximation at an integration point.

Takes the set of functions to fit from static_settings[‘analytic solution’].

Parameters:
  • x_i (jnp.ndarray) – Coordinates of the integration point.

  • w_i (float) – Integration weight.

  • int_point_number (int) – Integration point number.

  • local_dofs (jnp.ndarray) – Local degrees of freedom.

  • settings (dict) – Settings for the computation.

  • static_settings (dict) – Static settings for the computation.

  • set (str) – Identifier for the current set.

Returns:

Computed least square function approximation.

Return type:

float