Hello Dedalus experts,
I’m looking for some help with an unusual bug in my simulation that I have been struggling with for some weeks now. I’m solving the continuity equation and the momentum equation for a compressible fluid. I assume a cold star with a polytope equation of state
and solve the equations in the ballbasis with stress-free and impenetrable boundary conditions.
I’ve found that my simulation is unstable if I do not introduce some viscosity. Below I have linked some example videos of outputs of the simulation going unstable for different grid sizes with no viscosity (interestingly, when my grid is small (Nphi = 32,
Ntheta = 16, Nr = 24), the simulation remains stable, but I suspect it simply isn’t resolving the features that would normally trigger the instability).
Now, when I introduce a viscosity term into my momentum equation, I can get stability by dialing up the value of nu. I have linked a set of movies showing what happens when I dial up nu (basically, once nu=~1e-5-1e-4, I get numerical stability).
Additionally, I’ve noticed if I give some random initial velocity in the ball, the viscosity needs to be increased further to ~1e-4-1e-3 in order to have stability.
All the best and thank you!
Will
--
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 visit
https://groups.google.com/d/msgid/dedalus-users/cbdcae09-e5ff-4654-9273-c3679d9c82c9n%40googlegroups.com.