Lautaro Alvear
unread,Jan 27, 2026, 12:14:16 PM (7 days ago) Jan 27Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dedalus Users
Hi Dedalus experts, I have been simulating axisymmetric compressible magnetohydrodynamics in a star with the Cowling approximation (i.e, with a gravitational potential that is constant in time) and I have been keeping track of the forces acting on the fluid. When I plot the variation of these quantities, I see that the gravitational force term of the Euler equation (\nabla \Phi) is changing in time, with it's RMS value decreasing linearly with a slope of the order ~ 1e-10.
This seems extremely strange to me, as I do not change this quantity at all in the code, only assigning it the initial value (which I do reading and interpolating a file that has this value for certain values of r), including it in the Euler equation (without adding it as a field to the solver as to not evolve it) and including it in necessary tasks for the file handler, such as the gravitational energy or the RMS value of this quantity.
I would like to know if someone has ran into similar issues or if someone knows what could be causing this. Im running the code with a resolution of (1,64,128) parallelized in 16 processes on a [1,16] mesh. This seems relevant as, looking at the difference between the components, the radial component seems to be alternating between shells without difference and shells where the difference is not equal to 0.
Below I attach a video showing the difference of nabla Phi for each of the components.
Best Regards,
Lautaro.