Hi everyone,
I’m trying to use Dedalus to simulate a magnetic flux tube in the solar corona. I believe that I was able to simulate hydrostatic equilibrium, so I started trying to introduce a changing temperature profile. I consider radiative cooling, conductive heating, and a heating function that is related to MHD turbulence. When I treat the spatial derivative of the temperature as a separate variable, I run into a strange error:
“RuntimeError: failed to factorize matrix at line 100 in file scipy/sparse/linalg/dsolve/SuperLU/SRC/dsnode_bmod.c”
Has anyone run into this error before? Is there an obvious mistake that I am making?
I’ve attached my code and the files that you would need to run it. The call to the relevant function is at the bottom of the code. Please let me know if you have any questions. I did my best to clean up the code but there might still be a few strange parts. A few quick things to mention:
1) I realize that the characteristic temperature that is used to normalize the system is far too large to be physical. This is my sort of kludgy solution to problems with the sharpness of the temperature profile. You’ll notice that the temperature terms still expand to a large number of terms.
2) Viscosity in the corona isn’t really relevant, especially in this problem, hence the extremely large Reynold’s number.
3) The temperature, pressure, and radiative cooling terms are all created with fitted functions.
Thank you very much!
Avery Schiff
--
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 post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/8dee3fbf-a2c9-4ca1-ae14-c20ba2b3cb17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/467054af-e1b5-43ed-83a0-d5f2982847b9%40googlegroups.com.