Loading...
Searching...
No Matches
partition_abstract.h
Go to the documentation of this file.
#pragma once
#include <string>
#include <memory>
namespace gridfire::partition {
class PartitionFunction {
public:
virtual ~PartitionFunction() = default;
[[nodiscard]] virtual double evaluate(int z, int a, double T9) const = 0;
[[nodiscard]] virtual double evaluateDerivative(int z, int a, double T9) const = 0;
[[nodiscard]] virtual bool supports(int z, int a) const = 0;
[[nodiscard]] virtual std::string type() const = 0;
[[nodiscard]] virtual std::unique_ptr<PartitionFunction> clone() const = 0;
};
}
gridfire::partition::PartitionFunction
Abstract interface for evaluating nuclear partition functions.
Definition partition_abstract.h:17
gridfire::partition::PartitionFunction::evaluate
virtual double evaluate(int z, int a, double T9) const =0
Evaluate the partition function for a given isotope.
gridfire::partition::PartitionFunction::evaluateDerivative
virtual double evaluateDerivative(int z, int a, double T9) const =0
Evaluate the temperature derivative of the partition function.
gridfire::partition::PartitionFunction::~PartitionFunction
virtual ~PartitionFunction()=default
Virtual destructor.
gridfire::partition::PartitionFunction::clone
virtual std::unique_ptr< PartitionFunction > clone() const =0
Create a deep copy of this PartitionFunction.
gridfire::partition::PartitionFunction::supports
virtual bool supports(int z, int a) const =0
Check if this partition function supports an isotope.
gridfire::partition::PartitionFunction::type
virtual std::string type() const =0
Get the human-readable type of this partition function.
gridfire::partition
Definition partition_composite.h:15