Exemplo n.º 1
0
    def __init__(self, filename):

        self.plasmaWithIOL = gt3(inputFile=filename)
        self.plasmaWithIOL.run_radial_transport()

        self.plasmaWithoutIOL = gt3(inputFile=filename)
        self.plasmaWithoutIOL.disable_IOL()
        self.plasmaWithoutIOL.run_radial_transport()
Exemplo n.º 2
0
 def setUpClass(cls):
     super(GT3TestClassTest, cls).setUpClass()
     from GT3 import gt3
     from GT3.TestBase.testbase import TestClass
     cls.plasma = gt3(preparedInput=TestClass())
     cls.plasma.run_radial_transport()
     TestClass().print_summary()
Exemplo n.º 3
0
def getGT3Test(iolFlag=True, verbose=False, neutFlag=True, mode="coreonly"):
    try:
        from GT3 import gt3
    except ImportError:
        ImportError("Unable to load GT3 module")
    return gt3(preparedInput=TestClass(),
               iolFlag=iolFlag,
               verbose=verbose,
               neutFlag=neutFlag,
               mode=mode)
Exemplo n.º 4
0
#!/usr/bin/python

from GT3 import gt3

shots = [
    "inputs/togt3_d3d_118888_1525", "inputs/togt3_d3d_118888_1570",
    "inputs/togt3_d3d_123301_2800", "inputs/togt3_d3d_123302_2810",
    "inputs/togt3_d3d_144977_3000", "inputs/togt3_d3d_164436_3720",
    "inputs/togt3_d3d_164436_3740", "inputs/togt3_d3d_170672_1900"
]

runs = []

for shot in shots:
    plasma = gt3(inputFile=shot)
    plasma.run_radial_transport()
    runs.append(plasma)
Exemplo n.º 5
0
 def setUpClass(cls):
     cls.testPlasma = gt3(preparedInput=TestClass())
Exemplo n.º 6
0
 def setUpClass(cls):
     from GT3 import gt3
     cls.plasma = gt3(
         inputFile="tests/TestProfiles/unit_test_d3d_144977_3000")
Exemplo n.º 7
0
 def setUpClass(cls):
     from GT3 import gt3
     cls.plasma = gt3(
         inputFile="tests/TestProfiles/unit_test_d3d_175826_2010")