Function nucdist_set (o2scl)¶
-
void
o2scl_part
::
nucdist_set
(std::vector<nucleus> &dist, nucmass &nm, std::string expr = "1", int maxA = 400, bool include_neutron = false)¶ Set a distribution of nuclei from a mass formula and a function string.
Given a nuclear mass formula
nm
, this adds nuclei to astd::vector
object. The functionexpr
, a function ofZ
andN
, determines which nuclei will be added to the distribution.- Note
This function is actually in the
o2scl
namespace. Unfortunately doxygen has difficulty extending namespaces in separate doxyfile instances.