Functions | Variables
fdbermrock Namespace Reference

Functions

def tot_weight (compos)
 
def tot_fractions ()
 
def elem_frac (compos, elem)
 
def elem_frac_total (elem)
 
def fdbermrock_composition ()
 

Variables

dictionary compositions
 
float matrix_density = 2.81
 
float water_density = 1.00
 
float void_volume_fraction = 0.268
 
int rock_volume_fraction = 1
 
 water_volume_fraction = void_volume_fraction*(0.25 + 0.13)
 
 air_volume_fraction = void_volume_fraction-water_volume_fraction
 
 water_mass_fraction
 
int rock_mass_fraction = 1
 
tuple density
 
dictionary fractions
 

Function Documentation

def fdbermrock.elem_frac (   compos,
  elem 
)

Definition at line 85 of file fdbermrock.py.

References tot_weight().

Referenced by elem_frac_total().

85 def elem_frac(compos, elem):
86  if elem in compos:
87  return compos[elem] * atomic_weight[elem] / tot_weight(compos)
88  else:
89  return 0
90 
def tot_weight(compos)
Definition: fdbermrock.py:73
def elem_frac(compos, elem)
Definition: fdbermrock.py:85
def fdbermrock.elem_frac_total (   elem)

Definition at line 91 of file fdbermrock.py.

References elem_frac(), and tot_fractions().

91 def elem_frac_total(elem):
92  frac = 0
93  for material, compos in compositions.items():
94  frac += elem_frac(compos, elem) * fractions[material]
95  return frac / tot_fractions()
96 
def elem_frac_total(elem)
Definition: fdbermrock.py:91
def elem_frac(compos, elem)
Definition: fdbermrock.py:85
def tot_fractions()
Definition: fdbermrock.py:79
def fdbermrock.fdbermrock_composition ( )

Definition at line 97 of file fdbermrock.py.

References util.make_composition().

98  return make_composition("fdbermrock", fractions, compositions)
99 
def fdbermrock_composition()
Definition: fdbermrock.py:97
def make_composition(name, fractions, compositions)
Definition: util.py:46
def fdbermrock.tot_fractions ( )

Definition at line 79 of file fdbermrock.py.

Referenced by elem_frac_total().

80  tions = 0
81  for material, fraction in fractions.items():
82  tions += fraction
83  return tions
84 
def tot_fractions()
Definition: fdbermrock.py:79
def fdbermrock.tot_weight (   compos)

Definition at line 73 of file fdbermrock.py.

Referenced by elem_frac().

73 def tot_weight(compos):
74  weight = 0
75  for element, number in compos.items():
76  weight += number * atomic_weight[element]
77  return weight
78 
def tot_weight(compos)
Definition: fdbermrock.py:73

Variable Documentation

fdbermrock.air_volume_fraction = void_volume_fraction-water_volume_fraction

Definition at line 36 of file fdbermrock.py.

dictionary fdbermrock.compositions
Initial value:
1 = {
2  'SiO2': { 'Si' : 1, 'O': 2 },
3  'Al2O3': { 'Al' : 2, 'O': 3 },
4  'K2O': { 'K' : 2, 'O': 1 },
5  'Na2O': { 'Na' : 2, 'O': 1 },
6  'CaO' : { 'Ca' : 1, 'O': 1 },
7  'FeO': { 'Fe' : 1, 'O': 1 },
8  'Fe2O3': { 'Fe' : 2, 'O': 3 },
9  'MgO': { 'Mg' : 1, 'O': 1 },
10  'TiO2': { 'Ti' : 1, 'O': 2 },
11  'P2O5': { 'P' : 2, 'O': 5 },
12  'MnO': { 'Mn' : 1, 'O': 1 },
13  'water': { 'H' : 2, 'O': 1 },
14 }

Definition at line 6 of file fdbermrock.py.

tuple fdbermrock.density
Initial value:
1 = (matrix_density * rock_volume_fraction
2  + water_density * water_volume_fraction)

Definition at line 44 of file fdbermrock.py.

dictionary fdbermrock.fractions
Initial value:
1 = {
2  'water': water_mass_fraction,
3 
4  # From Wikipedia "Granite": Mineralogy: Chemical composition on 2017-11-27.
5  # This is the worldwide average for dry granite.
6 
7  'SiO2': 0.7204 * rock_mass_fraction,
8  'Al2O3': 0.1442 * rock_mass_fraction,
9  'K2O': 0.0412 * rock_mass_fraction,
10  'Na2O': 0.0369 * rock_mass_fraction,
11  'CaO' : 0.0182 * rock_mass_fraction,
12  'FeO': 0.0168 * rock_mass_fraction,
13  'Fe2O3': 0.0122 * rock_mass_fraction,
14  # Omit to avoid needing magnesium, which isn't in the path_length_list # file, and doesn't seem worth adding at ~0.4% with an unremarkable
15  # properties: near-average Z/A and neutron capture cross sections.
16  #'MgO': 0.0071,
17 
18  'TiO2': 0.0030 * rock_mass_fraction,
19  'P2O5': 0.0012 * rock_mass_fraction,
20  'MnO': 0.0005 * rock_mass_fraction,
21 }

Definition at line 49 of file fdbermrock.py.

float fdbermrock.matrix_density = 2.81

Definition at line 21 of file fdbermrock.py.

int fdbermrock.rock_mass_fraction = 1

Definition at line 42 of file fdbermrock.py.

int fdbermrock.rock_volume_fraction = 1

Definition at line 27 of file fdbermrock.py.

float fdbermrock.void_volume_fraction = 0.268

Definition at line 25 of file fdbermrock.py.

float fdbermrock.water_density = 1.00

Definition at line 22 of file fdbermrock.py.

fdbermrock.water_mass_fraction
Initial value:
1 = water_volume_fraction*water_density/(
2 water_volume_fraction*water_density + rock_volume_fraction*matrix_density)

Definition at line 38 of file fdbermrock.py.

fdbermrock.water_volume_fraction = void_volume_fraction*(0.25 + 0.13)

Definition at line 34 of file fdbermrock.py.