Giter Club home page Giter Club logo

isotopeconst's Introduction

IsotopeConst

IsotopeConst is a header only C/C++ constant library for atomic isotopes. It contains a total of 30,924 constants for 3436 atomic isotopes up to and including Oganesson (element 119) compiled by the Atomic Mass Data Center.

About

This constant library is primarially made for people who want to rapidly do some calculation involving atomic isotopes without having to build a system to read in atomic data. This library provides access to the current set of isotope constants found in the 2016 Atomic Mass Evaluation done by the Atomic Mass Data Center. This set is recommended by the International Atomic Energy Agency (IAEA).

The constants are compiled from the Atomic Mass Evaluation - AME2016. The header file and resulting documentation is generated from this file. The constant library has data on neutron count, proton count, mass number, atomic mass, mass excess and binding energey per nucleon for all known isotopes of elements upto and including Oganesson (element 119).

Documentation

All constants are fully documented. You can read the documentation HERE. If you prefer a pdf it can be found HERE.

Setup

IsotopeConst is a header-only library, and therfore does not need to be compiled. All that needs to be done is copy the IsotopeConst folder to your include directories and add #include "IsotopeConst/IsotopeConst.hpp".

All of the constants are placed under the IsotopeConst namespace. For simple programs you might want to use using IsotopeConst after including the header file.

Example Usage

All the constants follow the naming scheme: element name, mass number, property. For example Samarium-135 atomic mass would be: Samarium135AtomicMass

Below is an example of using IsotopeConst to calculate mass excess for Rhodium-106.

#include <iostream>
#include "IsotopeConst/IsotopeConst.hpp"

//Calculates the mass excess for Rhodium-106
int main() {
    const double uToMeVPercSquared = 931.4940954;

    double massExcessInu = IsotopeConst::Rhodium106AtomicMass - IsotopeConst::Rhodium106MassNumber;

    std::cout << "The mass excess of Rh-106 is " << massExcessInu << " u or " << massExcessInu * uToMeVPercSquared << " MeV/c^2" << std::endl;
    return 0;
}

Release notes

Features:

  • Completed documentation
  • Completed final pass for public release.

isotopeconst's People

Contributors

drgrafil avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.