示例#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])
示例#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])
示例#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]
示例#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]
示例#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")
示例#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")