Dear Fenics users,
I’d like to apply an expression on a function defined on a Function space V, in order to have polar coordinates as unknown in Fenics but classic coordinates in the variational formulation of my problem.
It does work well to compute something but I’m searching for a symbolic operation on v=(r,\theta) to transform it into v_{c}=(r\cos(\theta),r\sin(\theta)). Then I keep a variational formulation in Cartesian coordinates and the operation derivative(Potential_Energy) is the function I minimize with it’s Jacobian to do it faster.
An other way of doing it could be to always stay in polar coordinates but in the potential energy formula I will have some \frac{1}{r} that will appear and it’s the same problem How can I write an symbolic expression on a function?
the perfect example is the \det(v^T.v) operation working on ufl level and apply the determinant symbolic operation, then the symbolic calcul ‘derivative’ does work.