-
Notifications
You must be signed in to change notification settings - Fork 11
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
3208 update the plasma profiles section of the docs to include all new models #3256
3208 update the plasma profiles section of the docs to include all new models #3256
Conversation
Refactor the Profile class in profiles.py to improve code structure and readability. Also, add detailed documentation to explain the purpose and functionality of the class and its methods.
Update the navigation structure in the mkdocs.yml file to include sub-pages for the Profiles section. This change adds separate pages for the Overview, Density Profile, Temperature Profile, and Profile Base Class. It also updates the Composition & Impurities page and adds a new Radiation page. This improves the organization and accessibility of the Plasma Profiles documentation.
…le class documentation
Refactor the Profile class in profiles.py to enhance code structure and readability. Additionally, add comprehensive documentation to clarify the purpose and functionality of the class and its methods.
Update the parameterization method in the PlasmaProfile class to handle the case where ipedestal is equal to 0. This improves the accuracy and reliability of the plasma profile calculations.
…vative plots for the profile graidants
…he-docs-to-include-all-new-models
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.
Made spelling and grammar corrections to docs and pointed out some in the docstrings of ncore
and tcore
. Once they're dealt with, happy for this to be merged.
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.
Happy with the changes and for this to be merged.
Description
This change sees a large expansion to the documentation for the plasma profiles.
All functions that calculate the plasma profiles are now documented along with full derivations of all the maths involved.
The
profiles.py
andplasma_profiles.py
files have also been updated to be more pythonic with some functions now utilising modern library'sThe re-derivation for the pedestal profiles showed some errors in the original calculations which showed periodic variation in the core temperature value for increasing$\alpha_T$ . The top figure is the newly derived continuous function, the middle is the non-continuous function for non-integer values and the bottom plot is the difference between the two.
Checklist
I confirm that I have completed the following checks: