templates.problem_template.linear_forms

templates.problem_template.linear_forms

Functions

Name Description
l Template for your problem’s linear (load or residual) form:

l

templates.problem_template.linear_forms.l(v, w)

Template for your problem’s linear (load or residual) form: ∫_Ω [your integrand here] dx

Parameters:

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 right-hand side vector assembly.

Note:

In a nonlinear problem solved by Newton’s method, this form assembles the residual vector.