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>
3
4#include <string>
5
6#include "types/bindings.h"
7#include "partition/bindings.h"
8#include "expectations/bindings.h"
9#include "engine/bindings.h"
10#include "exceptions/bindings.h"
11#include "io/bindings.h"
12#include "reaction/bindings.h"
13#include "screening/bindings.h"
14#include "solver/bindings.h"
15#include "utils/bindings.h"
16
17 PYBIND11_MODULE(gridfire, m) {
18 m.doc() = "Python bindings for the fourdst utility modules which are a part of the 4D-STAR project.";
19
20 pybind11::module::import("fourdst.constants");
21 pybind11::module::import("fourdst.composition");
22 pybind11::module::import("fourdst.config");
23 pybind11::module::import("fourdst.atomic");
24
25 auto typeMod = m.def_submodule("type", "GridFire type bindings");
26 register_type_bindings(typeMod);
27
28 auto partitionMod = m.def_submodule("partition", "GridFire partition function bindings");
29 register_partition_bindings(partitionMod);
30
31 auto expectationMod = m.def_submodule("expectations", "GridFire expectations bindings");
32 register_expectation_bindings(expectationMod);
33
34 auto reactionMod = m.def_submodule("reaction", "GridFire reaction bindings");
35 register_reaction_bindings(reactionMod);
36
37 auto screeningMod = m.def_submodule("screening", "GridFire plasma screening bindings");
38 register_screening_bindings(screeningMod);
39
40 auto ioMod = m.def_submodule("io", "GridFire io bindings");
41 register_io_bindings(ioMod);
42
43 auto exceptionMod = m.def_submodule("exceptions", "GridFire exceptions bindings");
44 register_exception_bindings(exceptionMod);
45
46 auto engineMod = m.def_submodule("engine", "Engine and Engine View bindings");
47 register_engine_bindings(engineMod);
48
49 auto solverMod = m.def_submodule("solver", "GridFire numerical solver bindings");
50 register_solver_bindings(solverMod);
51
52 auto utilsMod = m.def_submodule("utils", "GridFire utility method bindings");
53 register_utils_bindings(utilsMod);
54}
PYBIND11_MODULE
PYBIND11_MODULE(gridfire, m)
Definition bindings.cpp:17
register_engine_bindings
void register_engine_bindings(py::module &m)
Definition bindings.cpp:114
bindings.h
register_exception_bindings
void register_exception_bindings(py::module &m)
Definition bindings.cpp:13
bindings.h
register_expectation_bindings
void register_expectation_bindings(py::module &m)
Definition bindings.cpp:11
bindings.h
register_io_bindings
void register_io_bindings(py::module &m)
Definition bindings.cpp:15
bindings.h
gridfire
Definition engine_abstract.h:31
register_partition_bindings
void register_partition_bindings(pybind11::module &m)
Definition bindings.cpp:20
bindings.h
register_reaction_bindings
void register_reaction_bindings(py::module &m)
Definition bindings.cpp:16
bindings.h
register_screening_bindings
void register_screening_bindings(py::module &m)
Definition bindings.cpp:15
bindings.h
register_solver_bindings
void register_solver_bindings(py::module &m)
Definition bindings.cpp:13
bindings.h
register_type_bindings
void register_type_bindings(pybind11::module &m)
Definition bindings.cpp:11
bindings.h
register_utils_bindings
void register_utils_bindings(py::module &m)
Definition bindings.cpp:11
bindings.h