-
Notifications
You must be signed in to change notification settings - Fork 129
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
Add chemistry module built on passive scalars module #496
Conversation
…into chemistry_scalar
…into chemistry_scalar
In this case, is the only coupling to the fluid via Sorry if these questions are answered in your latest implicit rad paper, I dont have time to read it right now :) |
What are the issues you have in mind? It is still VL integrator for example. At each stage, you add all the changes to U. It is not necessary to add all the source terms at the same location. It also shouldn't matter the order you add the source terms. The radiation source terms are added during both the predict and correct steps. |
I dont have any particular issue in mind. Just trying to mentally map out the extension of @c-white's diagram with implicit radiation: https://github.com/PrincetonUniversity/athena/wiki/presentations/athena_structure_mhd_refinement.pdf I also dont clearly understand the separation between:
and which are used when in explicit vs. implicit radiation schemes. I suppose it is fine to add any radiation fluid source terms in any order (and in any separate task list after the main Any separate task list also wouldnt work correctly if the implicit radiation task list were called before Is the scheme fully compatible with the other explicit time-integrators for the fluid, i.e. RK3, RK4? Also, we should probably change Finally, I just noticed that |
Remove unused function declaration
retest this |
so, no, radiation is not used with RK3 and RK4. And there is no need to do it since implicit RT is first order anyway. I think anytime you update conservative variable, you just need to perform another CONS2PRIM, then it is fine. |
I want to revisit this and merge it soon, in the next few weeks. I think there was one or two outstanding design issues, but I am having trouble finding where I summarized them... #496 (comment) seems to be one of my more recent summary comments, but that was on July 7th, before we merged radiation on July 16th and then resolved conflicts + got all the tests passing--- so I think that is stale. Might just be the 6x leftover TODO from @tomidakn's reviews on July 6th and 9th: https://github.com/PrincetonUniversity/athena/pull/496/files#r1254336650 Any thoughts @changgoo @yanfeij @c-white @jmstone (@munan, only if you are back)? |
bump--- any thoughts? |
The
Yes, You are right, they should be removed. I also found another old CALC_CHMFLX TaskID that is unused. I will remove that too.
|
I am finally back part-time! I will put merging chemistry as my priority now. I went through your comments and here are what I can find that need to be done:
I will start working on these. Anything else? |
to chem_ode_solver, removed some TODOs
to chem_ode_solver, removed some TODOs
…sity/athena into chemistry_scalar
OK, I just resolved the issues in the previous comments. The chemistry regression tests are passed but I haven't checked the other regression tests yet. @felker Are we ready to merge after checking all the regression tests? |
Test failed with this message. |
It looks like you've changed |
I just fixed this and the pgen_compile regression test should pass now. Could you try again? Can I run regression test on jenkins or do you have to do it? |
Any new commit triggers new tests. This time, it failed with some unknown reason. I'm gonna retest this on stellar manually. |
retest this on stellar |
I'm sorry for being late as I've been very busy these days. And (belated) welcome back, @munan ! Although I only quickly skimmed the code, it looks good to me as long as they pass the tests. I like the use of TaskList for Six-ray radiation transport. It is nice if we could merge it during the winter break. |
retest this on stellar |
Merge chemistry module to the master branch
Prerequisite checklist
Please review the
CONTRIBUTING.md
file for detailed guidelines.Description
The detailed description of the chemistry module can be found at the wiki page: https://github.com/PrincetonUniversity/athena/wiki/chemistry
An accompanying code paper will be submitted shortly and linked to the wiki.
Testing and validation
Added regression tests under "chemistry"