GridFire 0.0.1a General Purpose Nuclear Network

Loading...
Searching...
No Matches
py_solver.cpp
Go to the documentation of this file.
1#include "gridfire/solver/solver.h"
2
3#include <pybind11/pybind11.h>
4#include <pybind11/stl.h>
5#include <pybind11/functional.h> // Needed for std::function
6
7#include <vector>
8
9#include "py_solver.h"
10
11
12 namespace py = pybind11;
13
14 gridfire::NetOut PyDynamicNetworkSolverStrategy::evaluate(const gridfire::NetIn &netIn) {
15 PYBIND11_OVERRIDE_PURE(
16 gridfire::NetOut, // Return type
17 gridfire::solver::DynamicNetworkSolverStrategy, // Base class
18 evaluate, // Method name
19 netIn // Arguments
20 );
21}
PyDynamicNetworkSolverStrategy::evaluate
gridfire::NetOut evaluate(const gridfire::NetIn &netIn) override
Evaluates the network for a given timestep.
Definition py_solver.cpp:14
gridfire::solver::DynamicNetworkSolverStrategy
NetworkSolverStrategy< DynamicEngine > DynamicNetworkSolverStrategy
Type alias for a network solver strategy that uses a DynamicEngine.
Definition solver.h:53
py_solver.h
solver.h
gridfire::NetIn
Definition network.h:53
gridfire::NetOut
Definition network.h:65