Evalute derivative of a function
Asked by
Melanie Jahny
I've got a function defined on a 2D array. I compute the spacial derivative of this function
by using the "dx(i)" function from FEniCS. It works.
But I further have to evalute the derivative function on a certain mesh point. How can I do that? I tried the
"eval" function but I did not succeed. I'm not sure if "eval" is the right function here.
Here is an example
mesh = Rectangle(
V = FunctionSpace(mesh, "CG", 2)
c = Function(V)
deriv_c = c.dx
# I like to get "deriv_c" at mesh point (0.1,0.1)
cord = [0.1, 0.1]
deriv_c.
Thanks for any help!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Blechta
- Solved:
- Last query:
- Last reply:
To post a message you must log in.