MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __init__

Method __init__

python/test/unit/nls/test_newton.py:24–30  ·  view source on GitHub ↗

Initialize nonlinear PDE problem.

(self, F, u, bc)

Source from the content-addressed store, hash-verified

22 """Nonlinear problem class for a PDE problem."""
23
24 def __init__(self, F, u, bc):
25 """Initialize nonlinear PDE problem."""
26 V = u.function_space
27 du = TrialFunction(V)
28 self.L = form(F)
29 self.a = form(derivative(F, u, du))
30 self.bc = bc
31
32 def form(self, x):
33 """Update ghost values of solution vector."""

Callers

nothing calls this directly

Calls 1

formFunction · 0.90

Tested by

no test coverage detected