Skip to content

Commit d23901b

Browse files
theo-brownTorax team
authored andcommitted
Fix surface area bug in Delabie threshold calculation
PiperOrigin-RevId: 886136831
1 parent 83197e3 commit d23901b

File tree

55 files changed

+3
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3
-3
lines changed

torax/_src/physics/scaling_laws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ def calculate_plh_delabie(
155155
* 1e6
156156
)
157157

158-
# S is the surface area of the LCFS
159-
P_LH = P_LH_over_S * geo.area_face[-1]
158+
# S = g0[-1], the surface area of the entire plasma at the LCFS.
159+
P_LH = P_LH_over_S * geo.g0_face[-1]
160160

161161
return P_LH
162162

torax/_src/physics/tests/scaling_laws_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def test_calculate_plh_delabie(self):
274274
* 2.0
275275
/ 3.0**0.975
276276
* 1.93 # D=1.93 for VT
277-
* geo.area_face[-1]
277+
* geo.g0_face[-1]
278278
* 1e6 # convert MW -> W
279279
)
280280

-178 Bytes
Binary file not shown.
397 Bytes
Binary file not shown.
411 Bytes
Binary file not shown.
773 Bytes
Binary file not shown.
447 Bytes
Binary file not shown.
-678 Bytes
Binary file not shown.
332 Bytes
Binary file not shown.
-68 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)