#include <nuclear_dist.h>
For example, to create a collection of all nuclei from the most recent (2003) Atomic Mass Evaluation, and then output all the nuclei in the collection
ame_mass ame; full_dist fd(&ame); for(nuclear_dist::iterator ndi=fd.begin();ndi!=fd.end();ndi++) { cout << ndi->Z << " " << ndi->A << " " << ndi->m << endl; }
Definition at line 264 of file nuclear_dist.h.
Public Member Functions | |
full_dist (nuclear_mass *nm, int maxA=400, bool include_neutron=false) | |
Create a distribution including all nuclei with atomic numbers less than maxA from the mass formula nm . | |
int | set_dist (nuclear_mass *nm, int maxA=400, bool include_neutron=false) |
Set the distribution to all nuclei with atomic numbers less than maxA from the mass formula nm . | |
virtual iterator | begin () |
The beginning of the distribution. | |
virtual iterator | end () |
The end of the distribution. | |
virtual size_t | size () |
The number of nuclei in the distribution. |
int set_dist | ( | nuclear_mass * | nm, | |
int | maxA = 400 , |
|||
bool | include_neutron = false | |||
) |
Set the distribution to all nuclei with atomic numbers less than maxA
from the mass formula nm
.
The information for the previous distribution is cleared before a new distribution is set.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page