autopdex.solution_structures.precompute_coupled_boundary

autopdex.solution_structures.precompute_coupled_boundary(phi_0_fun, alpha_fun, x_int, num_diff=1)[source]

Precomputes coupled boundary conditions and their derivatives up to a specified order at given integration points.

Parameters:
  • phi_0_fun (callable) – Boundary condition function.

  • alpha_fun (callable) – Coefficient function.

  • x_int (jnp.ndarray) – Integration points.

  • num_diff (int, optional) – Number of derivatives to compute (0, 1, or 2). Default is 1.

Returns:

Precomputed boundary condition values and derivatives.
  • If num_diff == 0: (fun_i,)

  • If num_diff == 1: (fun_i, dfun_i)

  • If num_diff == 2: (fun_i, dfun_i, ddfun_i)

Return type:

tuple