|
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., |
2 | 2 | INGRID the instructions will be posted separately.
|
3 | 3 |
|
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: |
6 | 5 |
|
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: |
8 | 10 |
|
9 | 11 | # for inboard half of mesh:
|
10 | 12 | grd.nplate1=3
|
|
18 | 20 | grd.rplate2=[2.1, 2.0, 1.9, 1.8]
|
19 | 21 | grd.zplate2=[1.6, 1.5, 1.4, 1.3]
|
20 | 22 |
|
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 |
22 | 24 | plate should fully cut across the leg, i.e., should cover the range of flux surfaces, from psi0min2 to psi0max, (ii) the plate should
|
23 | 25 | pass through the strike point of the original (orthogonal) grid, and (iii) the plate cannot cut into the domain above the X-point level.
|
24 | 26 |
|
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: |
26 | 30 | com.ismmon=3; grd.istream=0; grd.iplate=1; grd.nsmooth=2; grd.wtmesh1=0.75; grd.dmix0=1.0
|
27 | 31 | Some of these are optional, see the variables description.
|
28 | 32 |
|
29 |
| -(3) Generate the grid: |
| 33 | +(4) Generate non-orthogonal grid: |
30 | 34 | grd.grdrun()
|
31 | 35 |
|
32 |
| -(4) Run the code with additional settings |
| 36 | +(5) Run the code with additional settings |
33 | 37 | com.isnonog=1; bbb.methg=66
|
| 38 | + |
0 commit comments