-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindata.xsd
400 lines (350 loc) · 13.7 KB
/
indata.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:annotation>
<xs:documentation>Code parameters for VMEC (INDATA namelist)</xs:documentation>
</xs:annotation>
<!-- Special Definitions and Rules -->
<xs:simpleType name="float_list">
<xs:list itemType="xs:float"/>
</xs:simpleType>
<xs:simpleType name="integer_list">
<xs:list itemType="xs:integer"/>
</xs:simpleType>
<!-- INDATA Namelist -->
<xs:element name="parameters">
<xs:complexType>
<xs:all>
<xs:element ref="MGRID_FILE" minOccurs="0"/>
<xs:element ref="NFP" minOccurs="0"/>
<xs:element ref="NCURR" minOccurs="0"/>
<xs:element ref="NSTEP" minOccurs="0"/>
<xs:element ref="NVACSKIP" minOccurs="0"/>
<xs:element ref="DELT" minOccurs="0"/>
<xs:element ref="GAMMA" minOccurs="0"/>
<xs:element ref="AM" minOccurs="0"/>
<xs:element ref="AI" minOccurs="0"/>
<xs:element ref="AC" minOccurs="0"/>
<xs:element ref="PMASS_TYPE" minOccurs="0"/>
<xs:element ref="PIOTA_TYPE" minOccurs="0"/>
<xs:element ref="PCURR_TYPE" minOccurs="0"/>
<xs:element ref="AM_AUX_S" minOccurs="0"/>
<xs:element ref="AM_AUX_F" minOccurs="0"/>
<xs:element ref="AI_AUX_S" minOccurs="0"/>
<xs:element ref="AI_AUX_F" minOccurs="0"/>
<xs:element ref="AC_AUX_S" minOccurs="0"/>
<xs:element ref="AC_AUX_F" minOccurs="0"/>
<xs:element ref="SPRES_PED" minOccurs="0"/>
<xs:element ref="PRES_SCALE" minOccurs="0"/>
<xs:element ref="RAXIS_CC" minOccurs="0"/>
<xs:element ref="RAXIS_CS" minOccurs="0"/>
<xs:element ref="ZAXIS_CC" minOccurs="0"/>
<xs:element ref="ZAXIS_CS" minOccurs="0"/>
<xs:element ref="MPOL" minOccurs="0"/>
<xs:element ref="NTOR" minOccurs="0"/>
<xs:element ref="NTHETA" minOccurs="0"/>
<xs:element ref="NZETA" minOccurs="0"/>
<xs:element ref="NITER_ARRAY" minOccurs="0"/>
<xs:element ref="NS_ARRAY" minOccurs="0"/>
<xs:element ref="FTOL_ARRAY" minOccurs="0"/>
<xs:element ref="TCON0" minOccurs="0"/>
<xs:element ref="PRECON_TYPE" minOccurs="0"/>
<xs:element ref="PREC2D_THRESHOLD" minOccurs="0"/>
<xs:element ref="CURTOR" minOccurs="0"/>
<xs:element ref="EXTCUR" minOccurs="0"/>
<xs:element ref="PHIEDGE" minOccurs="0"/>
<xs:element ref="BLOAT" minOccurs="0"/>
<xs:element ref="LFORBAL" minOccurs="0"/>
<xs:element ref="LFREEB" minOccurs="0"/>
<xs:element ref="LASYM" minOccurs="0"/>
<xs:element ref="LRFP" minOccurs="0"/>
<xs:element ref="LBSUBS" minOccurs="0"/>
<xs:element ref="LNYQUIST" minOccurs="0"/>
<xs:element ref="RBC_np0" minOccurs="0"/>
<xs:element ref="ZBS_np0" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
<!-- Variable definitions -->
<!-- MGRID_FILE -->
<xs:element name="MGRID_FILE" type="xs:string" default="none">
<xs:annotation>
<xs:documentation>Path to vacuum grid file as produced by MAKEGRID</xs:documentation>
</xs:annotation>
</xs:element>
<!-- NFP -->
<xs:element name="NFP" type="xs:integer" default="1">
<xs:annotation>
<xs:documentation>Number of toroidal field periods</xs:documentation>
</xs:annotation>
</xs:element>
<!-- NCURR -->
<xs:element name="NCURR" type="xs:integer" default="0">
<xs:annotation>
<xs:documentation>0: Iota (AI) specified (1/q); 1: Toroidal current profile (AC) specified</xs:documentation>
</xs:annotation>
</xs:element>
<!-- NSTEP -->
<xs:element name="NSTEP" type="xs:integer" default="200">
<xs:annotation>
<xs:documentation>Interations between screen output.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- NVACSKIP -->
<xs:element name="NVACSKIP" type="xs:integer" default="6">
<xs:annotation>
<xs:documentation>Initial iterations between vacuum field samples</xs:documentation>
</xs:annotation>
</xs:element>
<!-- DELT -->
<xs:element name="DELT" type="xs:float" default="1.0">
<xs:annotation>
<xs:documentation>Interative smoothing factor</xs:documentation>
</xs:annotation>
</xs:element>
<!-- GAMMA -->
<xs:element name="GAMMA" type="xs:float" default="0.0">
<xs:annotation>
<xs:documentation>Adiabatic index.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- AM -->
<xs:element name="AM" type="float_list" default="0.0 0.0 0.0">
<xs:annotation>
<xs:documentation>Coefficients for mass profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- AI -->
<xs:element name="AI" type="float_list" default="0.0 0.0 0.0">
<xs:annotation>
<xs:documentation>Coefficients for iota profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- AC -->
<xs:element name="AC" type="float_list" default="0.0 0.0 0.0">
<xs:annotation>
<xs:documentation>Coefficients for toroidal current density profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- PMASS_TYPE -->
<xs:element name="PMASS_TYPE" type="xs:string" default="power_series">
<xs:annotation>
<xs:documentation>Functional form of mass profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- PIOTA_TYPE -->
<xs:element name="PIOTA_TYPE" type="xs:string" default="power_series">
<xs:annotation>
<xs:documentation>Functional form of iota (1/q) profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- PCURR_TYPE -->
<xs:element name="PCURR_TYPE" type="xs:string" default="power_series">
<xs:annotation>
<xs:documentation>Functional form of toroidal current profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- AM_AUX_S -->
<xs:element name="AM_AUX_S" type="float_list" default="0.0 0.25 0.5 0.75 1.0">
<xs:annotation>
<xs:documentation>Knot locations in normalized toroidal flux (s) for mass profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- AM_AUX_F -->
<xs:element name="AM_AUX_F" type="float_list" default="1.0 0.72 0.5 0.25 0.0">
<xs:annotation>
<xs:documentation>Knot values in normalized toroidal flux (s) for mass profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- AI_AUX_S -->
<xs:element name="AI_AUX_S" type="float_list" default="0.0 0.25 0.5 0.75 1.0">
<xs:annotation>
<xs:documentation>Knot locations in normalized toroidal flux (s) for iota (1/q) profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- AI_AUX_F -->
<xs:element name="AI_AUX_F" type="float_list" default="1.0 0.8 0.5 0.25 0.2">
<xs:annotation>
<xs:documentation>Knot values in normalized toroidal flux (s) for iota (1/q) profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- AC_AUX_S -->
<xs:element name="AC_AUX_S" type="float_list" default="0.0 0.25 0.5 0.75 1.0">
<xs:annotation>
<xs:documentation>Knot locations in normalized toroidal flux (s) for toroidal current density profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- AC_AUX_F -->
<xs:element name="AC_AUX_F" type="float_list" default="0.0 0.5 1.0 0.5 0.0">
<xs:annotation>
<xs:documentation>Knot values in normalized toroidal flux (s) for toroidal current density profile.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- SPRES_PED -->
<xs:element name="SPRES_PED" type="xs:float" default="1.0">
<xs:annotation>
<xs:documentation>Location of pressure pedestal in normalized toroidal flux (s).</xs:documentation>
</xs:annotation>
</xs:element>
<!-- PRES_SCALE -->
<xs:element name="PRES_SCALE" type="xs:float" default="1.0">
<xs:annotation>
<xs:documentation>Pressure scaling factor.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- RAXIS_CC -->
<xs:element name="RAXIS_CC" type="float_list" default="0.0 0.0 0.0 0.0">
<xs:annotation>
<xs:documentation>Even toroidal (n) harmonics of the R location of the magnetic axis.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- RAXIS_CS -->
<xs:element name="RAXIS_CS" type="float_list" default="0.0 0.0 0.0 0.0">
<xs:annotation>
<xs:documentation>Odd toroidal (n) harmonics of the R location of the magnetic axis.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- ZAXIS_CC -->
<xs:element name="ZAXIS_CC" type="float_list" default="0.0 0.0 0.0 0.0">
<xs:annotation>
<xs:documentation>Even toroidal (n) harmonics of the Z location of the magnetic axis.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- ZAXIS_CS -->
<xs:element name="ZAXIS_CS" type="float_list" default="0.0 0.0 0.0 0.0">
<xs:annotation>
<xs:documentation>Odd toroidal (n) harmonics of the Z location of the magnetic axis.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- MPOL -->
<xs:element name="MPOL" type="xs:integer" default="5">
<xs:annotation>
<xs:documentation>Number of poloidal modes (0:MPOL-1).</xs:documentation>
</xs:annotation>
</xs:element>
<!-- NTOR -->
<xs:element name="NTOR" type="xs:integer" default="0">
<xs:annotation>
<xs:documentation>Total extent of toridal modes (-NTOR:NTOR).</xs:documentation>
</xs:annotation>
</xs:element>
<!-- NTHETA -->
<xs:element name="NTHETA" type="xs:integer" default="0">
<xs:annotation>
<xs:documentation>Real space poloidal gridpoints.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- NZETA -->
<xs:element name="NZETA" type="xs:integer" default="0">
<xs:annotation>
<xs:documentation>Real space toroidal gridpoints, must match MGRID_FILE in free boundary.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- NITER_ARRAY -->
<xs:element name="NITER_ARRAY" type="integer_list" default="1000">
<xs:annotation>
<xs:documentation>Maximum interations in multi-grid scheme.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- NS_ARRAY -->
<xs:element name="NS_ARRAY" type="integer_list" default="9">
<xs:annotation>
<xs:documentation>Radial gridpoints in multi-grid scheme.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- FTOL_ARRAY -->
<xs:element name="FTOL_ARRAY" type="float_list" default="1.0E-8">
<xs:annotation>
<xs:documentation>Force tolerance in multi-grid scheme.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- TCON0 -->
<xs:element name="TCON0" type="xs:float" default="1.0">
<xs:annotation>
<xs:documentation>Weight factor for contrained forces.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- PRECON_TYPE -->
<xs:element name="PRECON_TYPE" type="xs:string" default='NONE'>
<xs:annotation>
<xs:documentation>Preconditioner type for preconditioned descent.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- PREC2D_THRESHOLD -->
<xs:element name="PREC2D_THRESHOLD" type="xs:float" default="1.0E-30">
<xs:annotation>
<xs:documentation>Force threshold to being preconditioned descent.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- CURTOR -->
<xs:element name="CURTOR" type="xs:float" default="0.0">
<xs:annotation>
<xs:documentation>Total toroidal current [A] (used when NCURR=1).</xs:documentation>
</xs:annotation>
</xs:element>
<!-- EXTCUR -->
<xs:element name="EXTCUR" type="float_list" default="0.0 0.0 0.0 0.0">
<xs:annotation>
<xs:documentation>External current factors for free boundary runs.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- PHIEDGE -->
<xs:element name="PHIEDGE" type="xs:float" default="1.0">
<xs:annotation>
<xs:documentation>Total enclosed toroidal flux [Wb].</xs:documentation>
</xs:annotation>
</xs:element>
<!-- BLOAT -->
<xs:element name="BLOAT" type="xs:float" default="1.0">
<xs:annotation>
<xs:documentation>Profile scaleing factor.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- LFORBAL -->
<xs:element name="LFORBAL" type="xs:boolean" default="0">
<xs:annotation>
<xs:documentation>Flag to control use of non-variational forces.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- LFREEB -->
<xs:element name="LFREEB" type="xs:boolean" default="0">
<xs:annotation>
<xs:documentation>Flag to control free boundary calculation.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- LASYM -->
<xs:element name="LASYM" type="xs:boolean" default="0">
<xs:annotation>
<xs:documentation>Flag to control use of non-stellarator symmetric terms.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- LRFP -->
<xs:element name="LRFP" type="xs:boolean" default="0">
<xs:annotation>
<xs:documentation>Flag to control RFP calculation (AI defines q not iota).</xs:documentation>
</xs:annotation>
</xs:element>
<!-- LBSUBS -->
<xs:element name="LBSUBS" type="xs:boolean" default="0">
<xs:annotation>
<xs:documentation>Flag to control recalcualtion of B_s from force balance.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- LNYQUIST -->
<xs:element name="LNYQUIST" type="xs:boolean" default="1">
<xs:annotation>
<xs:documentation>Flag to control use of larger Fourier space for Jacobian.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- RBC n=0 -->
<xs:element name="RBC_np0" type="float_list" default="0">
<xs:annotation>
<xs:documentation>R (even) boundary poloidal Fourier Harmonics for n=0.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- ZBS n=0 -->
<xs:element name="ZBS_np0" type="float_list" default="0">
<xs:annotation>
<xs:documentation>Z (odd) boundary poloidal Fourier Harmonics for n=0.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>