c5a4b180bc
1. Introduces enumerations (and some booleans) intended to replace all the magic numbers used throughout the code to represent multiple choices. 2. Replace the gray_params.sh script a new one that automatically generates code for all the GRAY parameters by parsing gray_params.f90. 3. Also generate extra code to accept the enum identifiers as valid values in the configuration files and command line arguments. 4. Set sensible default values for parameters that are rarely changes.
25 lines
629 B
Python
25 lines
629 B
Python
'''
|
|
ITER startup scenario at B=5.3T;
|
|
analytical profiles;
|
|
upper steering mirror (USM), virtual beam, 0D beam parameters;
|
|
circular beam, X1 mode/mixed polarisation;
|
|
reflection before entering plasma
|
|
'''
|
|
|
|
from .. import TestCase, GrayTest, get_basedir
|
|
|
|
|
|
class X_Mode(GrayTest, TestCase):
|
|
'''
|
|
X mode at 1st pass, absorption after the reflection
|
|
'''
|
|
reference = get_basedir(__name__) / 'outputs' / 'x-mode'
|
|
|
|
|
|
class Mixed(GrayTest, TestCase):
|
|
'''
|
|
Horizontal polarisation at launch (both X, O mode)
|
|
'''
|
|
reference = get_basedir(__name__) / 'outputs' / 'mixed'
|
|
gray_params = {"raytracing.ipol": True}
|