I am trying to use the action() for the NonlinearVariationalSolver() in FEniCS as shown below:
problem_u = NonlinearVariationalProblem(E_u, u, bc_disp, Jd) solver_u = NonlinearVariationalSolver(problem_u) residual = action(solver_u,u)
But I am getting the following error,
Unable to convert object to a UFL form: <dolfin.cpp.fem.NonlinearVariationalSolver object at 0x7f35615b9770>
Is there any method to make this working?
Please help to fix the issue.