-
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
Geometry upgrade #166
Geometry upgrade #166
Conversation
…ic coefficents are used to permit extending to more complex magnetic geometry. Input options (including defaults) are modified but the input parameters in the examples and runs .toml files are left to be modified in a future commit.
…use in a non-trivial geometry. Untested.
…ExB drift terms. Note that this means that ExB drifts will only be present if bzeta > 0, so the pitch input parameter must be set to less that 1. This changes significantly the usage of the code so far, which assumed that bzeta ~= 1, whilst allowing an input parameter to set bzed.
…access to the D0 derivative vector for chebyshev grids.
… geometry_option='1D-mirror'. Use the parameter DeltaB to set the change in the magnetic field strength from the centre to the edge of the domain. The exact functional form is chosen to be a quartic with dB/dz = 0 at the sheath entrance.
@slnewton @johnomotani 80cca93 my intention is to investigate the toy geometry introduced in the option in the linked commit. |
…tured_solns.jl module.
…mirror geometry in 1D and magnetic mirror terms.
…ic field strength derivative.
… as a shorthand in the mirror term.
…rily, to restrict vperp advection to cases with r.n > 1, after relaxing this constraint in time_advance.jl, the remaining bugs in vperp_advection.jl were fixed.
…rdinate has coord.n = 1, but the corresponding advect[is].speed array is used in the calculation of another quantity (e.g. r.n = 1 for a 1D mirror example with vperp advection). If this is not done, then NaNs can be introduced by the uninitialised array.
…solutions test of a 1D mirror geometry.
3fcdfc8
to
90c1027
Compare
Oh, one other thing - it would be nice to have a docs page (.md file in |
Should this file be a new file or should the content go in the zz_geo.md file? Are you happy with the description of the geometry given in the corresponding ExCALIBUR report? |
A new file. The files without the The files with
That'd be great. |
Is there a preference for putting the documentation in the geo.jl module next to the source? This seems like a more sustainable option, but perhaps a link in the source to the docs page is enough to ensure it is read and modified when the source is updated? |
These input parameters are no longer used. The uses were only setting them to the default values anyway, so can just be deleted.
5b2416b
to
842bee5
Compare
That is an option, and I agree that it's nice to keep the source code and docs together. The downside is that it's a little bit more annoying to write documentation in docstrings in .jl files than in a .md file (e.g. when writing maths, the |
OK. I am happy with linking to external libraries. For now the main problem is that I cannot work out how to make or view the documentation locally without working on git. Is it really necessary to have webviewer? That may be a problem, as I do all my development on remote servers. |
It should be possible to build a pdf version by doing |
PS the README.md for the docs might need to be updated. I think you need some setup before the docs will build along the lines of
After that (I hope!)
or
should work. As usual, I prefer the REPL version because when you need to edit the .md files and rebuild the docs, the second (and later) docs builds are fast because the code is already compiled. |
Ah, no. When you run |
File to contain documentation of geometry and options
I have just added a new file https://github.com/mabarnes/moment_kinetics/blob/geometry-upgrade/docs/src/geometry.md. Please comment! Whilst writing this I considered that an input namelist for the geometry option (like numerical dissipation) would be appropriate. @johnomotani do you agree and should this happen in this PR? |
I think that should happen in general. This seems like a good time to do it for the geometry. Including the change in this PR would be good as we are already breaking the input options (removing Once you create the new section, it would be good to add the 'old' top-level options to |
Nice, thank you! |
…nput files to be compatible with this change. This changes is not backwards compatible.
This is now done, please review my latest changes! |
Bring input parameter documentation up to date with the source.
Comment out print statement.
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.
Looks good to me. We can merge when the CI tests pass.
Generalisation of the treatment of the magnetic geometry to permit the later addition of non-trivial options.
To do: