autopdex.variational_schemes.weak_form_galerkin
- autopdex.variational_schemes.weak_form_galerkin(x_i, w_i, int_point_number, local_dofs, local_virt_dofs, settings, static_settings, set)[source]
Computes the weak form Galerkin residual at an integration point.
Takes the set of pdes from static_settings[‘model’]
- 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.
local_virt_dofs (jnp.ndarray) – Local virtual 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 weak form Galerkin residual.
- Return type:
float