Polar or cylindrical plot

128 views
Skip to first unread message

Shobhit Saheb Dey

unread,
Jul 15, 2021, 12:28:05 PM7/15/21
to Dedalus Users
I have a superfluid simulation in cylindrical coordinates with theta and z in fourier basis while r in chebyshev basis. The simulation is running fine without any error, but I want to plot the density plots now(via a colormap). Even if I could plot just a cross section of my domain i.e a polar plot, it will be fine. Please guide me through.

Daniel Michael Lecoanet

unread,
Jul 15, 2021, 12:51:20 PM7/15/21
to dedalu...@googlegroups.com
On Jul 15, 2021, at 12:28 PM, Shobhit Saheb Dey <shobhit...@gmail.com> wrote:

I have a superfluid simulation in cylindrical coordinates with theta and z in fourier basis while r in chebyshev basis. The simulation is running fine without any error, but I want to plot the density plots now(via a colormap). Even if I could plot just a cross section of my domain i.e a polar plot, it will be fine. Please guide me through.

--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/901f5402-9ab8-4168-acb0-451215fa33b2n%40googlegroups.com.

Shobhit Saheb Dey

unread,
Jul 16, 2021, 3:08:24 AM7/16/21
to Dedalus Users
This might be problematic in some cases. Is there any dedalus function to plot the fields in polar or cylindrical coordinates?

Keaton Burns

unread,
Jul 16, 2021, 8:57:32 AM7/16/21
to dedalu...@googlegroups.com
Hi Shobhit,

Since everyone usually wants to customize their plots in very specific ways, we only provide some very limited plotting tools (under dedalus.extras.plot_tools).  I’d recommend learning to use matplotlib or another python plotting package.  A good option could be to load the dedalus outputs into xarray and use their plotting features (http://xarray.pydata.org/en/stable/user-guide/plotting.html).

Best,
-Keaton

Shobhit Saheb Dey

unread,
Jul 16, 2021, 9:56:46 AM7/16/21
to Dedalus Users
Thanks, Keaton, I have my code running anyway using matplotlib, I was just asking it from the uniformity point of view.
Reply all
Reply to author
Forward
0 new messages