autopdex.models.isoparametric_domain_integrate_potential
- autopdex.models.isoparametric_domain_integrate_potential(integrand_fun, ansatz_fun, ref_int_coor, ref_int_weights, initial_config=True)[source]
Constructs a local integrand fun (user potential) for integration of functions in the reference configuration of isoparametric elements. Works for DOFs as a jnp.ndarray.
- Parameters:
integrand_fun (callable) – Function that evaluates the integrand given the integration point, trial ansatz, settings, static settings, and element number.
ansatz_fun (callable) – Function that constructs the ansatz functions.
ref_int_coor (jnp.ndarray) – Reference integration coordinates for the isoparametric element.
ref_int_weights (jnp.ndarray) – Reference integration weights for the isoparametric element.
initial_config (bool, optional) – If True, use the initial configuration for isoparametric mapping. Default is True.
- Returns:
- function
A function that evaluates the integrand for the isoparametric element.
- The returned function has the following parameters:
fI (jnp.ndarray): Element nodal values.
xI (jnp.ndarray): Element nodal coordinates.
elem_number (int): Element number.
settings (dict): Settings for the computation.
static_settings (dict): Static settings for the computation.
Notes
This models works for DOFs as a jnp.ndarray.