derivative of testfunction
Asked by
Melanie Jahny
I try to compute the derivative of TestFunctions (second order Lagrange) in x-direction
on a 2D domain.
Is this possible in FEniCS?
As I learned I need to project the "dx(0)" formulation on a function space. I think the basis
functions are only defined locally on a reference element, so I'm not sure where to project
it.
I tried:
mesh = Rectangle(
V = FunctionSpace(mesh, "Lagrange", 2)
W = FunctionSpace(mesh, "DG", 0)
eta = TestFunction(V)
dx_eta = eta.dx(0) # that works
deriv_eta = project(dx_eta, W) # error...
Thanks for any help!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Melanie Jahny
- Solved:
- Last query:
- Last reply:
To post a message you must log in.