Files
GridFire/docs/html/partition__ground_8h_source.html

174 lines
19 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GridFire: src/include/gridfire/partition/partition_ground.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">GridFire<span id="projectnumber">&#160;0.0.1a</span>
</div>
<div id="projectbrief">General Purpose Nuclear Network</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('partition__ground_8h_source.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">partition_ground.h</div></div>
</div><!--header-->
<div class="contents">
<a href="partition__ground_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include &quot;<a class="code" href="partition__abstract_8h.html">gridfire/partition/partition_abstract.h</a>&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &quot;fourdst/logging/logging.h&quot;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &quot;quill/Logger.h&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegridfire_1_1partition.html">gridfire::partition</a> {</div>
<div class="foldopen" id="foldopen00022" data-start="{" data-end="};">
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html"> 22</a></span> <span class="keyword">class </span><a class="code hl_function" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#a8afa2aee993eb3ed8d01c887d39b57eb">GroundStatePartitionFunction</a> final : <span class="keyword">public</span> <a class="code hl_class" href="classgridfire_1_1partition_1_1_partition_function.html">PartitionFunction</a> {</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_function" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#a8afa2aee993eb3ed8d01c887d39b57eb">GroundStatePartitionFunction</a>();</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#af16da0015489307eb64639efbafbbdd5">evaluate</a>(</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">const</span> <span class="keywordtype">int</span> z,</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">const</span> <span class="keywordtype">int</span> a,</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">const</span> <span class="keywordtype">double</span> T9</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> ) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#a0eff10c7b134d9d4081ad72bbc785c5b">evaluateDerivative</a>(</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">const</span> <span class="keywordtype">int</span> z,</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">const</span> <span class="keywordtype">int</span> a,</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keyword">const</span> <span class="keywordtype">double</span> T9</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> ) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#a49b18aae58eb6250aaa23d43d55f02bd">supports</a>(</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keyword">const</span> <span class="keywordtype">int</span> z,</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">const</span> <span class="keywordtype">int</span> a</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> ) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#af8d0146fc2afedf3785ae9ec932d3250"> 82</a></span> std::string <a class="code hl_function" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#af8d0146fc2afedf3785ae9ec932d3250">type</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;GroundState&quot;</span>; }</div>
<div class="foldopen" id="foldopen00088" data-start="{" data-end="}">
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#ade2b0f92a3d9b74968166793466a11e4"> 88</a></span> std::unique_ptr&lt;PartitionFunction&gt; <a class="code hl_function" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#ade2b0f92a3d9b74968166793466a11e4">clone</a>()<span class="keyword"> const override </span>{</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">return</span> std::make_unique&lt;GroundStatePartitionFunction&gt;(*<span class="keyword">this</span>);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#aff8f82f918380795e98c30a00fcd939b"> 92</a></span> quill::Logger* <a class="code hl_variable" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#aff8f82f918380795e98c30a00fcd939b">m_logger</a> = fourdst::logging::LogManager::getInstance().getLogger(<span class="stringliteral">&quot;log&quot;</span>);</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#af7f710edff96b1623c517ddab137c245"> 93</a></span> std::unordered_map&lt;int, double&gt; <a class="code hl_variable" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#af7f710edff96b1623c517ddab137c245">m_ground_state_spin</a>;</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">int</span> <a class="code hl_function" href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#a99c80e2f4ba36e88e08e2abd650a08fb">make_key</a>(</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">const</span> <span class="keywordtype">int</span> z,</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keyword">const</span> <span class="keywordtype">int</span> a);</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> };</div>
</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> }</div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_ground_state_partition_function_html_a0eff10c7b134d9d4081ad72bbc785c5b"><div class="ttname"><a href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#a0eff10c7b134d9d4081ad72bbc785c5b">gridfire::partition::GroundStatePartitionFunction::evaluateDerivative</a></div><div class="ttdeci">double evaluateDerivative(const int z, const int a, const double T9) const override</div><div class="ttdef"><b>Definition</b> <a href="partition__ground_8cpp_source.html#l00029">partition_ground.cpp:29</a></div></div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_ground_state_partition_function_html_a49b18aae58eb6250aaa23d43d55f02bd"><div class="ttname"><a href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#a49b18aae58eb6250aaa23d43d55f02bd">gridfire::partition::GroundStatePartitionFunction::supports</a></div><div class="ttdeci">bool supports(const int z, const int a) const override</div><div class="ttdef"><b>Definition</b> <a href="partition__ground_8cpp_source.html#l00038">partition_ground.cpp:38</a></div></div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_ground_state_partition_function_html_a8afa2aee993eb3ed8d01c887d39b57eb"><div class="ttname"><a href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#a8afa2aee993eb3ed8d01c887d39b57eb">gridfire::partition::GroundStatePartitionFunction::GroundStatePartitionFunction</a></div><div class="ttdeci">GroundStatePartitionFunction()</div><div class="ttdef"><b>Definition</b> <a href="partition__ground_8cpp_source.html#l00012">partition_ground.cpp:12</a></div></div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_ground_state_partition_function_html_a99c80e2f4ba36e88e08e2abd650a08fb"><div class="ttname"><a href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#a99c80e2f4ba36e88e08e2abd650a08fb">gridfire::partition::GroundStatePartitionFunction::make_key</a></div><div class="ttdeci">static constexpr int make_key(const int z, const int a)</div><div class="ttdef"><b>Definition</b> <a href="partition__ground_8cpp_source.html#l00044">partition_ground.cpp:44</a></div></div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_ground_state_partition_function_html_ade2b0f92a3d9b74968166793466a11e4"><div class="ttname"><a href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#ade2b0f92a3d9b74968166793466a11e4">gridfire::partition::GroundStatePartitionFunction::clone</a></div><div class="ttdeci">std::unique_ptr&lt; PartitionFunction &gt; clone() const override</div><div class="ttdef"><b>Definition</b> <a href="#l00088">partition_ground.h:88</a></div></div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_ground_state_partition_function_html_af16da0015489307eb64639efbafbbdd5"><div class="ttname"><a href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#af16da0015489307eb64639efbafbbdd5">gridfire::partition::GroundStatePartitionFunction::evaluate</a></div><div class="ttdeci">double evaluate(const int z, const int a, const double T9) const override</div><div class="ttdef"><b>Definition</b> <a href="partition__ground_8cpp_source.html#l00018">partition_ground.cpp:18</a></div></div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_ground_state_partition_function_html_af7f710edff96b1623c517ddab137c245"><div class="ttname"><a href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#af7f710edff96b1623c517ddab137c245">gridfire::partition::GroundStatePartitionFunction::m_ground_state_spin</a></div><div class="ttdeci">std::unordered_map&lt; int, double &gt; m_ground_state_spin</div><div class="ttdef"><b>Definition</b> <a href="#l00093">partition_ground.h:93</a></div></div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_ground_state_partition_function_html_af8d0146fc2afedf3785ae9ec932d3250"><div class="ttname"><a href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#af8d0146fc2afedf3785ae9ec932d3250">gridfire::partition::GroundStatePartitionFunction::type</a></div><div class="ttdeci">std::string type() const override</div><div class="ttdef"><b>Definition</b> <a href="#l00082">partition_ground.h:82</a></div></div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_ground_state_partition_function_html_aff8f82f918380795e98c30a00fcd939b"><div class="ttname"><a href="classgridfire_1_1partition_1_1_ground_state_partition_function.html#aff8f82f918380795e98c30a00fcd939b">gridfire::partition::GroundStatePartitionFunction::m_logger</a></div><div class="ttdeci">quill::Logger * m_logger</div><div class="ttdef"><b>Definition</b> <a href="#l00092">partition_ground.h:92</a></div></div>
<div class="ttc" id="aclassgridfire_1_1partition_1_1_partition_function_html"><div class="ttname"><a href="classgridfire_1_1partition_1_1_partition_function.html">gridfire::partition::PartitionFunction</a></div><div class="ttdoc">Abstract interface for evaluating nuclear partition functions.</div><div class="ttdef"><b>Definition</b> <a href="partition__abstract_8h_source.html#l00017">partition_abstract.h:17</a></div></div>
<div class="ttc" id="anamespacegridfire_1_1partition_html"><div class="ttname"><a href="namespacegridfire_1_1partition.html">gridfire::partition</a></div><div class="ttdef"><b>Definition</b> <a href="partition__composite_8h_source.html#l00015">partition_composite.h:15</a></div></div>
<div class="ttc" id="apartition__abstract_8h_html"><div class="ttname"><a href="partition__abstract_8h.html">partition_abstract.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b0856f6b0d80ccb263b2f415c91f9e17.html">include</a></li><li class="navelem"><a class="el" href="dir_3626e0c0e3c5d7812d6b277dfa4ec364.html">gridfire</a></li><li class="navelem"><a class="el" href="dir_1d1d50ce0d70b163d7d102a960190628.html">partition</a></li><li class="navelem"><a class="el" href="partition__ground_8h.html">partition_ground.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
</ul>
</div>
</body>
</html>