Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FEniCS/dolfinx
/ curl2D
Function
curl2D
python/test/unit/fem/test_interpolation.py:693–694 ·
view source on GitHub ↗
(u)
Source
from the content-addressed store, hash-verified
691
v = Function(V)
692
693
def
curl2D(u):
694
return
ufl.as_vector((ufl.Dx(u[1], 0), -ufl.Dx(u[0], 1)))
695
696
v.interpolate(Expression(curl2D(ufl.grad(w)), V.element.interpolation_points))
697
h_ex = ufl.as_vector((1, -1))
Callers
1
test_de_rahm_2D
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected