GridFire 0.0.1a General Purpose Nuclear Network

Loading...
Searching...
No Matches
screening_bare.cpp
Go to the documentation of this file.
1#include "gridfire/screening/screening_bare.h"
2
3#include "fourdst/composition/atomicSpecies.h"
4
5#include "cppad/cppad.hpp"
6
7#include <vector>
8
9
10 namespace gridfire::screening {
11 using ADDouble = CppAD::AD<double>;
12 std::vector<ADDouble> BareScreeningModel::calculateScreeningFactors(
13 const reaction::LogicalReactionSet &reactions,
14 const std::vector<fourdst::atomic::Species>& species,
15 const std::vector<ADDouble> &Y,
16 const ADDouble T9,
17 const ADDouble rho
18 ) const {
19 return calculateFactors_impl<ADDouble>(reactions, species, Y, T9, rho);
20 }
21
22 std::vector<double> BareScreeningModel::calculateScreeningFactors(
23 const reaction::LogicalReactionSet &reactions,
24 const std::vector<fourdst::atomic::Species>& species,
25 const std::vector<double> &Y,
26 const double T9,
27 const double rho
28 ) const {
29 return calculateFactors_impl<double>(reactions, species, Y, T9, rho);
30 }
31}
gridfire::screening::BareScreeningModel::ADDouble
CppAD::AD< double > ADDouble
Alias for CppAD Automatic Differentiation type for double precision.
Definition screening_bare.h:23
gridfire::screening::BareScreeningModel::calculateFactors_impl
std::vector< T > calculateFactors_impl(const reaction::LogicalReactionSet &reactions, const std::vector< fourdst::atomic::Species > &species, const std::vector< T > &Y, const T T9, const T rho) const
Template implementation for calculating screening factors.
Definition screening_bare.h:126
gridfire::screening::BareScreeningModel::calculateScreeningFactors
std::vector< double > calculateScreeningFactors(const 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, which are always 1.0.
Definition screening_bare.cpp:22
gridfire::reaction::LogicalReactionSet
TemplatedReactionSet< LogicalReaction > LogicalReactionSet
A set of logical reactions.
Definition reaction.h:563
gridfire::screening
Definition screening_abstract.h:11
gridfire::screening::ADDouble
CppAD::AD< double > ADDouble
Definition screening_bare.cpp:11
screening_bare.h