autopdex.models.poisson_weak
- autopdex.models.poisson_weak(coefficient_fun=<function <lambda>>, source_fun=None)[source]
Poisson equation in n dimensions as weak form.
- Parameters:
coefficient_fun (function) – Function to compute the coefficient of the laplacian, defaults to 1.
source_fun (function (dependend on the position jnp.ndarray x), optional) – Function to compute the source term, defaults to None.
- Returns:
Function to compute the weak form of the PDE.
- Return type:
pde_fun (function)
Notes
This models works for DOFs as a jnp.ndarray.