Functions | Variables
barite Namespace Reference

Functions

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

Variables

dictionary compositions
 
float matrix_density = 4.48
 
float water_density = 1.00
 
float void_volume_fraction = 0.269
 
int rock_volume_fraction = 1
 
float water_volume_fraction = void_volume_fraction*0.75
 
 air_volume_fraction = void_volume_fraction-water_volume_fraction
 
 water_mass_fraction
 
int rock_mass_fraction = 1
 
tuple density
 
dictionary fractions
 

Function Documentation

def barite.barite_composition ( )

Definition at line 70 of file barite.py.

References util.make_composition().

71  return make_composition("barite", fractions, compositions)
72 
def barite_composition()
Definition: barite.py:70
def make_composition(name, fractions, compositions)
Definition: util.py:46
def barite.elem_frac (   compos,
  elem 
)

Definition at line 58 of file barite.py.

References tot_weight().

Referenced by elem_frac_total().

58 def elem_frac(compos, elem):
59  if elem in compos:
60  return compos[elem] * atomic_weight[elem] / tot_weight(compos)
61  else:
62  return 0
63 
def elem_frac(compos, elem)
Definition: barite.py:58
def tot_weight(compos)
Definition: barite.py:46
def barite.elem_frac_total (   elem)

Definition at line 64 of file barite.py.

References elem_frac(), and tot_fractions().

64 def elem_frac_total(elem):
65  frac = 0
66  for material, compos in compositions.items():
67  frac += elem_frac(compos, elem) * fractions[material]
68  return frac / tot_fractions()
69 
def tot_fractions()
Definition: barite.py:52
def elem_frac(compos, elem)
Definition: barite.py:58
def elem_frac_total(elem)
Definition: barite.py:64
def barite.tot_fractions ( )

Definition at line 52 of file barite.py.

Referenced by elem_frac_total().

53  tions = 0
54  for material, fraction in fractions.items():
55  tions += fraction
56  return tions
57 
def tot_fractions()
Definition: barite.py:52
def barite.tot_weight (   compos)

Definition at line 46 of file barite.py.

Referenced by elem_frac().

46 def tot_weight(compos):
47  weight = 0
48  for element, number in compos.items():
49  weight += number * atomic_weight[element]
50  return weight
51 
def tot_weight(compos)
Definition: barite.py:46

Variable Documentation

barite.air_volume_fraction = void_volume_fraction-water_volume_fraction

Definition at line 25 of file barite.py.

dictionary barite.compositions
Initial value:
1 = {
2  'BaSO4': { 'Ba' : 1, 'S' : 1, 'O': 4 },
3  'water': { 'H' : 2, 'O': 1 },
4 }

Definition at line 6 of file barite.py.

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

Definition at line 33 of file barite.py.

Referenced by geo::GeometryBase.calculateMassesLong(), ana::TargetCount.CountMass(), get_mass(), genie::alvarezruso::AlvarezRusoCOHPiPDXSec.GetLeptonMass(), INukeNucleonCorr.OutputFiles(), INukeOsetFormula.setNucleus(), and INukeOsetTable.setupOset().

dictionary barite.fractions
Initial value:
1 = {
2  # Assume 30% void in the rock, filled by water.
3  'water': water_mass_fraction,
4  'BaSO4': rock_mass_fraction,
5 }

Definition at line 39 of file barite.py.

float barite.matrix_density = 4.48

Definition at line 13 of file barite.py.

int barite.rock_mass_fraction = 1

Definition at line 31 of file barite.py.

int barite.rock_volume_fraction = 1

Definition at line 20 of file barite.py.

float barite.void_volume_fraction = 0.269

Definition at line 18 of file barite.py.

float barite.water_density = 1.00

Definition at line 15 of file barite.py.

barite.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 27 of file barite.py.

float barite.water_volume_fraction = void_volume_fraction*0.75

Definition at line 23 of file barite.py.