GridFire 0.0.1a General Purpose Nuclear Network

Loading...
Searching...
No Matches
py_screening.h
Go to the documentation of this file.
1#pragma once
2
3#include "gridfire/screening/screening.h"
4
5#include <pybind11/pybind11.h>
6#include <pybind11/stl.h>
7#include <pybind11/functional.h> // Needed for std::function
8
9#include <vector>
10
11#include "cppad/cppad.hpp"
12
13 class PyScreening final : public gridfire::screening::ScreeningModel {
14 std::vector<double> calculateScreeningFactors(const gridfire::reaction::LogicalReactionSet &reactions, const std::vector<fourdst::atomic::Species> &species, const std::vector<double> &Y, const double T9, const double rho) const override;
15 std::vector<ADDouble> calculateScreeningFactors(const gridfire::reaction::LogicalReactionSet &reactions, const std::vector<fourdst::atomic::Species> &species, const std::vector<ADDouble> &Y, const ADDouble T9, const ADDouble rho) const override;
16};
PyScreening
Definition py_screening.h:13
PyScreening::calculateScreeningFactors
std::vector< double > calculateScreeningFactors(const gridfire::reaction::LogicalReactionSet &reactions, const std::vector< fourdst::atomic::Species > &species, const std::vector< double > &Y, const double T9, const double rho) const override
Calculates screening factors for a set of reactions.
Definition py_screening.cpp:16
gridfire::screening::ScreeningModel
An abstract base class for plasma screening models.
Definition screening_abstract.h:27
gridfire::screening::ScreeningModel::ADDouble
CppAD::AD< double > ADDouble
Alias for CppAD Automatic Differentiation type for double precision.
Definition screening_abstract.h:30
gridfire::reaction::LogicalReactionSet
TemplatedReactionSet< LogicalReaction > LogicalReactionSet
A set of logical reactions.
Definition reaction.h:563
screening.h