-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
concerns about how we report and save cooling/luminosity #36
Comments
Issue 1: I am doubtful that something is really wrong here, but it is worth investigating. Wind update changes the temperature and abundances in the wind to match the cooling int he previous cycle so the real question is are you going in the right direction to get close to equilibrium. The only time I would think these would all end up the same is after the wind had converged. Issue 2: (JM edit: red herring bug) — |
If we are happy, I can close. This links with the macor pops issue in that there are a number of areas where it feels like we could try and converge on certain values better within a given ionization cycle (e.g. macro populations, trying to make heating cooling temp and ion fractions mutual consisten within a non converged wind model - not sure if this is even possible...) |
I'm closing this, it is kind of the least of our worries at the moment but we should bear it in mind whenever we compare non converged temperatures and heating and cooling |
This is a minor concern, but one I'd like to quickly close. |
@Higginbottom did you make the above change here? |
No - and I also haven't put in a minimum temperature. This should be done since the fix to recomb_cooling allows the plasma to cool down forever in some cases. Before the recomb_cooling would equal zero below a certain temperature - but this was due to a bug. So the fix is good, but the results are not good. I think I logged a bug for this... |
This specific issue was discussed at the meeting in July 2014. Closed with caveat that one just needs to be careful whenever comparing non-converged heating/cooling/temperatures, as they may not be consistent. |
Current Status: Unsolved concern.
Version discovered in: Python 76 but seems to be as far back as 58.
Brief statement of problem: The cooling we report on screen, and save, is not the same one we use to minimise the temperature
How to reproduce: Any model.
Discussion:
This was discovered when testing macro atoms, as a difference was observed in the line and bound-free luminosities between versions 76 and 58.
Here are printouts in three different runs (spanning both macro, non macro and 58, 76), of the sum over lum_rad in all cells before, and also the line luminosity and total luminosity in a specific cell of interest.
So a few fairly obvious observations from this:
So why does a call to wind_luminosity in wind_update lead to a different calculation of luminosity?
Here's why.
We start with an initial guess of temperature and level populations(matom)/ion abundances (non-matom)
after photon transport we having a heating and cooling rate
These are then used to obtain a temperature solution, which means our four values of interest are
After we have our new temperature, we work out a new set of level populations / ion abundances (calling either lucy, nabular_concentrations or macro_pops depending on mode)
Here, our heating and cooling are consistent with the temperature but not really with the level populations / ion abundances. However, when we call wind_luminosity the cooling rate is calculated using the altered level populations.
This means that the cooling we report on screen, and save in the windsave file is not the same one we use to minimise the temperature
However, I think there's a slightly bigger discussion to be had here, which is the question of whether we can improve the scheme. JM and CK had a discussion about this, and wonder if we can iterate using the new level populations so that the temperature, heating, cooling and level populations / ion abundances are mutually consistent. Is this possible?
With our current scheme, it is not possible to report values which are all consisten with each other. This isn't really a problem as long as we deal in converged models.
I propose a few things
Note that there is a bug report to follow about what looks to be a bug in macro_pops.
Old red herring issue- convergence, particularly in macro atom mode
Edit: I had some concerns about our solution for T_e, but this turned out to be a red herring. There is a loop in calc_te in ionization.c which does the following before every T_e solution.
Don't really know why it's there...but I think that clears up issue 2! I suggest we get rid of that as I can't see what purpose it serves unless someone is still using it for diagnostics.
The text was updated successfully, but these errors were encountered: