gVirtualXRay  2.0.10
VirtualX-RayImagingLibraryonGPU
ConstantValues.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (c) 2014-2023, Dr Franck P. Vidal, Bangor University, All rights reserved.
4 Copyright (c) 2023-present, Prof Franck P. Vidal (franck.vidal@stfc.ac.uk),
5 UK Research and Innovation, All rights reserved.
6 
7 
8 Redistribution and use in source and binary forms, with or without modification,
9 are permitted provided that the following conditions are met:
10 
11 1. Redistributions of source code must retain the above copyright notice,
12 this list of conditions and the following disclaimer.
13 
14 2. Redistributions in binary form must reproduce the above copyright notice,
15 this list of conditions and the following disclaimer in the documentation and/or
16 other materials provided with the distribution.
17 
18 3. Neither the name of Bangor University, UK Research and Innovation nor the
19 names of its contributors may be used to endorse or promote products derived
20 from this software without specific prior written permission.
21 
22 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
24 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 
33 */
34 
35 
36 #ifndef __ConstantValues_h
37 #define __ConstantValues_h
38 
39 
67 //******************************************************************************
68 // Include
69 //******************************************************************************
70 #ifndef __gVirtualXRayConfig_h
72 #endif
73 
74 
75 //******************************************************************************
76 // namespace
77 //******************************************************************************
78 namespace gVirtualXRay {
79 
80 
81 //******************************************************************************
82 // defines
83 //******************************************************************************
85 #define RATIONAL_NUMBER_MAX FLT_MAX
86 
87 
89 #define EPSILON 0.0000001
90 
91 
92 //******************************************************************************
93 // Constant declarations
94 //******************************************************************************
95 #ifndef Pi
96 const double Pi = 3.14159265358979323846;
97 #endif
98 
99 const double Pi_2 = Pi / 2.0;
100 
101 const double N_Avogadro = 6.02552 * 1.0e23;
102 
103 const unsigned short Z_H = 1;
104 const unsigned short Z_C = 6;
105 const unsigned short Z_N = 7;
106 const unsigned short Z_O = 8;
107 const unsigned short Z_Na = 11;
108 const unsigned short Z_Mg = 12;
109 const unsigned short Z_P = 15;
110 const unsigned short Z_S = 16;
111 const unsigned short Z_Cl = 17;
112 const unsigned short Z_Ar = 18;
113 const unsigned short Z_K = 19;
114 const unsigned short Z_Ca = 20;
115 const unsigned short Z_Ti = 22;
116 const unsigned short Z_Fe = 26;
117 const unsigned short Z_Cu = 29;
118 const unsigned short Z_Zn = 30;
119 const unsigned short Z_Ag = 47;
120 const unsigned short Z_Sn = 50;
121 const unsigned short Z_I = 53;
122 
123 } // namespace gVirtualXRay
124 
125 
126 #endif // __ConstantValues_h
const unsigned short Z_S
Sulfur atomic number.
const unsigned short Z_H
Hydrogen atomic number.
const unsigned short Z_Cl
Chlorine atomic number.
const unsigned short Z_Zn
Zinc atomic number.
const double N_Avogadro
Avogadro number.
const unsigned short Z_N
Nitrogen atomic number.
const unsigned short Z_Sn
Tin atomic number.
const unsigned short Z_Cu
Copper atomic number.
const unsigned short Z_Ti
Titanium atomic number.
const double Pi_2
Pi divided by 2.0.
const unsigned short Z_P
Phosphorus atomic number.
const unsigned short Z_I
Iodine atomic number.
const unsigned short Z_Mg
Magnesium atomic number.
const unsigned short Z_Ar
Argon atomic number.
const unsigned short Z_Ca
Calcium atomic number.
const unsigned short Z_Fe
Iron atomic number.
const unsigned short Z_O
Oxygen atomic number.
const unsigned short Z_K
Potassium atomic number.
const double Pi
Pi.
const unsigned short Z_C
Carbon atomic number.
const unsigned short Z_Ag
Silver atomic number.
const unsigned short Z_Na
Sodium atomic number.