<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to nuclear_mass</title><link>https://sourceforge.net/p/nucnet-projects/wiki/nuclear_mass/</link><description>Recent changes to nuclear_mass</description><atom:link href="https://sourceforge.net/p/nucnet-projects/wiki/nuclear_mass/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 12 Apr 2014 22:16:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/nucnet-projects/wiki/nuclear_mass/feed" rel="self" type="application/rss+xml"/><item><title>nuclear_mass modified by Bradley S. Meyer</title><link>https://sourceforge.net/p/nucnet-projects/wiki/nuclear_mass/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -70,7 +70,7 @@

 ** `cd ../../../nuclear_mass` **

-** `../nucnet-tools-code/examples/analysis/print_properties my_new_alpha_output.xml time "Volume term" "Surface term" "Coulomb term" "Pair term" "Shell term"` **
+** `../nucnet-tools-code/examples/analysis/print_properties my_new_alpha_output.xml time "Volume term" "Surface term" "Coulomb term" "Pairing term" "Shell term"` **

 This prints out, for each timestep in the calculation, the timestep number, the time in seconds, and then each of the energy terms per nucleon.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bradley S. Meyer</dc:creator><pubDate>Sat, 12 Apr 2014 22:16:38 -0000</pubDate><guid>https://sourceforge.net4055cfb2c5632634dca748a2e95d117d68a61086</guid></item><item><title>nuclear_mass modified by Bradley S. Meyer</title><link>https://sourceforge.net/p/nucnet-projects/wiki/nuclear_mass/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -14,7 +14,7 @@

 Now you can checkout the project:

-** `svn checkout svn://svn.code.sf.net/p/nucnet-projects/code/trunk/projects/nuclear_decay`**
+** `svn checkout svn://svn.code.sf.net/p/nucnet-projects/code/trunk/projects/nuclear_mass`**

 ##### Compiling the executables. #####

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bradley S. Meyer</dc:creator><pubDate>Sat, 12 Apr 2014 21:59:34 -0000</pubDate><guid>https://sourceforge.net23e47d7636d24e80daa4c74a4e59946736c24ed7</guid></item><item><title>nuclear_mass modified by Bradley S. Meyer</title><link>https://sourceforge.net/p/nucnet-projects/wiki/nuclear_mass/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,6 +1,6 @@
 ### nuclear_mass ###

