autopdex.models.poisson_fos
- autopdex.models.poisson_fos(spacing, coefficient_fun=<function <lambda>>, source_fun=None)[source]
Poisson equation as set of first order models augmented by curl(v)=0
First field of solution space has to be scalar function; remaining fields form the gradient, i.e. theta = lambda x: ansatz(x)[0] grad_theta = lambda x: ansatz(x)[1:] n_dim = 2 or 3
- Parameters:
spacing (float) – Spacing for the weights.
coefficient_fun (function) – Function to compute the coefficient of the laplacian, defaults to 1.
source_fun (function, optional) – Function to compute the source term, defaults to None.
- Returns:
Function to compute the first order PDE system residuals.
- Return type:
pde_fun (function)
Notes
This models works for DOFs as a jnp.ndarray.