Sometime I like to solve the variational problem directly by setting up an energy functional energy = H*dx
and then solving with a residual
R=derivative(H,u,du)
If I want to get the ‘exact’ Jacobian of then taking
derivative(R,u,du)
leads to
ValueError: Can only create arguments automatically for non-indexed coefficients.
What is the right way to do this? I want to solve a time-dependent problem so it would be good to not build the solver in each time step and calculate this jacobian first. My hope is to let ufl/fenicsx do this all without me calculating the derivative myself.