Skip to content

Commit 4124957

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 6319293 commit 4124957

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hypnotoad/core/mesh.py

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

3863+
if "single_region" in self.equilibrium.user_options and "divertor" in self.equilibrium.user_options.single_region:
3864+
# Need to hack topology indices to get something sensible for
3865+
# single_region case.
3866+
ixseps1 = -1
3867+
ixseps2 = -1
3868+
38633869
f.write("ixseps1", ixseps1)
38643870
f.write("ixseps2", ixseps2)
38653871
f.write("jyseps1_1", jyseps1_1)

0 commit comments

Comments
 (0)