Loading...
Searching...
No Matches
py_partition.h
Go to the documentation of this file.
#pragma once
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "gridfire/partition/partition.h"
class PyPartitionFunction final : public gridfire::partition::PartitionFunction {
double evaluate(int z, int a, double T9) const override;
double evaluateDerivative(int z, int a, double T9) const override;
bool supports(int z, int a) const override;
std::string type() const override;
std::unique_ptr<gridfire::partition::PartitionFunction> clone() const override;
};
PyPartitionFunction
Definition py_partition.h:9
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