Jacobian of a function
Asked by
Sander Rhebergen
I am trying to write my own Newton type solver in Fenics. I was wondering if there is a function in FEniCS that computes the Jacobian of a function? For example, let's say my function F(u) is defined as:
def F(u):
return u[i].dx(j) * u[j]*dx(i)
and I want to compute J[k] * u[k], where J = DF/Du. Is there an function that can compute J for me? Something like diff or derivative?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Anders Logg
- Solved:
- Last query:
- Last reply:
To post a message you must log in.