Esempio n. 1
0
def test_create_ChargeStates_dictionary():

    elements = ['H', 'He', 'Fe']

    AtomicData = read_atomic_data(elements)

    CSD = create_ChargeStates_dictionary(elements, 2.5879e8, AtomicData)

    for element in elements:
        print()
        print(element+':')
        print(CSD[element])
Esempio n. 2
0
def test_create_ChargeStates_dictionary():

    elements = ['H', 'He', 'Fe']

    AtomicData = read_atomic_data(elements)

    CSD = create_ChargeStates_dictionary(elements, 2.5879e8, AtomicData)

    for element in elements:
        print()
        print(element + ':')
        print(CSD[element])
Esempio n. 3
0
Purpose: test
"""

#------------------------------------------------------------------------------
# Tests
#------------------------------------------------------------------------------
from __future__ import print_function
import numpy as np
import sunnei
import matplotlib.pyplot as plt

#------------------------------------------------------------------------------
# read AtomicData
#------------------------------------------------------------------------------
AtomicData = sunnei.read_atomic_data(screen_output=True)

# Define the plasma parameters
elements = ['He', 'O', 'Mg']
#natom = AtomicData[element]['nstates'] - 1
te_ini = 4.0e+4
te0 = 2.0e+6
ne0 = 1.0e+7
te_list = [te0, te0]
ne_list = [ne0, ne0 * 0.9]

# Create a dictionary to save results
ChargeStateDic = sunnei.create_ChargeStates_dictionary(elements)
ChargeStateDic_pre = sunnei.create_ChargeStates_dictionary(elements)
ChargeStateDic_next = sunnei.create_ChargeStates_dictionary(elements)
#ChargeStateTime = [ChargeStateDic]
Esempio n. 4
0
Purpose: test
"""

#------------------------------------------------------------------------------
# Tests
#------------------------------------------------------------------------------
from __future__ import print_function
import numpy as np
import sunnei
import matplotlib.pyplot as plt

#------------------------------------------------------------------------------
# read AtomicData
#------------------------------------------------------------------------------
AtomicData = sunnei.read_atomic_data(screen_output=True)

# Define the plasma parameters
elements = ['He', 'O', 'Mg']
#natom = AtomicData[element]['nstates'] - 1
te_ini = 4.0e+4
te0 = 2.0e+6
ne0 = 1.0e+7
te_list = [te0, te0]
ne_list = [ne0, ne0*0.9]

# Create a dictionary to save results
ChargeStateDic = sunnei.create_ChargeStates_dictionary(elements)
ChargeStateDic_pre = sunnei.create_ChargeStates_dictionary(elements)
ChargeStateDic_next = sunnei.create_ChargeStates_dictionary(elements)
#ChargeStateTime = [ChargeStateDic]
Esempio n. 5
0
def test_read_atomic_data():
    print("Running test_read_atomic_data")
    AtomicData = read_atomic_data(screen_output=True)
    print("Completed test_read_atomic_data")
Esempio n. 6
0
def test_read_atomic_data():
    print("Running test_read_atomic_data")
    AtomicData = read_atomic_data(screen_output=True)
    print("Completed test_read_atomic_data")