Hi folks
I'm solving the wave equation on a circular domain that I made in gmsh.
I want the initial conditions to be defined by a function I came up with using polar coordinates.
However, I have trouble implementing it in fenics.
As far as I know, the symbol "x" in fenics refers to a vector containing spatial variables, i.e. x[1] = x, x[1] = y and so on.
I've tried converting my initial conditions to cartesian coordinates but I don't get what I expect, so therefore I ask if it's possible to re-define x in fenics so as to contain polar coordinates?
I need something like: x[0] = r and x[1] = theta