Hipace
Variables
write_atomic_weight_cpp Namespace Reference

Variables

 filename = os.path.join( '.', 'relative_atomic_masses.txt' )
 
 text_data = f.read()
 
string regex_command = 'Atomic Number = \d+\n' + \
 
 list_of_tuples = re.findall( regex_command, text_data )
 
dictionary average_mass_dict = {}
 
 mass = float(tupel[1])
 
string cpp_str
 

Variable Documentation

◆ average_mass_dict

dictionary write_atomic_weight_cpp.average_mass_dict = {}

◆ cpp_str

string write_atomic_weight_cpp.cpp_str
Initial value:
1 = """// This script was automatically generated!
2 // Edit src/utils/write_atomic_weight_cpp.py instead!
3 #ifndef HIPACE_ATOMIC_WEIGHT_TABLE_H_
4 #define HIPACE_ATOMIC_WEIGHT_TABLE_H_
5 
6 #include <AMReX_AmrCore.H>
7 #include <AMReX_REAL.H>
8 #include <map>
9 
10 // Reference:
11 // Coursey, J.S., Schwab, D.J., Tsai, J.J., and Dragoset, R.A. (2015),
12 // Atomic Weights and Isotopic Compositions (version 4.1).
13 // [Online] Available: http://physics.nist.gov/Comp [2021, 05, 19].
14 // National Institute of Standards and Technology, Gaithersburg, MD.
15 //
16 // The Data written below is a reformatting of the data referenced form NIST.
17 
18 std::map<std::string, amrex::Real> standard_atomic_weights = {"""

◆ filename

write_atomic_weight_cpp.filename = os.path.join( '.', 'relative_atomic_masses.txt' )

◆ list_of_tuples

write_atomic_weight_cpp.list_of_tuples = re.findall( regex_command, text_data )

◆ mass

tuple write_atomic_weight_cpp.mass = float(tupel[1])

◆ regex_command

string write_atomic_weight_cpp.regex_command = 'Atomic Number = \d+\n' + \

◆ text_data

write_atomic_weight_cpp.text_data = f.read()