Skip to content

Commit e23c832

Browse files
committed
Fix ixseps* indices for divertor-leg-only grid
It makes most sense to set ixseps1 and ixseps2 so that the divertor-leg grid is treated as a SOL-only grid, where neither y-boundary connects to anything.
1 parent 080b16c commit e23c832

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hypnotoad/core/mesh.py

+9
Original file line numberDiff line numberDiff line change
@@ -3861,6 +3861,15 @@ def writeGridfile(self, filename):
38613861
# separatrices in the same radial location
38623862
ixseps2 = ixseps1
38633863

3864+
if (
3865+
"single_region" in self.equilibrium.user_options
3866+
and "divertor" in self.equilibrium.user_options.single_region
3867+
):
3868+
# Need to hack topology indices to get something sensible for
3869+
# single_region case.
3870+
ixseps1 = -1
3871+
ixseps2 = -1
3872+
38643873
f.write("ixseps1", ixseps1)
38653874
f.write("ixseps2", ixseps2)
38663875
f.write("jyseps1_1", jyseps1_1)

0 commit comments

Comments
 (0)