-This project allows users to work with their own nuclear masses in NucNet Tools/Projects XML files.
+This project allows users to work with their own nuclear masses in NucNet Tools/Projects XML files.  The default mass formula is that of [Myers-Swiateck](http://adsabs.harvard.edu/abs/1966NucPh..81....1M).

 ##### Installing the project. #####

@@ -28,7 +28,7 @@

 The project compiled successfully if you see *Make succeeded.*   Otherwise, please submit a Ticket or make a post to the Discussion board (see links above).

-##### Compute nuclear mass terms from the [Myers-Swiateck](http://adsabs.harvard.edu/abs/1966NucPh..81....1M) mass formula. #####
+##### Compute nuclear mass terms from the Myers-Swiateck mass formula. #####

 You will need a nuclear data file to specify the nuclei.  Download the JINA reaclib database by typing

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bradley S. Meyer</dc:creator><pubDate>Sat, 12 Apr 2014 21:57:10 -0000</pubDate><guid>https://sourceforge.net9d8c70ed8b511ee08b259d613d55860c305cccbd</guid></item><item><title>nuclear_mass modified by Bradley S. Meyer</title><link>https://sourceforge.net/p/nucnet-projects/wiki/nuclear_mass/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -44,7 +44,7 @@

 Note that you must include the neutron and proton (*a = 1*) because the code needs the mass for those species.

-##### Update the nuclear data in an XML file with the Myers-Swiatecki mass formula. #####
+##### Update the nuclear data in an XML file with values from the Myers-Swiatecki mass formula. #####

 To update the nuclear data with that from the Myers-Swiateck mass formula, type

@@ -56,4 +56,24 @@

 ** `./update_net_xml ../nucnet-tools-code/data_pub/my_net.xml new.xml "[z &gt;= 26 and z &lt;= 28]"` **

+##### Compute the mass term energies per nucleon in a network calculation. #####
+
+You can compute the mass term energies per nucleon from a network calculation.  To do so, you need the output XML.  As an example, one might use *my_alpha_output.xml*, as computed in this [blog post](https://sourceforge.net/u/mbradle/blog/2013/06/studying-flow-types-in-flow-diagrams/).  Assuming you have moved *my_alpha_output.xml* to the *nuclear_mass* directory, type
+
+** `./compute_mass_terms_in_zones my_alpha_output.xml my_new_alpha_output.xml` **
+
+The newly created file *my_new_alpha_output.xml* has the energies per nucleon added as optional properties.  To extract them, use the NucNet Tools *print_properties* code.  Type
+
+** `cd ../nucnet-tools-code/examples/analysis` **
+
+** `make all_analysis` **
+
+** `cd ../../../nuclear_mass` **
+
+** `../nucnet-tools-code/examples/analysis/print_properties my_new_alpha_output.xml time "Volume term" "Surface term" "Coulomb term" "Pair term" "Shell term"` **
+
+This prints out, for each timestep in the calculation, the timestep number, the time in seconds, and then each of the energy terms per nucleon.
+
+
+
 [[members]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bradley S. Meyer</dc:creator><pubDate>Sat, 12 Apr 2014 21:54:37 -0000</pubDate><guid>https://sourceforge.netf3012dbefc9f55671b7a7115619a0225ea28cc1f</guid></item><item><title>nuclear_mass modified by Bradley S. Meyer</title><link>https://sourceforge.net/p/nucnet-projects/wiki/nuclear_mass/</link><description>&lt;div class="markdown_content"&gt;&lt;h3 id="nuclear_mass"&gt;nuclear_mass&lt;/h3&gt;
&lt;p&gt;This project allows users to work with their own nuclear masses in NucNet Tools/Projects XML files.&lt;/p&gt;
&lt;h5 id="installing-the-project"&gt;Installing the project.&lt;/h5&gt;
&lt;p&gt;If you have not previously done so, install the necessary &lt;a class="alink" href="/p/nucnet-projects/wiki/libraries/"&gt;[libraries]&lt;/a&gt;.  Next, if you have not previously done so, create a projects directory:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;mkdir projects&lt;/code&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Change into the projects directory:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;cd projects&lt;/code&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now you can checkout the project:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;svn checkout svn://svn.code.sf.net/p/nucnet-projects/code/trunk/projects/nuclear_decay&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h5 id="compiling-the-executables"&gt;Compiling the executables.&lt;/h5&gt;
&lt;p&gt;Change into the project directory:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;cd nuclear_mass&lt;/code&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;and compile the codes:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;./project_make&lt;/code&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The project compiled successfully if you see &lt;em&gt;Make succeeded.&lt;/em&gt;   Otherwise, please submit a Ticket or make a post to the Discussion board (see links above).&lt;/p&gt;
&lt;h5 id="compute-nuclear-mass-terms-from-the-myers-swiateck-mass-formula"&gt;Compute nuclear mass terms from the &lt;a class="" href="http://adsabs.harvard.edu/abs/1966NucPh..81....1M" rel="nofollow"&gt;Myers-Swiateck&lt;/a&gt; mass formula.&lt;/h5&gt;
&lt;p&gt;You will need a nuclear data file to specify the nuclei.  Download the JINA reaclib database by typing&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;make data&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now print out the mass terms by typing&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;./mass_terms ../nucnet-tools-code/data_pub/my_net.xml&lt;/code&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This will print out the species name, &lt;em&gt;Z&lt;/em&gt;, &lt;em&gt;A&lt;/em&gt;, volume energy, surface energy, Coulomb energy, pairing energy, and shell energy.  To select out only certain nuclei, use an XPath expression.  For example, to print out only terms for &lt;em&gt;n&lt;/em&gt;, &lt;em&gt;p&lt;/em&gt;, and iron isotopes, type&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;./mass_terms ../nucnet-tools-code/data_pub/my_net.xml "[a = 1 or z = 26]"&lt;/code&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Note that you must include the neutron and proton (&lt;em&gt;a = 1&lt;/em&gt;) because the code needs the mass for those species.&lt;/p&gt;
&lt;h5 id="update-the-nuclear-data-in-an-xml-file-with-the-myers-swiatecki-mass-formula"&gt;Update the nuclear data in an XML file with the Myers-Swiatecki mass formula.&lt;/h5&gt;
&lt;p&gt;To update the nuclear data with that from the Myers-Swiateck mass formula, type&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;./update_net_xml ../nucnet-tools-code/data_pub/my_net.xml new.xml&lt;/code&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The newly created file &lt;em&gt;new.xml&lt;/em&gt; will have mass excesses for all species other than &lt;em&gt;n&lt;/em&gt; and &lt;em&gt;p&lt;/em&gt; updated with the Myers-Swiatecki values.  It will also have simplified partition function data.&lt;/p&gt;
&lt;p&gt;To select a subset of nuclei to be update, use an XPath expression.  For example, to update only iron, cobalt, and nickel isotopes, type&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;code&gt;./update_net_xml ../nucnet-tools-code/data_pub/my_net.xml new.xml "[z &amp;gt;= 26 and z &amp;lt;= 28]"&lt;/code&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;h6&gt;Project Members:&lt;/h6&gt;
&lt;ul class="md-users-list"&gt;
&lt;li&gt;&lt;a href="/u/mbradle/"&gt;Bradley S. Meyer&lt;/a&gt; (admin)&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bradley S. Meyer</dc:creator><pubDate>Sat, 12 Apr 2014 20:49:50 -0000</pubDate><guid>https://sourceforge.net7f2bfaa3182de13ac90c6f61120b19d1ffa9b24e</guid></item></channel></rss>