ukaea / ukaea/PROCESS

Add additional constraint variables to output

Open
#3,760 2 comments 0 reactions 1 assignee View on GitHub

@timothy-nunn is already working on this.

Since Aug 5, 2025.

  • #3887 by @timothy-nunn — closed without merging
Input/Output Files
Dominant language
Python
Stars
71
Forks
27
Avg merge
2d 18h
Merged PRs (30d)
33

Description

At the moment only the info below is outputted to MFILE.DAT. The example below is from large_tokamak

  • 🐛 All of the constraints are shown to be equality constraints
  • The value of the constraint value should be output
  • The value of the non normalised residual should be output
  • An output to determine if the constraint is $\le$ or $\ge$
Beta_consistency__________________normalised_residue_____________________ (eq_con001)____________________ 2.05025552091342433e-10
 Global_power_balance_consistency__normalised_residue_____________________ (eq_con002)____________________ -6.58040288925576533e-12
 Radial_build_consistency__________normalised_residue_____________________ (eq_con011)____________________ 2.87636581219885556e-12
 Density_upper_limit_______________normalised_residue_____________________ (eq_con005)____________________ 5.65916202788230294e-11
 Neutron_wall_load_upper_limit_____normalised_residue_____________________ (eq_con008)____________________ 2.04408712178860696e-11
 Fusion_power_upper_limit__________normalised_residue_____________________ (eq_con009)____________________ 6.00760552416090832e-11
 Burn_time_lower_limit_____________normalised_residue_____________________ (eq_con013)____________________ -8.29719626338487615e-11
 L-H_power_threshold_limit_________normalised_residue_____________________ (eq_con015)____________________ 2.15474305065299632e-11
 Injection_power_upper_limit_______normalised_residue_____________________ (eq_con030)____________________ -3.80768194752079125e-11
 Net_electric_power_lower_limit____normalised_residue_____________________ (eq_con016)____________________ 9.67350866076799321e-10
 Beta_upper_limit__________________normalised_residue_____________________ (eq_con024)____________________ 5.01504393568552587e-11
 Peak_toroidal_field_upper_limit___normalised_residue_____________________ (eq_con025)____________________ 8.33111357678717468e-13
 CS_coil_EOF_current_density_limit_normalised_residue_____________________ (eq_con026)____________________ -2.15684581306163636e-10
 CS_coil_BOP_current_density_limit_normalised_residue_____________________ (eq_con027)____________________ -1.18395071524446394e-10
 I_op_/_I_critical_(TF_coil)_______normalised_residue_____________________ (eq_con033)____________________ -4.71690464465268633e-11
 Dump_voltage_upper_limit__________normalised_residue_____________________ (eq_con034)____________________ 2.82696164755069645e-06
 J_winding_pack/J_protection_limit_normalised_residue_____________________ (eq_con035)____________________ -9.64872626241231046e-12
 TF_coil_temp._margin_lower_limit__normalised_residue_____________________ (eq_con036)____________________ -3.97894273085341865e-10
 CS_temperature_margin_lower_limit_normalised_residue_____________________ (eq_con060)____________________ -2.43232212149280258e-10
 f_alpha_energy_confinement________normalised_residue_____________________ (eq_con062)____________________ 4.40467662343735356e-11
 Dump_time_set_by_VV_stress________normalised_residue_____________________ (eq_con065)____________________ -5.99888472230247771e-11
 CS_Tresca_yield_criterion_________normalised_residue_____________________ (eq_con072)____________________ -2.18825069175920817e-10
 ne0_>_neped_______________________normalised_residue_____________________ (eq_con081)____________________ -6.33598729038453712e-11
 Upper_Lim._on_Psep_*_Bt_/_q_A_R___normalised_residue_____________________ (eq_con068)____________________ -1.10281783705090675e-11
 TF_coil_case_stress_upper_limit___normalised_residue_____________________ (eq_con031)____________________ -1.17213350137035377e-10
 TF_coil_conduit_stress_upper_lim__normalised_residue_____________________ (eq_con032)____________________ -9.43422007182448397e-11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.