예제 #1
0
import smact.core as smact
import numpy as np
import matplotlib.pyplot as plt
our_list = smact.ordered_elements(1, 100)

# Define our fonts
font = {
    'family': 'serif',
    'color': 'darkred',
    'weight': 'normal',
    'size': 20,
}

our_list = smact.ordered_elements(1, 100)
proton_1 = []
crustal_1 = []
HHI_P_1 = []
HHI_r_1 = []
proton_2 = []
crustal_2 = []
HHI_P_2 = []
HHI_r_2 = []
proton_3 = []
crustal_3 = []
HHI_P_3 = []
HHI_r_3 = []
proton_4 = []
crustal_4 = []
HHI_P_4 = []
HHI_r_4 = []
proton_5 = []
예제 #2
0
import smact.core as smact
import numpy as np 
import matplotlib.pyplot as plt
our_list = smact.ordered_elements(1,100)
   

# Define our fonts
font = {'family' : 'serif',
        'color'  : 'darkred',
        'weight' : 'normal',
        'size'   : 20,
        }

our_list = smact.ordered_elements(1,100)
proton_1 = [] ; crustal_1 = [] ; HHI_P_1 = [] ; HHI_r_1 = []
proton_2 = [] ; crustal_2 = [] ; HHI_P_2 = [] ; HHI_r_2 = []
proton_3 = [] ; crustal_3 = [] ; HHI_P_3 = [] ; HHI_r_3 = []
proton_4 = [] ; crustal_4 = [] ; HHI_P_4 = [] ; HHI_r_4 = []
proton_5 = [] ; crustal_5 = [] ; HHI_P_5 = [] ; HHI_r_5 = []
proton_6 = [] ; crustal_6 = [] ; HHI_P_6 = [] ; HHI_r_6 = []
proton_7 = [] ; crustal_7 = [] ; HHI_P_7 = [] ; HHI_r_7 = []
proton_8 = [] ; crustal_8 = [] ; HHI_P_8 = [] ; HHI_r_8 = []
proton_9 = [] ; crustal_9 = [] ; HHI_P_9 = [] ; HHI_r_9 = []

for element in our_list:
    a = smact.Element(element)
    if a.crustal_abundance and a.HHI_p:
        if a.trivialname == 'alkali_metals':
            proton_1.append(a.number)
            crustal_1.append(a.crustal_abundance)
            HHI_P_1.append(a.HHI_p)
예제 #3
0
import smact.core as core
our_list = core.ordered_elements(1,90)
for name in our_list:
    x = core.Element(name)
    print x.name
예제 #4
0
import smact.core as core

our_list = core.ordered_elements(1, 90)
for name in our_list:
    x = core.Element(name)
    print x.name