From 18c33aba96176e00acbca0e6b4c6d72483578497 Mon Sep 17 00:00:00 2001 From: Timothy Nunn Date: Mon, 19 Oct 2026 14:43:28 +0100 Subject: [PATCH] Scale constraint 93 to have residual in Z.particles/s --- process/core/solver/constraints.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/process/core/solver/constraints.py b/process/core/solver/constraints.py index 89e32a77de..d8013775bf 100644 --- a/process/core/solver/constraints.py +++ b/process/core/solver/constraints.py @@ -1939,16 +1939,19 @@ def constraint_equation_92(constraint_registration, data): ) -@ConstraintManager.register_constraint(93, "particles/s", "=") +@ConstraintManager.register_constraint(93, "Z.particles/s", "=") def constraint_equation_93(constraint_registration, data): """Fuel-ion equilibrium constraint. Requires the plasma fuelling rate to equal the fuelling rate required for fuel-ion equilibrium. + + Note the units of the constraint residual (not either variable) + is zetta-particles per second. """ return eq( - data.physics.molflow_plasma_fuelling, - data.physics.molflow_plasma_fuelling_equilibrium, + data.physics.molflow_plasma_fuelling / 10**21, + data.physics.molflow_plasma_fuelling_equilibrium / 10**21, constraint_registration, )