GridFire 0.0.1a General Purpose Nuclear Network

Loading...
Searching...
No Matches
partition_ground.h
Go to the documentation of this file.
1#pragma once
2
3#include "gridfire/partition/partition_abstract.h"
4
5#include "fourdst/logging/logging.h"
6
7#include <unordered_map>
8#include <memory>
9
10#include "quill/Logger.h"
11
12 namespace gridfire::partition {
22 class GroundStatePartitionFunction final : public PartitionFunction {
23 public:
31 GroundStatePartitionFunction();
43 double evaluate(
44 const int z,
45 const int a,
46 const double T9
47 ) const override;
60 double evaluateDerivative(
61 const int z,
62 const int a,
63 const double T9
64 ) const override;
73 bool supports(
74 const int z,
75 const int a
76 ) const override;
82 std::string type() const override { return "GroundState"; }
88 std::unique_ptr<PartitionFunction> clone() const override {
89 return std::make_unique<GroundStatePartitionFunction>(*this);
90 }
91 private:
92 quill::Logger* m_logger = fourdst::logging::LogManager::getInstance().getLogger("log");
93 std::unordered_map<int, double> m_ground_state_spin;
103 static constexpr int make_key(
104 const int z,
105 const int a);
106 };
107
108 }
gridfire::partition::GroundStatePartitionFunction::evaluateDerivative
double evaluateDerivative(const int z, const int a, const double T9) const override
Definition partition_ground.cpp:29
gridfire::partition::GroundStatePartitionFunction::supports
bool supports(const int z, const int a) const override
Definition partition_ground.cpp:38
gridfire::partition::GroundStatePartitionFunction::GroundStatePartitionFunction
GroundStatePartitionFunction()
Definition partition_ground.cpp:12
gridfire::partition::GroundStatePartitionFunction::make_key
static constexpr int make_key(const int z, const int a)
Definition partition_ground.cpp:44
gridfire::partition::GroundStatePartitionFunction::clone
std::unique_ptr< PartitionFunction > clone() const override
Definition partition_ground.h:88
gridfire::partition::GroundStatePartitionFunction::evaluate
double evaluate(const int z, const int a, const double T9) const override
Definition partition_ground.cpp:18
gridfire::partition::GroundStatePartitionFunction::m_ground_state_spin
std::unordered_map< int, double > m_ground_state_spin
Definition partition_ground.h:93
gridfire::partition::GroundStatePartitionFunction::type
std::string type() const override
Definition partition_ground.h:82
gridfire::partition::GroundStatePartitionFunction::m_logger
quill::Logger * m_logger
Definition partition_ground.h:92
gridfire::partition::PartitionFunction
Abstract interface for evaluating nuclear partition functions.
Definition partition_abstract.h:17
gridfire::partition
Definition partition_composite.h:15
partition_abstract.h