-
Notifications
You must be signed in to change notification settings - Fork 4
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
Start writing automated tests for MMS; renormalise manufactured distribution functions #64
Draft
johnomotani
wants to merge
30
commits into
radial-vperp-standard-DKE-with-neutrals
Choose a base branch
from
radial-vperp-standard-DKE-auto-MMS
base: radial-vperp-standard-DKE-with-neutrals
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
f10f8fd
Refactor loading of coordinates data
johnomotani ac40519
Start working on automated test for MMS
johnomotani 4de5828
Use absolute not relative errors
johnomotani 895a33b
Fix missing mk_float argument to ensure Chebyshev weights are mk_float
johnomotani 03b20ea
Use cos instead of sin so manufactured solution has perturbation at t=0
johnomotani 2efe60a
Functions to build manufactured RHS expression/function
johnomotani 1803b44
Bugfix - use begin_s_r_z_region() in ssp_rk!()
johnomotani 9c49fd5
Hacky function for evaluating df/dt
johnomotani 1e8a10c
Move advance_info definition to input_structs.jl
johnomotani a4ef258
Add vpa variation in manufactured solution for dfni
johnomotani 3ea98bd
Test case evaluating RHS with manufactured f
johnomotani 4d3d192
Parallelise loop initialising manufactured solutions
johnomotani 1ea92f2
Fix so "zero" bc works for vpa coordinate
johnomotani 1fd2e9d
MMS test: use "zero" bc for vpa, non-zero upar, correct f normalization
johnomotani 2e3e252
Remove points affected by bc in MMS test
johnomotani 27c7d42
Support neutrals when calculating rhs in manufactured_solns.jl
johnomotani 5693c4e
Support neutrals in test/manufactured_ddt_tests.jl
johnomotani 859c3c4
Make initial neutral density perturbation non-zero
johnomotani 49bfb9a
Fix dfnn normalisation, add odd components, rationalise argument orders
johnomotani b4fa510
Fix cartesian_dfni_sym(), gyroaveraged_dfnn_sym() to include norm
johnomotani 8d166a8
(Re-)add charge exchange term in manufactured rhs for ion equation
johnomotani db2cf67
Fix indexing typo in charge_exchange_collisions_3V!()
johnomotani ee465d7
Simplify declaration of netcdf_info struct
johnomotani f404095
Update load_coordinate_data() for refactored coordinates setup
johnomotani 7023930
Update sound wave tests for refactored coordinates setup
johnomotani 2fae0b8
Fix some accidental allocations
johnomotani 0917b14
Run cases without neutrals in manufactured_ddt_tests.jl
johnomotani d3b3d67
Use slightly lower v-space resolution for MMS tests
johnomotani 15a3b70
Parallelise manufactured_solutions_as_arrays(), manufactured_rhs_as_a…
johnomotani 3f63c75
More convenient choice of maximum n_element in manufactured_ddt_tests.jl
johnomotani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am worried that this operation is only correct when the field line pitch is inifinite (or zero), so that z and b are codirectional. I think that you are wanting vzeta and vr to be the velocities in the plane perpendicular to the magnetic field line, which they are not. In my original 'gyroaveraged' functions code, I was exploiting that vperp^2 + vpa^2 = vtot^2 = vz^2 + vr^2 + vzeta^2, so the gyroaverage was trivial. Am I missing the point here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a mistake here - was thinking z and b are in the same direction. Was trying to be clever and give non-zero flow, but this doesn't work 😞