Skip to content

Commit 10032a9

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 10032a9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

hypnotoad/core/mesh.py

+10
Original file line numberDiff line numberDiff line change
@@ -3861,6 +3861,16 @@ 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 self.equilibrium.user_options.single_region is not None
3867+
and "divertor" in self.equilibrium.user_options.single_region
3868+
):
3869+
# Need to hack topology indices to get something sensible for
3870+
# single_region case.
3871+
ixseps1 = -1
3872+
ixseps2 = -1
3873+
38643874
f.write("ixseps1", ixseps1)
38653875
f.write("ixseps2", ixseps2)
38663876
f.write("jyseps1_1", jyseps1_1)

0 commit comments

Comments
 (0)