Skip to content

Commit c572f8d

Browse files
authored
Update set_target_plates.html
1 parent d43ce6c commit c572f8d

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

wikidocs/set_target_plates.html

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
The following instructions are for using the built-in grid generator in UEDGE. For grids produced by external tools, e.g.,
1+
The following instructions are for the built-in grid generator in UEDGE. For grids produced by external tools, e.g.,
22
INGRID the instructions will be posted separately.
33

4-
Once you have generated a grid with orthogonal plates (i.e., the plate is the line orthogonal to flux surfaces and passing through the
5-
respective strike point) you can implement a target plate geometry as follows:
4+
You can implement a target plate geometry as follows:
65

7-
(1) create a python source file plate.blah.py with target plates data that looks like this:
6+
(1) Generate an orthogonal grid, i.e., the plate is the line orthogonal to flux surfaces and passing through the
7+
respective strike point
8+
9+
(2) Create a python source file plate.blah.py with target plates data that looks like this:
810

911
# for inboard half of mesh:
1012
grd.nplate1=3
@@ -18,16 +20,19 @@
1820
grd.rplate2=[2.1, 2.0, 1.9, 1.8]
1921
grd.zplate2=[1.6, 1.5, 1.4, 1.3]
2022

21-
Here are arrays in R and Z containing the coordinates defining the inner and outer plates as piece-wise linear curves. Important: (i) the
23+
Here are arrays in R and Z containing the coordinates defining the inner and outer plates as piece-wise linear curves. Note: (i) the
2224
plate should fully cut across the leg, i.e., should cover the range of flux surfaces, from psi0min2 to psi0max, (ii) the plate should
2325
pass through the strike point of the original (orthogonal) grid, and (iii) the plate cannot cut into the domain above the X-point level.
2426

25-
(2) Use settings:
27+
THen you import those arrays in PyUEDGE by doing execfile("plate.blah.py") in Python2, or an equivalent command in Python3.
28+
29+
(3) Use settings:
2630
com.ismmon=3; grd.istream=0; grd.iplate=1; grd.nsmooth=2; grd.wtmesh1=0.75; grd.dmix0=1.0
2731
Some of these are optional, see the variables description.
2832

29-
(3) Generate the grid:
33+
(4) Generate non-orthogonal grid:
3034
grd.grdrun()
3135

32-
(4) Run the code with additional settings
36+
(5) Run the code with additional settings
3337
com.isnonog=1; bbb.methg=66
38+

0 commit comments

Comments
 (0)