Skip to content

Update synchrotron radiation docs and other variables#3541

Merged
timothy-nunn merged 13 commits intomainfrom
full_update_radiation_docs
Mar 12, 2025
Merged

Update synchrotron radiation docs and other variables#3541
timothy-nunn merged 13 commits intomainfrom
full_update_radiation_docs

Conversation

@chris-ashe
Copy link
Copy Markdown
Collaborator

@chris-ashe chris-ashe commented Feb 12, 2025

Description

Follow on from some work partially done in #3386
Still waiting on conversion of impurity_radiation.f90 so updated the synchrotron radiation sections.

  • The function psync_albajar_fidone() has been re-factored to actually take inputs as it was calling global physics variables.
  • A new plotting script called psync_albajar_fidone_reflectivity.py has been added to documentation/proc-pages/scripts/plotting_scripts.

Namespace changes

Functions


Variables

  • pcoreradpv -> pden_plasma_core_rad_mw
  • pedgeradpv -> pden_plasma_outer_rad_mw
  • maxradwallload -> pflux_fw_rad_max
  • coreradius -> radius_plasma_core_norm
  • palpfwmw -> p_fw_alpha_mw
  • wallmw -> pflux_fw_neutron_mw

✨ New additions

  • p_plasma_sync_mw: Represents the total synchrotron power from the plasma.

🐛 Bugs

There was never a variable representing the total synchrotron power from the plasma, instead it was always outputted as (pden_plasma_sync_mw*vol). This would cause parsing issues due to *. A new variable p_plasma_sync_mw has been created in physics_variables.f90 to fix this.

Checklist

I confirm that I have completed the following checks:

  • My changes follow the PROCESS style guide
  • I have justified any large differences in the regression tests caused by this pull request in the comments.
  • I have added new tests where appropriate for the changes I have made.
  • If I have had to change any existing unit or integration tests, I have justified this change in the pull request comments.
  • If I have made documentation changes, I have checked they render correctly.
  • I have added documentation for my change, if appropriate.

@chris-ashe chris-ashe added Physics Relating to the physics models Radiation Plasma radiated power labels Feb 12, 2025
@chris-ashe chris-ashe self-assigned this Feb 12, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 12, 2025

Codecov Report

❌ Patch coverage is 19.23077% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.20%. Comparing base (159ac62) to head (281ad4b).
⚠️ Report is 244 commits behind head on main.

Files with missing lines Patch % Lines
process/physics.py 0.00% 12 Missing ⚠️
process/physics_functions.py 26.66% 11 Missing ⚠️
process/stellarator.py 0.00% 9 Missing ⚠️
process/io/sankey_funcs.py 0.00% 4 Missing ⚠️
process/ife.py 0.00% 3 Missing ⚠️
process/io/plot_proc.py 0.00% 1 Missing ⚠️
process/objectives.py 0.00% 1 Missing ⚠️
process/power.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3541      +/-   ##
==========================================
- Coverage   31.20%   31.20%   -0.01%     
==========================================
  Files          83       83              
  Lines       19940    19943       +3     
==========================================
  Hits         6223     6223              
- Misses      13717    13720       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chris-ashe chris-ashe changed the title 🚧 Fully update radiation docs, methods and variables Update synchrotron radiation docs and other variables Mar 7, 2025
@chris-ashe chris-ashe force-pushed the full_update_radiation_docs branch from 8c8fe30 to 762b5c9 Compare March 7, 2025 15:18
@chris-ashe chris-ashe marked this pull request as ready for review March 7, 2025 15:20
@chris-ashe chris-ashe requested a review from j-a-foster March 7, 2025 15:20
Copy link
Copy Markdown
Collaborator

@j-a-foster j-a-foster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typos but otherwise the docs look good.

I'll review the variable changes once obsolete_vars.py has been updated.

## Synchrotron radiation | `psync_albajar_fidone()`

The synchrotron radiation power[^8][^9] is assumed to originate from the plasma core.
The formula below is the current syncrotorn radiation loss power implemented in `PROCESS`. It is a combination of the general form given by Albajar et al. [^8] and a wall reflectivity correction given then by Fidone et al. [^9]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"syncrotorn" -> synchrotron

Don't need "given then by", "given by" is fine.

Copy link
Copy Markdown
Collaborator

@j-a-foster j-a-foster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy with the name changes listed in the overview.

Copy link
Copy Markdown
Collaborator

@timothy-nunn timothy-nunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only change required is obsolete variables

Comment thread source/fortran/input.f90
Comment thread source/fortran/input.f90
@chris-ashe chris-ashe force-pushed the full_update_radiation_docs branch from 7aac56e to 9e214e3 Compare March 11, 2025 10:54
@chris-ashe chris-ashe force-pushed the full_update_radiation_docs branch from dc8bdf8 to 281ad4b Compare March 12, 2025 13:39
@timothy-nunn timothy-nunn merged commit e12bee9 into main Mar 12, 2025
@timothy-nunn timothy-nunn deleted the full_update_radiation_docs branch March 12, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Variables Physics Relating to the physics models Radiation Plasma radiated power Variable rename

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants