GithubHelp home page GithubHelp logo

zwim / nuclear Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 697 KB

Some functions to calculate nuclear decays, isotope masses .. for wxMaxima

License: GNU Affero General Public License v3.0

Shell 100.00%
physics

nuclear's Introduction

Physical constants and functions

A library for (wx)Maxima for physical constants, isotope masses and nuclear decay calculations.

The database contains 3557 known isotopes!

An example calculation:

grafik

Usage

Download or clone this repository to your local .maxima-folder.

In wxMaxima enter load(my_constants) for using the constants and load(nuclear_physics) for nuclear physics.

Now you are ready (some examples):

  • %U gives you the atomic number for Uranium.
  • searchElementName(12) gives you the name of the 12th element.
  • decays(231, %Th) or decays(231, "Th") shows you all possible nuclear decays of Thorium-231 (calculated from mass defect).
  • speedFromEnergy(1e6*%qe, %me) calculates the speed of an electron with 1MeV kinetic energy.

Constants defined

All defined physical constants start with the %-symbol.

Examples:

  • %c ... Speed of light
  • %qe ... Electron charge
  • %G ... Universal gravity constant
  • %me ... Electron mass
  • '%mHe4` ... Atomic mass of He-4
  • ...

Functions defined

Entering nuclear() shows a usage message for all defined functions.

Shell scripts provided

generate_isotopemassesXX.sh generates isotopemassesXX.mac from provided mass.masXX

generate_isotope_arrayXX.sh generates isotope_arrayXX.mac from provided mass.masXX

switch_to_year changes symlinks to the given year. (Normally not necessary.)

get_masses just a stub to show the download link.

Acknowledgment

Live Chart of Nuclids: https://www-nds.iaea.org/relnsd/vcharthtml/VChartHTML.html

Database of isotope masses: https://www-nds.iaea.org/amdc/

nuclear's People

Contributors

zwim avatar

Stargazers

 avatar

Watchers

 avatar

nuclear's Issues

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.