<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Example Scripts</title><link>https://sourceforge.net/p/qwwad/wiki/Example%2520Scripts/</link><description>Recent changes to Example Scripts</description><atom:link href="https://sourceforge.net/p/qwwad/wiki/Example%20Scripts/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 28 Sep 2016 09:34:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/qwwad/wiki/Example%20Scripts/feed" rel="self" type="application/rss+xml"/><item><title>Example Scripts modified by Alex Valavanis</title><link>https://sourceforge.net/p/qwwad/wiki/Example%2520Scripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -15,12 +15,12 @@
 Inside the examples folder, you'll find a list of subfolders - one for each chapter of the textbook:

     numerical-solutions/
-    solutions-to-schroedingers-equation/
+    schroedinger-solutions/
     etc...

 Note that we haven't numbered these by chapter, in case we decide to add or remove chapters from future editions of the book!

-Each folder contains an `index` file that states which script generates each figure in the book.  For example, `solutions-to-schroedingers-equation/index` contains lines that look like:
+Each folder contains an `index` file that states which script generates each figure in the book.  For example, `schroedinger-solutions/index` contains lines that look like:

     ...
     Fig 2.2:  infinite-well-wavefunctions.sh   =&amp;gt; infinite-well-wavefunctions.dat
@@ -39,22 +39,22 @@

 You can run the example script by typing `sh` followed by the full name of the script.  For example,

-    sh /usr/share/qwwad/examples/solutions-to-schroedingers-equation/finite-well-wavefunctions.sh
+    sh /usr/share/qwwad/examples/schroedinger-solutions/finite-well-wf.sh

 This is a bit of a mouthful, so alternatively, you can copy the script into the folder you created (either by using the `cp` command or by using a file browser).  You can then run the script using the simpler command:

-    sh ./finite-well-wavefunctions.sh
+    sh ./finite-well-wf.sh

 The script will display a chunk of text containing:

