Loading...
Searching...
No Matches
py_partition.cpp
Go to the documentation of this file.
#include "py_partition.h"
#include "gridfire/partition/partition.h"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include <string>
#include <memory>
namespace py = pybind11;
double PyPartitionFunction::evaluate(int z, int a, double T9) const {
PYBIND11_OVERRIDE_PURE(
double,
gridfire::partition::PartitionFunction,
evaluate,
z, a, T9
);
}
double PyPartitionFunction::evaluateDerivative(int z, int a, double T9) const {
PYBIND11_OVERRIDE_PURE(
double,
gridfire::partition::PartitionFunction,
evaluateDerivative,
z, a, T9
);
}
bool PyPartitionFunction::supports(int z, int a) const {
PYBIND11_OVERRIDE_PURE(
bool,
gridfire::partition::PartitionFunction,
supports,
z, a
);
}
std::string PyPartitionFunction::type() const {
PYBIND11_OVERRIDE_PURE(
std::string,
gridfire::partition::PartitionFunction,
type
);
}
std::unique_ptr<gridfire::partition::PartitionFunction> PyPartitionFunction::clone() const {
PYBIND11_OVERRIDE_PURE(
std::unique_ptr<gridfire::partition::PartitionFunction>,
gridfire::partition::PartitionFunction,
clone
);
}
PyPartitionFunction::type
std::string type() const override
Get the human-readable type of this partition function.
Definition py_partition.cpp:42
PyPartitionFunction::supports
bool supports(int z, int a) const override
Check if this partition function supports an isotope.
Definition py_partition.cpp:33
PyPartitionFunction::evaluateDerivative
double evaluateDerivative(int z, int a, double T9) const override
Evaluate the temperature derivative of the partition function.
Definition py_partition.cpp:24
PyPartitionFunction::evaluate
double evaluate(int z, int a, double T9) const override
Evaluate the partition function for a given isotope.
Definition py_partition.cpp:15
PyPartitionFunction::clone
std::unique_ptr< gridfire::partition::PartitionFunction > clone() const override
Create a deep copy of this PartitionFunction.
Definition py_partition.cpp:50
gridfire::partition::PartitionFunction
Abstract interface for evaluating nuclear partition functions.
Definition partition_abstract.h:17
partition.h
py_partition.h