GridFire
0.0.1a
General Purpose Nuclear Network
Loading...
Searching...
No Matches
bindings.cpp
Go to the documentation of this file.
1
#include <pybind11/pybind11.h>
2
#include <pybind11/stl.h>
// Needed for vectors, maps, sets, strings
3
#include <pybind11/stl_bind.h>
// Needed for binding std::vector, std::map etc. if needed directly
4
5
#include "
bindings.h
"
6
7
namespace
py = pybind11;
8
9
#include "
gridfire/utils/logging.h
"
10
11
void
register_utils_bindings
(py::module &m) {
12
m.def(
"formatNuclearTimescaleLogString"
,
13
&
gridfire::utils::formatNuclearTimescaleLogString
,
14
py::arg(
"engine"
),
15
py::arg(
"Y"
),
16
py::arg(
"T9"
),
17
py::arg(
"rho"
),
18
"Format a string for logging nuclear timescales based on temperature, density, and energy generation rate."
19
);
20
}
logging.h
gridfire::utils::formatNuclearTimescaleLogString
std::string formatNuclearTimescaleLogString(const DynamicEngine &engine, const std::vector< double > &Y, const double T9, const double rho)
Formats a map of nuclear species timescales into a human-readable string.
Definition
logging.cpp:13
register_utils_bindings
void register_utils_bindings(py::module &m)
Definition
bindings.cpp:11
bindings.h
src
python
utils
bindings.cpp
Generated by
1.13.2