gray/tests/06-ITER-startup/__init__.py
Michele Guerini Rocco c5a4b180bc
src/gray_params.f90: replace magic numbers with enums
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.
2024-02-09 11:16:18 +01:00

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}