24 Nucleus(
const std::string& symbol,
25 int nP,
int nN, doublereal spin) : m_np(nP),
26 m_nn(nN), m_spin(spin),
41 return (
int)(2*m_spin) + 1;
46 std::string symbol() {
51 if (m_np == b.m_np && m_nn == b.m_nn) {
63 return (m_spin - std::floor(m_spin) < 0.001);
75 inline Nucleus* HydrogenNucleus()
77 return new Nucleus(
"H", 1, 0, 0.5);
79 inline Nucleus* DeuteriumNucleus()
81 return new Nucleus(
"D", 1, 1, 1.0);
83 inline Nucleus* TritiumNucleus()
85 return new Nucleus(
"T", 1, 2, 0.5);
87 inline Nucleus* He3Nucleus()
89 return new Nucleus(
"He3", 2, 1, 0.5);
91 inline Nucleus* He4Nucleus()
93 return new Nucleus(
"He3", 2, 2, 0.0);
95 inline Nucleus* C12nucleus()
97 return new Nucleus(
"C12", 6, 6, 0.0);
99 inline Nucleus* C13nucleus()
101 return new Nucleus(
"C13", 6, 7, 0.5);
103 inline Nucleus* N14nucleus()
105 return new Nucleus(
"N14", 7, 7, 1.0);
107 inline Nucleus* N15nucleus()
109 return new Nucleus(
"N15", 7, 8, 0.5);
111 inline Nucleus* O16nucleus()
113 return new Nucleus(
"O16", 8, 8, 0.0);
115 inline Nucleus* O17nucleus()
117 return new Nucleus(
"O17", 8, 9, 2.5);
119 inline Nucleus* O18nucleus()
121 return new Nucleus(
"O18", 8, 10, 0.0);
123 inline Nucleus* F19nucleus()
125 return new Nucleus(
"F19", 9, 10, 0.5);
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, HTML_logs (see Input File Handling, Diagnostic Output, Writing messages to the screen and Writing HTML Logfiles).
Represents atomic nuclei.