GridFire 0.0.1a General Purpose Nuclear Network

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