8000 🔄 Update constraint variable names 1 by chris-ashe · Pull Request #3706 · ukaea/PROCESS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🔄 Update constraint variable names 1 #3706

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

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

chris-ashe
Copy link
Collaborator
@chris-ashe chris-ashe commented Jul 3, 2025

This PR is just done by quickly skimming some of the variables in constraints.py and making them be in line with the new style guide

🔄 Renames

piepv -> pden_ion_electron_equilibriation_mw
dnla -> nd_electron_line
beam_density_out -> nd_beam_ions_out
walalw -> pflux_fw_neutron_max_mw
fwalld -> fpflux_fw_neutron_max_mw
fvs -> fvs_plasma_total_required
ftburn -> fr_burn_min
pnetelin -> p_plant_electric_net_required_mw
fpnetel -> fp_plant_electric_net_required_mw
tbeamin -> n_beam_decay_length_core_required
f_alpha_plasma -> f_p_alpha_plasma_deposited
bmxlim -> b_tf_inboard_max
fpeakb -> fb_tf_inboard_max
fpinj -> fp_hcd_injected_total_mw
gammax -> eta_cd_norm_hcd_primary_max
fgamcd -> feta_cd_norm_hcd_primary_max
frpeak -> ftemp_fw_max
tcycmn -> t_cycle_min
ftcycl -> ft_cycle_min
cpttf_max -> c_tf_turn_max
fcpttf -> fc_tf_turn_max
fradwall -> fplfux_fw_rad_max

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.

@codecov-commenter
Copy link
codecov-commenter commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 61.36364% with 17 lines in your changes missing coverage. Please review.

Project coverage is 37.63%. Comparing base (275b570) to head (cac323e).

Files with missing lines Patch % Lines
process/scan.py 0.00% 4 Missing ⚠️
process/io/plot_proc.py 0.00% 3 Missing ⚠️
process/physics.py 66.66% 3 Missing ⚠️
process/current_drive.py 33.33% 2 Missing ⚠️
process/io/sankey_funcs.py 0.00% 2 Missing ⚠️
process/constraints.py 94.11% 1 Missing ⚠️
process/plasma_profiles.py 50.00% 1 Missing ⚠️
process/stellarator.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3706   +/-   ##
=======================================
  Coverage   37.63%   37.63%           
=======================================
  Files          88       88           
  Lines       22830    22830           
=======================================
  Hits         8592     8592           
  Misses      14238    14238           

☔ 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 sui 8000 te problems.

@chris-ashe chris-ashe changed the title Update constraint variable names 🔄 Update constraint variable names 1 Jul 3, 2025
@chris-ashe chris-ashe requested a review from clmould July 3, 2025 13:45
@chris-ashe chris-ashe marked this pull request as ready for review July 3, 2025 13:45
Copy link
Collaborator
@clmould clmould left a comment

Choose a reason for hiding this comment

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

Some old var names still need updating:
ft_burn: examples/data in 3 files - large_tokamak_IN.DAT, scan_example_file_IN.DAT and scan_MFILE.DAT
fpinj: examples/data/large_tokamak_IN.DAT
cpttf_max: tests/integration/data/scan_MFILE.DAT
fcpttf: tests/integration/data/scan_MFILE.DAT

fwalld is still in plot_solutions, so this needs re-running to update this to fpflux_fw_neutron_max_mw

Also some conflicts need resolving too

Copy link
Collaborator
@clmould clmould left a comment

Choose a reason for hiding this comment

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

Looks good, can the conflicts be fixed

…e data files and test cases to improve clarity and maintain consistency in the codebase.
…ve clarity regarding its purpose as the f-value for flux-swing (V-s) requirement in steady state.
…mproved clarity and consistency regarding the minimum burn time.
…ed_mw across multiple data files and test scripts to enhance clarity and maintainability.
…d_mw across multiple files for clarity and consistency.
…ss multiple files for improved clarity and consistency regarding the permitted neutral beam e-decay lengths to plasma centre.
…ited across multiple files to enhance clarity regarding the fraction of alpha power deposited in plasma.
…o enhance clarity regarding the maximum allowable value for the toroidal magnetic field.
…tiple data files and scripts to standardize the naming convention for injected power.
…ple files for improved clarity regarding the maximum current drive gamma.
…iple files for improved clarity regarding the maximum current drive gamma.
…mproved clarity regarding the first wall peak temperature.
…in multiple files and updated related comments.
…proved clarity regarding the minimum cycle time.
…r improved clarity regarding the maximum TF coil current per turn.
…improved clarity regarding the maximum TF coil current per turn.
8000
… for improved clarity regarding the upper limit on radiation wall load.
@chris-ashe chris-ashe force-pushed the update_constraint_variable_names branch from 2166a27 to cac323e Compare July 11, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0