Skip to content
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 missing multiplication by bmag in GKYL_PROJ_FUNC of gk_species_projection #305

Closed
wants to merge 837 commits into from

Conversation

manauref
Copy link
Collaborator

Needed since we wish to evolve jacobgeobmagf

JunoRavin and others added 30 commits February 8, 2024 09:30
…the all_gather method. Need to add MPI to a couple of GK regression tests to make sure this is working
…, M1, M2) instead of primitive moments (n, u, T). This option facilitates the use of correct_maxwellian_gyrokinetic, which corrects the lab moments to be the desired input lab moments.
…this 2x2v simulation that it completely garbles the electron moments.
… delete before merge but first let's get this working.
Modify dg_diffusion_gyrokinetic so the inner most derivative is on f, not J*f. Tested in a 2x2v step simulation and produces results visually identical to simulations with old diffusion operator.
… with argon species. Still need to add feature to run with static neutrals.
…since earlier anomaly is gone. Note for future: I think the ref temp is too high.
… time and can just provide a source via ionization
…ct_neut struct instead of react in gk species in the regression test so that react->all_gk gets set correctly
… operates on because it needs to be operating on a sub-range of the global range so that we can correctly index the global field (the charge density)
…ow still not being applied in regression tests, though.
akashukla and others added 27 commits March 7, 2024 13:04
…rsion seemed ok. Also get rid of some unnecessary steps. Not tested on GPU yet.
…_op was trying to divide by components > 0 of jacobgeo.
…al tests that I have merged into one 2x2v step test that runs in < 1 minute including geometr initialization. I have removed the 3x2v test because it was really a pseudo-2x test with 1 cell in y. If someone wants an example for 3x SOL turbulence they should see the solovev test instead. I don't know what to do with regression tests that have reactions because I'm not sure if the user will always have ADAS installed/how that should work. I will leave STEP regression tests with reactions untouched until I know th answer to this.
…exponential may overflow. Will next add similar protections (along with the base level protections) that are not present in maxwellian projection
…the GKYL_PROJ_FUNC option in gk_species_projecton. In g2 we multiplied by jacobtot, while here we separately multiplying by bmag and jacobgeo. Unclear whether this matters, but at least multiplying by bmag somehow is an improvement. Rename some variables in gk_lbo_relax test for clarity.
@manauref manauref requested a review from akashukla March 13, 2024 05:31
@manauref manauref closed this Mar 13, 2024
@JunoRavin JunoRavin deleted the gk-g0-app_projFuncFic branch March 13, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants