Debug output from Euler.F?

5 views
Skip to first unread message

Nathan Goldbaum

unread,
May 10, 2012, 7:49:40 PM5/10/12
to enzo...@googlegroups.com
Hi all,

I'm running a simulation with an accreting active particle.  This is the first time I've gotten this simulation to get past the first EvolveLevel after sink particle creation without crashing (woohoo!!) but now I'm seeing some strange debug print statements from inside a fortran routine.

The debug statements look like: http://paste.yt-project.org/show/2368/

This comes from line 248 in Euler.F, which looks like: http://paste.yt-project.org/show/2369/

I guess mass is not being transferred correctly from the grid to the accreting particle?  I've never seen this before so I'm hoping that someone on enzo-dev might have more insight.

Thanks for your help!

Greg Bryan

unread,
May 11, 2012, 3:18:48 PM5/11/12
to enzo...@googlegroups.com
Nathan -- This is the part of the routine which adds the gravity source term to the energy.   I doubt this is going to help much, but the from the output you can see that this addition of (negative) energy to these cells drives the total energy below zero.  However, I doubt this is the fundamental issue, as the energy even before this step is positive, but less than 0.5 v^2.  All I can say from the output is that this is not due to the gravitational acceleration.  I suspect the problem is only detected here, but e is dropping below 0.5 v^2 somewhere earlier.  Maybe this comes from your changes somehow modifying the velocity of cells without changing their energy (in PPM, energy is the total specific thermal plus kinetic energy, so e should always be e = ge + 0.5 v^2, which means that if you change v, you need to change e).

Sorry not to be of more help...

Greg

--
You received this message because you are subscribed to the Google Groups "enzo-dev" group.
To post to this group, send email to enzo...@googlegroups.com.
To unsubscribe from this group, send email to enzo-dev+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/enzo-dev?hl=en.

Nathan Goldbaum

unread,
May 11, 2012, 4:24:23 PM5/11/12
to enzo...@googlegroups.com
Hi Greg,

No worries - that was actually very useful.  I do modify the grid energy during accretion by decrementing the grid velocity.  I probably made a unit conversion error or something similar somewhere in the the accretion routines.

Thanks for the context on Euler.F.

Cheers,

Nathan

Nathan Goldbaum

unread,
May 15, 2012, 10:09:36 PM5/15/12
to enzo...@googlegroups.com
Hi Greg,

I seem to have fixed the issue - it was indeed a unit conversion error on my part.

As a side note, this fix means that the orion style sink particle I've been working on now runs without errors.  My thanks to all who worked on, offered advice, or helped out with the active particle stuff this year and last year :)

-Nathan

Greg Bryan

unread,
May 16, 2012, 8:33:16 AM5/16/12
to enzo...@googlegroups.com
Nathan -- Great news!  Thanks for all your hard work on the active particles in general, and sink particles in particular.  I'm really excited about all of this new infrastructure. (And if you get a chance, now might be a good time to draft a bit of documentation while it's all fresh...)

Greg
Reply all
Reply to author
Forward
0 new messages