templates.problem_template.bilinear_forms
templates.problem_template.bilinear_forms
Functions
| Name | Description |
|---|---|
| a | Template for your problem’s bilinear form (or Jacobian in a nonlinear solver): |
a
templates.problem_template.bilinear_forms.a(u, v, w)Template for your problem’s bilinear form (or Jacobian in a nonlinear solver): ∫_Ω [your integrand here] dx
Parameters:
u : array_like or callable Trial (or current Newton iterate) values at quadrature points. v : array_like or callable Test function values at quadrature points. w : dict Assembly context carrying any coefficients or parameters.
Returns:
array_like or float Elementwise integrand for global matrix assembly.
Note:
In a nonlinear problem solved by Newton’s method, this form assembles the Jacobian matrix.