-* A brief list of the data file(s) that have been created.  In this example, `finite-well-wavefunctions.dat`.
+* A brief list of the data file(s) that have been created.  In this example, `finite-well-wf.dat`.
 * An explanation of the data contained in each column of the data file(s).
 * A copyright notice
 * An address to report bugs (hopefully you won't need it!)

 Plot the data files
 ===================
-The data files created by the script contain data in the format specified when the script finishes.  If we plot the data in the sets contained in `finite-well-wavefunctions.dat`, it appears as follows:
+The data files created by the script contain data in the format specified when the script finishes.  If we plot the data in the sets contained in `finite-well-wf.dat`, it appears as follows:

 ![Data in finite-well-wavefunctions.dat](https://a.fsdn.com/con/app/proj/qwwad/screenshots/psi.png "Data in finite-well-wavefunctions.dat")

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Valavanis</dc:creator><pubDate>Wed, 28 Sep 2016 09:34:32 -0000</pubDate><guid>https://sourceforge.net08ae013e547068be02693e982ce32ae4295fe065</guid></item><item><title>Example Scripts modified by Alex Valavanis</title><link>https://sourceforge.net/p/qwwad/wiki/Example%2520Scripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -2,8 +2,8 @@

 Generally speaking, each script will generate the data for one or more of the figures in the textbook.  You should, therefore, be able to reproduce (almost) everything you see in the book by running an appropriate script!

-Finding the examples
-====================
+Find the examples
+=================
 The examples are installed into a shared folder on your system.  On Ubuntu, this will be:

     /usr/share/qwwad/examples/
@@ -30,8 +30,8 @@
 This means that if we want to reproduce Fig. 2.2 from the book, we need to run the `infinite-well-wavefunctions.sh` script and this will produce a data file called `infinite-well-wavefunctions.dat`.

-Running the examples
-====================
+Run the examples
+================
 We recommend creating a new folder in your home directory to provide a clean environment for running the scripts:

     mkdir -p ~/qwwad-examples
@@ -52,8 +52,8 @@
 * A copyright notice
 * An address to report bugs (hopefully you won't need it!)

-Looking at the data files
-=========================
+Plot the data files
+===================
 The data files created by the script contain data in the format specified when the script finishes.  If we plot the data in the sets contained in `finite-well-wavefunctions.dat`, it appears as follows:

 ![Data in finite-well-wavefunctions.dat](https://a.fsdn.com/con/app/proj/qwwad/screenshots/psi.png "Data in finite-well-wavefunctions.dat")
@@ -62,8 +62,8 @@

 You can check that the data files are correct by inspecting the appropriate figure in the textbook. If you find that your data file doesn't look like the figure, please let us know on our bug-reporting page!

-Playing with the scripts!
-=========================
+Play with the scripts!
+======================
 We provide these scripts as starting points for you to investigate the physical systems we discuss in the book.  As such, we actively encourage you to edit them, play with the parameters and find their breaking points... what happens if you put a 1 kg particle in a quantum well?  What happens if you make the well 1 km wide?  Find out!

 If you want to edit the script, then make a copy of it in your local folder as discussed previously.  Use this as your guinea pig and keep the original script in its original pristine condition.  This means that if you break the script you always have a clean copy to return to!
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Valavanis</dc:creator><pubDate>Sat, 03 Jan 2015 14:51:20 -0000</pubDate><guid>https://sourceforge.netb0364c3dc19d33917a950baf90130939d5948186</guid></item><item><title>Example Scripts modified by Alex Valavanis</title><link>https://sourceforge.net/p/qwwad/wiki/Example%2520Scripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -60,13 +60,7 @@

 Note that I have added axis labels and annotations to this figure myself.  The data file just contains raw data!

-You can check that the data files are correct by inspecting the appropriate figure in the textbook, or by looking at the EPS figure with the same name in the examples folder.  e.g.,
-
-    /usr/share/qwwad/examples/solutions-to-schroedingers-equation/finite-well-wavefunctions.eps
-
-The examples folder also contains an AGR file that contains a labelled and formatted graph, for use with the Xmgrace plotting tool.
-
-If you find that your data file doesn't look like the EPS figure, please let us know on our bug-reporting page!
+You can check that the data files are correct by inspecting the appropriate figure in the textbook. If you find that your data file doesn't look like the figure, please let us know on our bug-reporting page!

 Playing with the scripts!
 =========================
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Valavanis</dc:creator><pubDate>Sat, 03 Jan 2015 14:50:39 -0000</pubDate><guid>https://sourceforge.net4a28e889953c62795b9afc2011e32801325518ac</guid></item><item><title>Example Scripts modified by Alex Valavanis</title><link>https://sourceforge.net/p/qwwad/wiki/Example%2520Scripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,4 @@
-QWWAD is shipped with a large number of example scripts.  These, typically, run one or more of the QWWAD programmes to produce a data file that can be plotted using a graph package (such as Xmgrace or ORIGIN).
+QWWAD is shipped with a large number of example scripts.  These, typically, run one or more of the QWWAD programs to produce a data file that can be plotted using a graph package (such as Xmgrace or ORIGIN).

 Generally speaking, each script will generate the data for one or more of the figures in the textbook.  You should, therefore, be able to reproduce (almost) everything you see in the book by running an appropriate script!

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Valavanis</dc:creator><pubDate>Sat, 26 Jul 2014 17:02:44 -0000</pubDate><guid>https://sourceforge.netde4945e4b76fb3941cd0b8e9002655b201f66f13</guid></item><item><title>Example Scripts modified by Alex Valavanis</title><link>https://sourceforge.net/p/qwwad/wiki/Example%2520Scripts/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;QWWAD is shipped with a large number of example scripts.  These, typically, run one or more of the QWWAD programmes to produce a data file that can be plotted using a graph package (such as Xmgrace or ORIGIN).&lt;/p&gt;
&lt;p&gt;Generally speaking, each script will generate the data for one or more of the figures in the textbook.  You should, therefore, be able to reproduce (almost) everything you see in the book by running an appropriate script!&lt;/p&gt;
&lt;h1 id="finding-the-examples"&gt;Finding the examples&lt;/h1&gt;
&lt;p&gt;The examples are installed into a shared folder on your system.  On Ubuntu, this will be:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;share&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;qwwad&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;examples&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Other operating systems may install them somewhere else, such as:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;share&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;qwwad&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;examples&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Inside the examples folder, you'll find a list of subfolders - one for each chapter of the textbook:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;numerical&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;solutions&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
&lt;span class="n"&gt;solutions&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;schroedingers&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;equation&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="p"&gt;...&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Note that we haven't numbered these by chapter, in case we decide to add or remove chapters from future editions of the book!&lt;/p&gt;
&lt;p&gt;Each folder contains an &lt;code&gt;index&lt;/code&gt; file that states which script generates each figure in the book.  For example, &lt;code&gt;solutions-to-schroedingers-equation/index&lt;/code&gt; contains lines that look like:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="nx"&gt;Fig&lt;/span&gt; &lt;span class="mf"&gt;2.2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="nx"&gt;infinite&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;well&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;wavefunctions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sh&lt;/span&gt;   &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;infinite&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;well&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;wavefunctions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;dat&lt;/span&gt;
&lt;span class="nx"&gt;Fig&lt;/span&gt; &lt;span class="mf"&gt;2.3&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="nx"&gt;infinite&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;well&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;energy&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;vs&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;width&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sh&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;infinite&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;well&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;energy&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;vs&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;width&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;dat&lt;/span&gt;
&lt;span class="p"&gt;...&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This means that if we want to reproduce Fig. 2.2 from the book, we need to run the &lt;code&gt;infinite-well-wavefunctions.sh&lt;/code&gt; script and this will produce a data file called &lt;code&gt;infinite-well-wavefunctions.dat&lt;/code&gt;.&lt;/p&gt;
&lt;h1 id="running-the-examples"&gt;Running the examples&lt;/h1&gt;
&lt;p&gt;We recommend creating a new folder in your home directory to provide a clean environment for running the scripts:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;mkdir&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;~/&lt;/span&gt;&lt;span class="n"&gt;qwwad&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;examples&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="o"&gt;~/&lt;/span&gt;&lt;span class="n"&gt;qwwad&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;examples&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;You can run the example script by typing &lt;code&gt;sh&lt;/code&gt; followed by the full name of the script.  For example,&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nx"&gt;sh&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;share&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;qwwad&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;examples&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;solutions&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;schroedingers&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;equation&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;finite&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;well&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;wavefunctions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sh&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This is a bit of a mouthful, so alternatively, you can copy the script into the folder you created (either by using the &lt;code&gt;cp&lt;/code&gt; command or by using a file browser).  You can then run the script using the simpler command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nx"&gt;sh&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;finite&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;well&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;wavefunctions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sh&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The script will display a chunk of text containing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A brief list of the data file(s) that have been created.  In this example, &lt;code&gt;finite-well-wavefunctions.dat&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;An explanation of the data contained in each column of the data file(s).&lt;/li&gt;
&lt;li&gt;A copyright notice&lt;/li&gt;
&lt;li&gt;An address to report bugs (hopefully you won't need it!)&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="looking-at-the-data-files"&gt;Looking at the data files&lt;/h1&gt;
&lt;p&gt;The data files created by the script contain data in the format specified when the script finishes.  If we plot the data in the sets contained in &lt;code&gt;finite-well-wavefunctions.dat&lt;/code&gt;, it appears as follows:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Data in finite-well-wavefunctions.dat" src="https://a.fsdn.com/con/app/proj/qwwad/screenshots/psi.png" title="Data in finite-well-wavefunctions.dat" rel="nofollow" /&gt;&lt;/p&gt;
&lt;p&gt;Note that I have added axis labels and annotations to this figure myself.  The data file just contains raw data!&lt;/p&gt;
&lt;p&gt;You can check that the data files are correct by inspecting the appropriate figure in the textbook, or by looking at the EPS figure with the same name in the examples folder.  e.g.,&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="err"&gt;/usr/share/qwwad/examples/solutions-to-schroedingers-equation/finite-well-wavefunctions.eps&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The examples folder also contains an AGR file that contains a labelled and formatted graph, for use with the Xmgrace plotting tool.&lt;/p&gt;
&lt;p&gt;If you find that your data file doesn't look like the EPS figure, please let us know on our bug-reporting page!&lt;/p&gt;
&lt;h1 id="playing-with-the-scripts"&gt;Playing with the scripts!&lt;/h1&gt;
&lt;p&gt;We provide these scripts as starting points for you to investigate the physical systems we discuss in the book.  As such, we actively encourage you to edit them, play with the parameters and find their breaking points... what happens if you put a 1 kg particle in a quantum well?  What happens if you make the well 1 km wide?  Find out!&lt;/p&gt;
&lt;p&gt;If you want to edit the script, then make a copy of it in your local folder as discussed previously.  Use this as your guinea pig and keep the original script in its original pristine condition.  This means that if you break the script you always have a clean copy to return to!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Valavanis</dc:creator><pubDate>Thu, 08 May 2014 20:01:36 -0000</pubDate><guid>https://sourceforge.net6979db0fd2b7191250a311a5d33a71540e75320c</guid></item></channel></rss>