<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://micro.stanford.edu/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jieyin</id>
	<title>Micro and Nano Mechanics Group - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://micro.stanford.edu/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jieyin"/>
	<link rel="alternate" type="text/html" href="http://micro.stanford.edu/wiki/Special:Contributions/Jieyin"/>
	<updated>2026-07-05T19:02:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=M02_Making_a_Perfect_Crystal&amp;diff=5055</id>
		<title>M02 Making a Perfect Crystal</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=M02_Making_a_Perfect_Crystal&amp;diff=5055"/>
		<updated>2011-01-14T22:49:57Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Body-centered-cubic crystal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;H1 ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;&amp;lt;FONT SIZE=&amp;quot;-1&amp;quot;&amp;gt;Manual 02 for MD++ &amp;lt;/FONT&amp;gt; &lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
Making a Perfect Crystal&amp;lt;/H1&amp;gt;&lt;br /&gt;
&amp;lt;DIV&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;P ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;&amp;lt;STRONG&amp;gt;Keonwook Kang and Wei Cai&amp;lt;/STRONG&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/DIV&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;[[ Nov 25 ]], [[2007]]&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;!--Table of Child-Links--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Many solid materials have a periodic crystal structure.&amp;lt;ref&amp;gt;Glass is a counter-example, which is noncrystalline. We call it an amorphous material. Sometimes people consider it as supercooled liquid instead of a true solid, because, like a liquid, glass can flow under shear stress, although at very slow rate.&amp;lt;/ref&amp;gt; &lt;br /&gt;
For example, copper and aluminum have the face-centered-cubic (FCC) structure, while molybdenum and tungsten have the body-centered-cubic (BCC) structure under ambient conditions. The periodic arrangement of atoms simplifies the process of setting up&lt;br /&gt;
an atomistic simulation, because we can use a periodic array of atoms as the&lt;br /&gt;
initial condition. Thus, building up a crystal structure is often the first step in&lt;br /&gt;
the atomistic simulation of solids. In this manual, we will learn how to build several&lt;br /&gt;
crystal structures in MD++ with the example scripts.&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Face-centered-cubic crystal ==&lt;br /&gt;
First, let&#039;s make a perfect FCC aluminum crystal. The script file &#039;&#039;&#039;al.script&#039;&#039;&#039;,&lt;br /&gt;
together with other script files discussed in this manual, can be found in the&lt;br /&gt;
directory &#039;&#039;&#039;MD++/scripts/ME346&#039;&#039;&#039;. To run this script file, type&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/Codes/MD++&lt;br /&gt;
 $ bin/md_gpp scripts/ME346/al.script&lt;br /&gt;
&lt;br /&gt;
The executable file, &#039;&#039;&#039;md_gpp&#039;&#039;&#039; does not contain any potential model, but can be&lt;br /&gt;
used to visualize the atomic structure, as mentioned in the [[M01 Introduction to MD++|Manual 01]].&amp;lt;ref&amp;gt;You can compile the executable &#039;&#039;&#039;alglue_gpp&#039;&#039;&#039;, which is a glue potential model for&lt;br /&gt;
aluminum by typing &lt;br /&gt;
 $ make alglue build=R.&amp;lt;/ref&amp;gt; &lt;br /&gt;
Here is the content of the &#039;&#039;&#039;al.script&#039;&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -*-shell-script-*-&lt;br /&gt;
setnolog&lt;br /&gt;
setoverwrite&lt;br /&gt;
dirname = runs/al-example     # To specify run directory&lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------&lt;br /&gt;
# Create Perfect Lattice Configuration&lt;br /&gt;
crystalstructure = face-centered-cubic&lt;br /&gt;
latticeconst = 4.05           # lattice constant for Al (unit: Angstrom)&lt;br /&gt;
latticesize = [ 1 0 0 1       # c1 = 1*[1 0 0] periodicity vec. in x&lt;br /&gt;
                0 1 0 1       # c2 = 1*[0 1 0] periodicity vec. in y&lt;br /&gt;
                0 0 1 1]      # c3 = 1*[0 0 1] periodicity vec. in z&lt;br /&gt;
makecrystal&lt;br /&gt;
&lt;br /&gt;
#-------------------------------------------------------------&lt;br /&gt;
# Plot Configuration&lt;br /&gt;
atomradius = 1.0 bondradius = 0.3 bondlength = 0&lt;br /&gt;
atomcolor = blue highlightcolor = purple backgroundcolor = gray&lt;br /&gt;
bondcolor = red fixatomcolor = yellow&lt;br /&gt;
plotfreq = 10 win_width = 600 win_height = 600&lt;br /&gt;
rotateangles = [ 0 0 0 1.0 ]&lt;br /&gt;
openwin alloccolors rotate saverot eval plot&lt;br /&gt;
sleep quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Fig.1 Visualization of FCC structure&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
Image:fcc.jpg|(a) Conventional image of FCC unit cell&lt;br /&gt;
Image:al1X1X1.jpg|(b) FCC unit cell in MD++. One corner atom and three face-centered atoms per cell&lt;br /&gt;
Image:al3X3X3.jpg|(c) FCC of 3X3X3 cells&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
FCC, as well as HCP (Hexagonal Close Packed), is a close-packed crystal structure. In Fig.1(a), you can see the conventional image of  FCC unit cell structure, where there is an atom at every corner and every face center of the cube. Since each corner atom is shared by 8 adjacent cubes and each face-centered atom is shared by 2 cubes, the total number of atoms per unit cell will be &amp;lt;math&amp;gt;8 \times  1/8 + 6 \times 1/2 = 4&amp;lt;/math&amp;gt;. In MD++, four atoms will be plotted per unti cell as shown in Fig.1(b), which is exactly what you see when you run &#039;&#039;&#039;al.script&#039;&#039;&#039;. Now imagine that the unit cell is replicated periodically in all 3 directions to fill the entire space. This would create an infinitely large crystal. We can create a larger crystal by modifying the &#039;&#039;&#039;latticesize&#039;&#039;&#039; variable, &#039;&#039;e.g.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 latticesize = [ 1 0 0 3&lt;br /&gt;
                 0 1 0 3&lt;br /&gt;
                 0 0 1 3]&lt;br /&gt;
&lt;br /&gt;
This creates a crystal with &amp;lt;math&amp;gt;3 \times 3 \times 3 = 27&amp;lt;/math&amp;gt; unit cells as shown in the Fig.1(c). The &#039;&#039;&#039;plot&#039;&#039;&#039; section of this script file will be explained in Manual 06.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Ex. 1&#039;&#039; Make a perfect crystal of copper (Cu) of 4 X 4 X 4 unit&lt;br /&gt;
cells. Cu has an FCC crystal structure and its equilibrium lattice constant&lt;br /&gt;
is &amp;lt;math&amp;gt;a = &amp;lt;/math&amp;gt;3.6030 &amp;amp;Aring;. You can use &#039;&#039;&#039;md_gpp&#039;&#039;&#039; as the executable file&amp;lt;ref&amp;gt;For MD simulations of Cu or Al, the fourth column of latticesize should not be smaller than 4 due to the relatively large cut-off radius in their potential models (&#039;&#039;&#039;eam&#039;&#039;&#039; or &#039;&#039;&#039;alglue&#039;&#039;&#039;).&amp;lt;/ref&amp;gt; if you only want to visualize the structure. Use &#039;&#039;&#039;eam_gpp&#039;&#039;&#039; if you would like to do some computation using the potential model. (For example, the &#039;&#039;&#039;eval&#039;&#039;&#039; command computes the total potential energy of the structure.) For the latter case, you need to insert the following two lines into your script file after &#039;&#039;&#039;dirname&#039;&#039;&#039;.&lt;br /&gt;
 &lt;br /&gt;
 potfile = ~/Codes/MD++/potentials/EAMDATA/eamdata.Cu&lt;br /&gt;
 eamgrid = 5000 readeam&lt;br /&gt;
&lt;br /&gt;
This reads the data needed by the EAM potential model of Cu.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Ex. 2&#039;&#039; Make a perfect crystal of argon (Ar) of 4 X 4 X 4 unit cells.&lt;br /&gt;
Ar is inert gas at room temperature but its solid state is face-centered-cubic crystal below its melting temperature &amp;lt;math&amp;gt;T_m = &amp;lt;/math&amp;gt;83.81K. Ar can be simulated&lt;br /&gt;
by the Leonard-Jones potential model or the executable &#039;&#039;&#039;lj_gpp&#039;&#039;&#039;. Modify &#039;&#039;&#039;scripts/ME346/ar.script&#039;&#039;&#039; and run it by typing&lt;br /&gt;
&lt;br /&gt;
 $ bin/lj_gpp scripts/ME346/ar.script&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Body-centered-cubic crystal ==&lt;br /&gt;
The BCC structure has an atom at every corner and body-center of each cube&lt;br /&gt;
(unit cell), as shown in Fig.2(a). Molybdenum (Mo) is one example of BCC materials.&lt;br /&gt;
Run &#039;&#039;&#039;mo.script&#039;&#039;&#039; file by typing&lt;br /&gt;
&lt;br /&gt;
 $ bin/fs_gpp scripts/ME346/mo.script&lt;br /&gt;
&lt;br /&gt;
Here is the content of the &#039;&#039;&#039;mo.script&#039;&#039;&#039; file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -*-shell-script-*-&lt;br /&gt;
setnolog&lt;br /&gt;
setoverwrite&lt;br /&gt;
dirname = runs/mo-example&lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------&lt;br /&gt;
# Read the potential file&lt;br /&gt;
potfile = ~/Codes/MD++/potentials/mo_pot readpot&lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------&lt;br /&gt;
# Create Perfect Lattice Configuration&lt;br /&gt;
crystalstructure = body-centered-cubic&lt;br /&gt;
latticeconst = 3.1472         # in Angstrom for Mo&lt;br /&gt;
latticesize = [ 1 0 0 3&lt;br /&gt;
                0 1 0 3&lt;br /&gt;
                0 0 1 3 ]&lt;br /&gt;
makecrystal finalcnfile = perf.cn writecn&lt;br /&gt;
&lt;br /&gt;
#---------------------------------------------&lt;br /&gt;
# Plot Configuration&lt;br /&gt;
atomradius = 1.0 bondradius = 0.3 bondlength = 0&lt;br /&gt;
atomcolor = orange highlightcolor = purple backgroundcolor = gray&lt;br /&gt;
bondcolor = red fixatomcolor = yellow&lt;br /&gt;
plotfreq = 10 win_width = 600 win_height = 600&lt;br /&gt;
rotateangles = [ 0 0 0 1 ]&lt;br /&gt;
openwin alloccolors rotate saverot eval plot&lt;br /&gt;
sleep quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Fig.2 Visualization of BCC structure&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
Image:Bcc.jpg|(a) Conventional image of BCC unit cell&lt;br /&gt;
Image:mo1X1X1.jpg|(b) BCC unit cell in MD++. One corner atom and one body-centered atom per cell&lt;br /&gt;
Image:mo3X3X3.jpg|(c) BCC of 3X3X3 cells&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Fig.2(c), the simulation box (&#039;&#039;i.e.&#039;&#039; supercell) is defined by three periodicity&lt;br /&gt;
vectors, &amp;lt;math&amp;gt;\mathbf{c}_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathbf{c}_2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{c}_3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{c}_1 = 3[100], \mathbf{c}_2 = 3[010], \mathbf{c}_3 = 3[001]. &amp;lt;/math&amp;gt;&lt;br /&gt;
The command &#039;&#039;&#039;makecrystal&#039;&#039;&#039; generates the perfect crystal of molybdenum based&lt;br /&gt;
on the given variables, &#039;&#039;&#039;crystalstructure&#039;&#039;&#039;&amp;lt;ref&amp;gt;Other possible values for crystalstructure are “simple-cubic”, “face-centered-cubic”,“L1_2”, “L1_0”, “diamond-cubic”, “zinc-blende”, etc. For a complete list, please read&lt;br /&gt;
&#039;&#039;&#039;src/lattice.h&#039;&#039;&#039;.&amp;lt;/ref&amp;gt; , &#039;&#039;&#039;latticeconst&#039;&#039;&#039;, and &#039;&#039;&#039;latticesize&#039;&#039;&#039;. &lt;br /&gt;
The configuration will be saved as &#039;&#039;&#039;perf.cn&#039;&#039;&#039; in the directory of &#039;&#039;&#039;runs/mo-example&#039;&#039;&#039; by the command &#039;&#039;&#039;writecn&#039;&#039;&#039;. The configuration file contains the number of atoms and the position of all the atoms in terms of scaled coordinates followed by a 3 X 3 matrix, &amp;lt;math&amp;gt;\mathbf{H}&amp;lt;/math&amp;gt;, whose columns are the three periodicity vectors, &amp;lt;math&amp;gt;\mathbf{c}_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathbf{c}_2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{c}_3&amp;lt;/math&amp;gt;. The real coordinates of an atom, &amp;lt;math&amp;gt;\mathbf{r} = (x, y, z)^T&amp;lt;/math&amp;gt; is related to the scaled coordinates &amp;lt;math&amp;gt;\mathbf{s} = (s_x, s_y, s_z)^T&amp;lt;/math&amp;gt; through matrix multiplication&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;lt;math&amp;gt; \mathbf{r} = a\mathbf{H}\cdot \mathbf{s} &amp;lt;/math&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is the lattice constant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Ex. 3&#039;&#039; Make a perfect crystal of tantalum (Ta) with repeat vectors &amp;lt;math&amp;gt;\mathbf{c}_1 = 3[1 1 0], \mathbf{c}_2 = 3[1 \bar{1} 0], \mathbf{c}_3 = 4[0 0 1]&amp;lt;/math&amp;gt;. &lt;br /&gt;
Ta has a BCC lattice structure with an equilibrium lattice constant &amp;lt;math&amp;gt;a =&amp;lt;/math&amp;gt; 3.3058 &amp;amp;Aring;. &lt;br /&gt;
Read the FS potential file for Ta by inserting the following line in the script.&lt;br /&gt;
&lt;br /&gt;
 potfile = ~/Codes/MD++/potentials/ta_pot readpot&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Diamond-cubic crystal ==&lt;br /&gt;
Silicon (Si) has diamond-cubic structure, which can be regarded as two FCC structures oﬀset by [1 1 1]/4. You can run the example script &#039;&#039;&#039;si.script&#039;&#039;&#039; by typing&lt;br /&gt;
&lt;br /&gt;
  $ bin/sw_gpp scripts/ME346/si.script&lt;br /&gt;
&lt;br /&gt;
where the executable &#039;&#039;&#039;sw_gpp&#039;&#039;&#039; contains the SW potential model for Si. The&lt;br /&gt;
visualization window will look like Fig.3(b). Here is the content of the &#039;&#039;&#039;si.script&#039;&#039;&#039; ﬁle.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -*-shell-script-*-&lt;br /&gt;
setnolog&lt;br /&gt;
setoverwrite&lt;br /&gt;
dirname = runs/si-example&lt;br /&gt;
&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
#Create Perfect Lattice Configuration&lt;br /&gt;
#&lt;br /&gt;
crystalstructure = diamond-cubic&lt;br /&gt;
latticeconst = 5.43095            # (in Angstrom) for Si&lt;br /&gt;
latticesize = [ 1 0 0 2&lt;br /&gt;
                0 1 0 2&lt;br /&gt;
                0 0 1 2 ]&lt;br /&gt;
makecrystal writecn&lt;br /&gt;
&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
#Plot Configuration&lt;br /&gt;
#&lt;br /&gt;
atomradius = 0.67 bondradius = 0.3 bondlength = 2.8285 &lt;br /&gt;
atomcolor = orange highlightcolor = purple&lt;br /&gt;
bondcolor = red backgroundcolor = gray70&lt;br /&gt;
plotfreq = 10 rotateangles = [ 0 0 0 1.25 ]&lt;br /&gt;
openwin alloccolors rotate saverot eval plot&lt;br /&gt;
sleep quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Fig.3 Visualization of DC structure&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
Image:Dc_unitcell.jpg|(a) DC unit cell in MD++. 8 atoms per cell&lt;br /&gt;
Image:Dc_2x2x2cell.jpg|(c) DC of 2X2X2 cells&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Zinc Sulphide (ZnS)  ==&lt;br /&gt;
ZnS is a two component material and has two lattice structures (zinc-blende and Wurtzite). Through the following example script, we will learn how to use MD++ to generate multi-component material in zinc-blende strucutre or Wurtzite structure.&lt;br /&gt;
&lt;br /&gt;
  $ bin/md_gpp scripts/Examples/example06a-ZnS.script&lt;br /&gt;
&lt;br /&gt;
Here is the content of the &#039;&#039;&#039;example06a-ZnS.script&#039;&#039;&#039; ﬁle, which will creat a Zinc-blende structure of ZnS.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -*-shell-script-*-&lt;br /&gt;
# Zincblende structure of ZnS&lt;br /&gt;
setnolog&lt;br /&gt;
setoverwrite&lt;br /&gt;
dirname = runs/ZnS-example&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
#Create Perfect Lattice Configuration&lt;br /&gt;
#&lt;br /&gt;
latticestructure = zinc-blende&lt;br /&gt;
element0 = Zn element1 = S atommass = [65.409 32.065] # g/mol&lt;br /&gt;
latticeconst = 5.42           #(A) &lt;br /&gt;
latticesize = [ 1  0  0  2    #(x)&lt;br /&gt;
                0  1  0  2    #(y)&lt;br /&gt;
                0  0  1  2  ] #(z)&lt;br /&gt;
makecrystal finalcnfile = perf.cn writecn&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
#Plot Configuration&lt;br /&gt;
#&lt;br /&gt;
atomradius = [1.3 1] #bondradius = 0.3 bondlength = 2.8285&lt;br /&gt;
atomcolor0 = &amp;quot;light grey&amp;quot; atomcolor1 = yellow&lt;br /&gt;
highlightcolor = purple  bondcolor = red backgroundcolor = gray&lt;br /&gt;
fixatomcolor = yellow&lt;br /&gt;
plot_atom_info = 1&lt;br /&gt;
plotfreq = 10&lt;br /&gt;
rotateangles = [ 0 0 0 1.2 ]&lt;br /&gt;
openwin alloccolors rotate saverot refreshnnlist eval plot&lt;br /&gt;
sleep quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Similarly, you can create a Wurtzite structure by the following script, &#039;&#039;&#039;example06b-ZnS.script&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -*-shell-script-*-&lt;br /&gt;
# Wurtzite structure of ZnS&lt;br /&gt;
# (screw dislocation motion under fixed boundary)&lt;br /&gt;
setnolog&lt;br /&gt;
setoverwrite&lt;br /&gt;
dirname = runs/ZnS-example&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
#Create Perfect Lattice Configuration&lt;br /&gt;
#&lt;br /&gt;
latticestructure = wurtzite&lt;br /&gt;
element0 = Zn element1 = S atommass = [65.409 32.065] # g/mol&lt;br /&gt;
latticeconst = [3.82 0 6.24]  #(in Angstrom)&lt;br /&gt;
latticesize = [ 1  0  0  2    #(x)&lt;br /&gt;
                0  1  0  2    #(y)&lt;br /&gt;
                0  0  1  2  ] #(z)&lt;br /&gt;
makecrystal finalcnfile = perf.cn writecn&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
#Plot Configuration&lt;br /&gt;
#&lt;br /&gt;
atomradius = [0.8 1] bondradius = 0.3 bondlength = 3.25&lt;br /&gt;
atomcolor0 = &amp;quot;light grey&amp;quot; atomcolor1 = yellow&lt;br /&gt;
highlightcolor = purple  bondcolor = red backgroundcolor = gray&lt;br /&gt;
fixatomcolor = yellow&lt;br /&gt;
plot_atom_info = 1&lt;br /&gt;
plotfreq = 10&lt;br /&gt;
rotateangles = [ 0 0 0 1.2 ]&lt;br /&gt;
openwin alloccolors rotate saverot refreshnnlist eval plot&lt;br /&gt;
sleep quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Fig.4 ZnS structure&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
Image:ZnS_zincblende.gif|(a) Zinc-blende structure of ZnS&lt;br /&gt;
Image:ZnS_wurtzite.gif|(c) Wurtzite structure of ZnS&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5046</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5046"/>
		<updated>2011-01-13T02:16:10Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to set up data-file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. &lt;br /&gt;
&lt;br /&gt;
While reading this document, don&#039;t forget to check out [[paradis.stanford.edu]] for a complete and searchable table of parameters in ParaDiS code (some parameter names are not up-to-date). Detailed descriptions can be found in the official documentation ParaDiSInfo.txt.&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from &#039;&#039;&#039;Matlab&#039;&#039;&#039; if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
&lt;br /&gt;
The structure of the ctrl file is explained by parts. &lt;br /&gt;
&lt;br /&gt;
1 First is the basic setup information for the simulation,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Directory to write output files&lt;br /&gt;
dirname = &amp;quot;outputs/filename&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Input files for PBC image stresses&lt;br /&gt;
Rijmfile = &amp;quot;inputs/Rijm.cube.out&amp;quot;&lt;br /&gt;
RijmPBCfile = &amp;quot;inputs/RijmPBC.cube.out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Total simulation steps&lt;br /&gt;
maxstep = 100&lt;br /&gt;
&lt;br /&gt;
#The total number of CPUs should be numXdoms * numYdoms * numZdoms&lt;br /&gt;
numXdoms = 1&lt;br /&gt;
numYdoms = 1&lt;br /&gt;
numZdoms = 1&lt;br /&gt;
&lt;br /&gt;
#Cells for dislocation grouping (cannot be less than 3)&lt;br /&gt;
numXcells = 3&lt;br /&gt;
numYcells = 3&lt;br /&gt;
numZcells = 3&lt;br /&gt;
&lt;br /&gt;
#Fast multipole method specs.&lt;br /&gt;
fmEnabled = 0  #disable fast multipole&lt;br /&gt;
fmMPOrder = 2&lt;br /&gt;
fmTaylorOrder = 4&lt;br /&gt;
fmCorrectionTbl = &amp;quot;Inputs/fm-ctab.m2.t4.dat&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can set the directory name where you want to store the output. You can also set the total number of simulation steps &amp;lt;tt&amp;gt;maxstep&amp;lt;/tt&amp;gt;. As for numXdoms, numYdoms and numZdoms, note that the product should be the total number of CPUs. This setting is crucial for parallel jobs. When all of them as set as 2, the total number of CUPs is 8. This should be consistant with the pbs file setting, which will be discussed in the end of this manual. If you want to enable fast multipole method (FMM), you need to set &amp;lt;tt&amp;gt;fmEnabled = 1&amp;lt;/tt&amp;gt; and assign the path for the corresponding table.&lt;br /&gt;
&lt;br /&gt;
2 Next is some settings on geometry, material parameters etc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
timestepIntegrator = &amp;quot;trapezoid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Boundary conditions&lt;br /&gt;
xBoundType = 0&lt;br /&gt;
yBoundType = 0&lt;br /&gt;
zBoundType = 0&lt;br /&gt;
&lt;br /&gt;
#Fundamental length unit&lt;br /&gt;
burgMag = 2.556120e-010&lt;br /&gt;
&lt;br /&gt;
#Elastic constants&lt;br /&gt;
shearModulus = 40000000000.000000&lt;br /&gt;
pois = 0.369000&lt;br /&gt;
&lt;br /&gt;
#Mobility law function&lt;br /&gt;
mobilityLaw = &amp;quot;FCC_0&amp;quot;&lt;br /&gt;
enforceGlidePlanes = 1&lt;br /&gt;
enableCrossSlip = -1&lt;br /&gt;
MobScrew = 1.000000e+005&lt;br /&gt;
MobEdge  = 1.000000e+005&lt;br /&gt;
MobClimb = 1.000000e-002&lt;br /&gt;
&lt;br /&gt;
#Discretization&lt;br /&gt;
maxSeg = 200.000000&lt;br /&gt;
minSeg = 10.000000&lt;br /&gt;
&lt;br /&gt;
#Maximum nodal displacement at each time step&lt;br /&gt;
rmax = 100&lt;br /&gt;
&lt;br /&gt;
#Error tolerance in determining time step&lt;br /&gt;
rTol = 0.721688&lt;br /&gt;
&lt;br /&gt;
#Maximum time step&lt;br /&gt;
maxDT = 1&lt;br /&gt;
&lt;br /&gt;
#Core cut-off radius&lt;br /&gt;
rc = 2.886751&lt;br /&gt;
&lt;br /&gt;
#Core energy&lt;br /&gt;
Ecore = 0.000000e+000&lt;br /&gt;
&lt;br /&gt;
#Turn on elastic interaction&lt;br /&gt;
elasticinteraction = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Variable &amp;lt;tt&amp;gt;xBoundType&amp;lt;/tt&amp;gt; defines the type of problem space boundaries in the X dimension. Valid values are 0, 1 and 2 respectively for periodic, free surface, and reflecting.&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt; is the unit of length for all length variables in ParaDiS simulation, such as nodal positions and Burgers vectors (in data file, those data should be expressed in terms of the same &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The setting for mobility law is important, which should be consistent with the system you simulate. Cross-slip is enabled only when &amp;lt;tt&amp;gt;enableCrossSlip = 1&amp;lt;/tt&amp;gt;. You need to adjust some of the geometric parameters to fit your problem.&lt;br /&gt;
&lt;br /&gt;
3 Third is the loading conditions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Applied stress in Pa (xx,yy,zz,yz,zx,xy)&lt;br /&gt;
appliedStress = [ 0 0 0 0 0 0 ]&lt;br /&gt;
&lt;br /&gt;
#Constant Strain rate&lt;br /&gt;
loadType = 1&lt;br /&gt;
edotdir = [ 0.0 0.0 1.0 ]&lt;br /&gt;
eRate = 100.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;loadType&amp;lt;/tt&amp;gt; defines the type of load on the system. Usually we set it as 0 (creep, i.e. constant external stress) or 1 (constant strain rate). For detailed explanations for value 2, 3 and 4, please refer to the variable table. When &amp;lt;tt&amp;gt;loadType = 0&amp;lt;/tt&amp;gt;, you need to set  &amp;lt;tt&amp;gt;appliedStress&amp;lt;/tt&amp;gt;(zero vector for relaxation). When &amp;lt;tt&amp;gt;loadType = 1&amp;lt;/tt&amp;gt;, you need to define strain rate direction &amp;lt;tt&amp;gt;edotdir&amp;lt;/tt&amp;gt; and strain rate &amp;lt;tt&amp;gt;eRate&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4 And the last part is settings on saving,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save files&lt;br /&gt;
savecn = 1&lt;br /&gt;
savecnfreq = 100&lt;br /&gt;
&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1&lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
#winDefaultsFile = &amp;quot;inputs/paradis.xdefaults&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By setting &amp;lt;tt&amp;gt;savencn = 1&amp;lt;/tt&amp;gt;, saving is enabled at a frequency of &amp;lt;tt&amp;gt;savecnfreq&amp;lt;/tt&amp;gt;. Lines relevant to saving properties and visulization are discussed in later part of this manual.&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5045</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5045"/>
		<updated>2011-01-13T02:15:50Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. &lt;br /&gt;
&lt;br /&gt;
While reading this document, don&#039;t forget to check out [[paradis.stanford.edu]] for a complete and searchable table of parameters in ParaDiS code (some parameter names are not up-to-date). Detailed descriptions can be found in the official documentation ParaDiSInfo.txt.&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
&lt;br /&gt;
The structure of the ctrl file is explained by parts. &lt;br /&gt;
&lt;br /&gt;
1 First is the basic setup information for the simulation,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Directory to write output files&lt;br /&gt;
dirname = &amp;quot;outputs/filename&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Input files for PBC image stresses&lt;br /&gt;
Rijmfile = &amp;quot;inputs/Rijm.cube.out&amp;quot;&lt;br /&gt;
RijmPBCfile = &amp;quot;inputs/RijmPBC.cube.out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Total simulation steps&lt;br /&gt;
maxstep = 100&lt;br /&gt;
&lt;br /&gt;
#The total number of CPUs should be numXdoms * numYdoms * numZdoms&lt;br /&gt;
numXdoms = 1&lt;br /&gt;
numYdoms = 1&lt;br /&gt;
numZdoms = 1&lt;br /&gt;
&lt;br /&gt;
#Cells for dislocation grouping (cannot be less than 3)&lt;br /&gt;
numXcells = 3&lt;br /&gt;
numYcells = 3&lt;br /&gt;
numZcells = 3&lt;br /&gt;
&lt;br /&gt;
#Fast multipole method specs.&lt;br /&gt;
fmEnabled = 0  #disable fast multipole&lt;br /&gt;
fmMPOrder = 2&lt;br /&gt;
fmTaylorOrder = 4&lt;br /&gt;
fmCorrectionTbl = &amp;quot;Inputs/fm-ctab.m2.t4.dat&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can set the directory name where you want to store the output. You can also set the total number of simulation steps &amp;lt;tt&amp;gt;maxstep&amp;lt;/tt&amp;gt;. As for numXdoms, numYdoms and numZdoms, note that the product should be the total number of CPUs. This setting is crucial for parallel jobs. When all of them as set as 2, the total number of CUPs is 8. This should be consistant with the pbs file setting, which will be discussed in the end of this manual. If you want to enable fast multipole method (FMM), you need to set &amp;lt;tt&amp;gt;fmEnabled = 1&amp;lt;/tt&amp;gt; and assign the path for the corresponding table.&lt;br /&gt;
&lt;br /&gt;
2 Next is some settings on geometry, material parameters etc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
timestepIntegrator = &amp;quot;trapezoid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Boundary conditions&lt;br /&gt;
xBoundType = 0&lt;br /&gt;
yBoundType = 0&lt;br /&gt;
zBoundType = 0&lt;br /&gt;
&lt;br /&gt;
#Fundamental length unit&lt;br /&gt;
burgMag = 2.556120e-010&lt;br /&gt;
&lt;br /&gt;
#Elastic constants&lt;br /&gt;
shearModulus = 40000000000.000000&lt;br /&gt;
pois = 0.369000&lt;br /&gt;
&lt;br /&gt;
#Mobility law function&lt;br /&gt;
mobilityLaw = &amp;quot;FCC_0&amp;quot;&lt;br /&gt;
enforceGlidePlanes = 1&lt;br /&gt;
enableCrossSlip = -1&lt;br /&gt;
MobScrew = 1.000000e+005&lt;br /&gt;
MobEdge  = 1.000000e+005&lt;br /&gt;
MobClimb = 1.000000e-002&lt;br /&gt;
&lt;br /&gt;
#Discretization&lt;br /&gt;
maxSeg = 200.000000&lt;br /&gt;
minSeg = 10.000000&lt;br /&gt;
&lt;br /&gt;
#Maximum nodal displacement at each time step&lt;br /&gt;
rmax = 100&lt;br /&gt;
&lt;br /&gt;
#Error tolerance in determining time step&lt;br /&gt;
rTol = 0.721688&lt;br /&gt;
&lt;br /&gt;
#Maximum time step&lt;br /&gt;
maxDT = 1&lt;br /&gt;
&lt;br /&gt;
#Core cut-off radius&lt;br /&gt;
rc = 2.886751&lt;br /&gt;
&lt;br /&gt;
#Core energy&lt;br /&gt;
Ecore = 0.000000e+000&lt;br /&gt;
&lt;br /&gt;
#Turn on elastic interaction&lt;br /&gt;
elasticinteraction = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Variable &amp;lt;tt&amp;gt;xBoundType&amp;lt;/tt&amp;gt; defines the type of problem space boundaries in the X dimension. Valid values are 0, 1 and 2 respectively for periodic, free surface, and reflecting.&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt; is the unit of length for all length variables in ParaDiS simulation, such as nodal positions and Burgers vectors (in data file, those data should be expressed in terms of the same &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The setting for mobility law is important, which should be consistent with the system you simulate. Cross-slip is enabled only when &amp;lt;tt&amp;gt;enableCrossSlip = 1&amp;lt;/tt&amp;gt;. You need to adjust some of the geometric parameters to fit your problem.&lt;br /&gt;
&lt;br /&gt;
3 Third is the loading conditions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Applied stress in Pa (xx,yy,zz,yz,zx,xy)&lt;br /&gt;
appliedStress = [ 0 0 0 0 0 0 ]&lt;br /&gt;
&lt;br /&gt;
#Constant Strain rate&lt;br /&gt;
loadType = 1&lt;br /&gt;
edotdir = [ 0.0 0.0 1.0 ]&lt;br /&gt;
eRate = 100.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;loadType&amp;lt;/tt&amp;gt; defines the type of load on the system. Usually we set it as 0 (creep, i.e. constant external stress) or 1 (constant strain rate). For detailed explanations for value 2, 3 and 4, please refer to the variable table. When &amp;lt;tt&amp;gt;loadType = 0&amp;lt;/tt&amp;gt;, you need to set  &amp;lt;tt&amp;gt;appliedStress&amp;lt;/tt&amp;gt;(zero vector for relaxation). When &amp;lt;tt&amp;gt;loadType = 1&amp;lt;/tt&amp;gt;, you need to define strain rate direction &amp;lt;tt&amp;gt;edotdir&amp;lt;/tt&amp;gt; and strain rate &amp;lt;tt&amp;gt;eRate&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4 And the last part is settings on saving,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save files&lt;br /&gt;
savecn = 1&lt;br /&gt;
savecnfreq = 100&lt;br /&gt;
&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1&lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
#winDefaultsFile = &amp;quot;inputs/paradis.xdefaults&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By setting &amp;lt;tt&amp;gt;savencn = 1&amp;lt;/tt&amp;gt;, saving is enabled at a frequency of &amp;lt;tt&amp;gt;savecnfreq&amp;lt;/tt&amp;gt;. Lines relevant to saving properties and visulization are discussed in later part of this manual.&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5044</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5044"/>
		<updated>2011-01-13T02:14:18Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to set up ctrl-file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. &lt;br /&gt;
&lt;br /&gt;
While reading this document, don&#039;t forget to check out [[paradis.stanford.edu]] for a complete and searchable table of parameters in ParaDiS code (some parameter names are not up-to-date). Detailed descriptions can be found in the official documentation ParaDiSInfo.txt.&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
&lt;br /&gt;
The structure of the ctrl file is explained by parts. &lt;br /&gt;
&lt;br /&gt;
1 First is the basic setup information for the simulation,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Directory to write output files&lt;br /&gt;
dirname = &amp;quot;outputs/filename&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Input files for PBC image stresses&lt;br /&gt;
Rijmfile = &amp;quot;inputs/Rijm.cube.out&amp;quot;&lt;br /&gt;
RijmPBCfile = &amp;quot;inputs/RijmPBC.cube.out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Total simulation steps&lt;br /&gt;
maxstep = 100&lt;br /&gt;
&lt;br /&gt;
#The total number of CPUs should be numXdoms * numYdoms * numZdoms&lt;br /&gt;
numXdoms = 1&lt;br /&gt;
numYdoms = 1&lt;br /&gt;
numZdoms = 1&lt;br /&gt;
&lt;br /&gt;
#Cells for dislocation grouping (cannot be less than 3)&lt;br /&gt;
numXcells = 3&lt;br /&gt;
numYcells = 3&lt;br /&gt;
numZcells = 3&lt;br /&gt;
&lt;br /&gt;
#Fast multipole method specs.&lt;br /&gt;
fmEnabled = 0  #disable fast multipole&lt;br /&gt;
fmMPOrder = 2&lt;br /&gt;
fmTaylorOrder = 4&lt;br /&gt;
fmCorrectionTbl = &amp;quot;Inputs/fm-ctab.m2.t4.dat&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can set the directory name where you want to store the output. You can also set the total number of simulation steps &amp;lt;tt&amp;gt;maxstep&amp;lt;/tt&amp;gt;. As for numXdoms, numYdoms and numZdoms, note that the product should be the total number of CPUs. This setting is crucial for parallel jobs. When all of them as set as 2, the total number of CUPs is 8. This should be consistant with the pbs file setting, which will be discussed in the end of this manual. If you want to enable fast multipole method (FMM), you need to set &amp;lt;tt&amp;gt;fmEnabled = 1&amp;lt;/tt&amp;gt; and assign the path for the corresponding table.&lt;br /&gt;
&lt;br /&gt;
2 Next is some settings on geometry, material parameters etc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
timestepIntegrator = &amp;quot;trapezoid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Boundary conditions&lt;br /&gt;
xBoundType = 0&lt;br /&gt;
yBoundType = 0&lt;br /&gt;
zBoundType = 0&lt;br /&gt;
&lt;br /&gt;
#Fundamental length unit&lt;br /&gt;
burgMag = 2.556120e-010&lt;br /&gt;
&lt;br /&gt;
#Elastic constants&lt;br /&gt;
shearModulus = 40000000000.000000&lt;br /&gt;
pois = 0.369000&lt;br /&gt;
&lt;br /&gt;
#Mobility law function&lt;br /&gt;
mobilityLaw = &amp;quot;FCC_0&amp;quot;&lt;br /&gt;
enforceGlidePlanes = 1&lt;br /&gt;
enableCrossSlip = -1&lt;br /&gt;
MobScrew = 1.000000e+005&lt;br /&gt;
MobEdge  = 1.000000e+005&lt;br /&gt;
MobClimb = 1.000000e-002&lt;br /&gt;
&lt;br /&gt;
#Discretization&lt;br /&gt;
maxSeg = 200.000000&lt;br /&gt;
minSeg = 10.000000&lt;br /&gt;
&lt;br /&gt;
#Maximum nodal displacement at each time step&lt;br /&gt;
rmax = 100&lt;br /&gt;
&lt;br /&gt;
#Error tolerance in determining time step&lt;br /&gt;
rTol = 0.721688&lt;br /&gt;
&lt;br /&gt;
#Maximum time step&lt;br /&gt;
maxDT = 1&lt;br /&gt;
&lt;br /&gt;
#Core cut-off radius&lt;br /&gt;
rc = 2.886751&lt;br /&gt;
&lt;br /&gt;
#Core energy&lt;br /&gt;
Ecore = 0.000000e+000&lt;br /&gt;
&lt;br /&gt;
#Turn on elastic interaction&lt;br /&gt;
elasticinteraction = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Variable &amp;lt;tt&amp;gt;xBoundType&amp;lt;/tt&amp;gt; defines the type of problem space boundaries in the X dimension. Valid values are 0, 1 and 2 respectively for periodic, free surface, and reflecting.&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt; is the unit of length for all length variables in ParaDiS simulation, such as nodal positions and Burgers vectors (in data file, those data should be expressed in terms of the same &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The setting for mobility law is important, which should be consistent with the system you simulate. Cross-slip is enabled only when &amp;lt;tt&amp;gt;enableCrossSlip = 1&amp;lt;/tt&amp;gt;. You need to adjust some of the geometric parameters to fit your problem.&lt;br /&gt;
&lt;br /&gt;
3 Third is the loading conditions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Applied stress in Pa (xx,yy,zz,yz,zx,xy)&lt;br /&gt;
appliedStress = [ 0 0 0 0 0 0 ]&lt;br /&gt;
&lt;br /&gt;
#Constant Strain rate&lt;br /&gt;
loadType = 1&lt;br /&gt;
edotdir = [ 0.0 0.0 1.0 ]&lt;br /&gt;
eRate = 100.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;loadType&amp;lt;/tt&amp;gt; defines the type of load on the system. Usually we set it as 0 (creep, i.e. constant external stress) or 1 (constant strain rate). For detailed explanations for value 2, 3 and 4, please refer to the variable table. When &amp;lt;tt&amp;gt;loadType = 0&amp;lt;/tt&amp;gt;, you need to set  &amp;lt;tt&amp;gt;appliedStress&amp;lt;/tt&amp;gt;(zero vector for relaxation). When &amp;lt;tt&amp;gt;loadType = 1&amp;lt;/tt&amp;gt;, you need to define strain rate direction &amp;lt;tt&amp;gt;edotdir&amp;lt;/tt&amp;gt; and strain rate &amp;lt;tt&amp;gt;eRate&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4 And the last part is settings on saving,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save files&lt;br /&gt;
savecn = 1&lt;br /&gt;
savecnfreq = 100&lt;br /&gt;
&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1&lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
#winDefaultsFile = &amp;quot;inputs/paradis.xdefaults&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By setting &amp;lt;tt&amp;gt;savencn = 1&amp;lt;/tt&amp;gt;, saving is enabled at a frequency of &amp;lt;tt&amp;gt;savecnfreq&amp;lt;/tt&amp;gt;. Lines relevant to saving properties and visulization are discussed in later part of this manual.&lt;br /&gt;
&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5043</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5043"/>
		<updated>2011-01-13T02:12:54Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to set up ctrl-file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. &lt;br /&gt;
&lt;br /&gt;
While reading this document, don&#039;t forget to check out [[paradis.stanford.edu]] for a complete and searchable table of parameters in ParaDiS code (some parameter names are not up-to-date). Detailed descriptions can be found in the official documentation ParaDiSInfo.txt.&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
&lt;br /&gt;
The structure of the ctrl file is explained by parts. &lt;br /&gt;
&lt;br /&gt;
1 First is the basic setup information for the simulation,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Directory to write output files&lt;br /&gt;
dirname = &amp;quot;outputs/filename&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Input files for PBC image stresses&lt;br /&gt;
Rijmfile = &amp;quot;inputs/Rijm.cube.out&amp;quot;&lt;br /&gt;
RijmPBCfile = &amp;quot;inputs/RijmPBC.cube.out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Total simulation steps&lt;br /&gt;
maxstep = 100&lt;br /&gt;
&lt;br /&gt;
#The total number of CPUs should be numXdoms * numYdoms * numZdoms&lt;br /&gt;
numXdoms = 1&lt;br /&gt;
numYdoms = 1&lt;br /&gt;
numZdoms = 1&lt;br /&gt;
&lt;br /&gt;
#Cells for dislocation grouping (cannot be less than 3)&lt;br /&gt;
numXcells = 3&lt;br /&gt;
numYcells = 3&lt;br /&gt;
numZcells = 3&lt;br /&gt;
&lt;br /&gt;
#Fast multipole method specs.&lt;br /&gt;
fmEnabled = 0  #disable fast multipole&lt;br /&gt;
fmMPOrder = 2&lt;br /&gt;
fmTaylorOrder = 4&lt;br /&gt;
fmCorrectionTbl = &amp;quot;Inputs/fm-ctab.m2.t4.dat&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can set the directory name where you want to store the output. You can also set the total number of simulation steps &amp;lt;tt&amp;gt;maxstep&amp;lt;/tt&amp;gt;. As for numXdoms, numYdoms and numZdoms, note that the product should be the total number of CPUs. This setting is crucial for parallel jobs. When all of them as set as 2, the total number of CUPs is 8. This should be consistant with the pbs file setting, which will be discussed in the end of this manual. If you want to enable fast multipole method (FMM), you need to set &amp;lt;tt&amp;gt;fmEnabled = 1&amp;lt;/tt&amp;gt; and assign the path for the corresponding table.&lt;br /&gt;
&lt;br /&gt;
2 Next is some settings on geometry, material parameters etc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
timestepIntegrator = &amp;quot;trapezoid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Boundary conditions&lt;br /&gt;
xBoundType = 0&lt;br /&gt;
yBoundType = 0&lt;br /&gt;
zBoundType = 0&lt;br /&gt;
&lt;br /&gt;
#Fundamental length unit&lt;br /&gt;
burgMag = 2.556120e-010&lt;br /&gt;
&lt;br /&gt;
#Elastic constants&lt;br /&gt;
shearModulus = 40000000000.000000&lt;br /&gt;
pois = 0.369000&lt;br /&gt;
&lt;br /&gt;
#Mobility law function&lt;br /&gt;
mobilityLaw = &amp;quot;FCC_0&amp;quot;&lt;br /&gt;
enforceGlidePlanes = 1&lt;br /&gt;
enableCrossSlip = -1&lt;br /&gt;
MobScrew = 1.000000e+005&lt;br /&gt;
MobEdge  = 1.000000e+005&lt;br /&gt;
MobClimb = 1.000000e-002&lt;br /&gt;
&lt;br /&gt;
#Discretization&lt;br /&gt;
maxSeg = 200.000000&lt;br /&gt;
minSeg = 10.000000&lt;br /&gt;
&lt;br /&gt;
#Maximum nodal displacement at each time step&lt;br /&gt;
rmax = 100&lt;br /&gt;
&lt;br /&gt;
#Error tolerance in determining time step&lt;br /&gt;
rTol = 0.721688&lt;br /&gt;
&lt;br /&gt;
#Maximum time step&lt;br /&gt;
maxDT = 1&lt;br /&gt;
&lt;br /&gt;
#Core cut-off radius&lt;br /&gt;
rc = 2.886751&lt;br /&gt;
&lt;br /&gt;
#Core energy&lt;br /&gt;
Ecore = 0.000000e+000&lt;br /&gt;
&lt;br /&gt;
#Turn on elastic interaction&lt;br /&gt;
elasticinteraction = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Variable &amp;lt;tt&amp;gt;xBoundType&amp;lt;/tt&amp;gt; defines the type of problem space boundaries in the X dimension. Valid values are 0, 1 and 2 respectively for periodic, free surface, and reflecting.&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt; is the unit of length for all length variables in ParaDiS simulation, such as nodal positions and Burgers vectors (in data file, those data should be expressed in terms of the same &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The setting for mobility law is important, which should be consistent with the system you simulate. Cross-slip is enabled only when &amp;lt;tt&amp;gt;enableCrossSlip = 1&amp;lt;/tt&amp;gt;. You need to adjust some of the geometric parameters to fit your problem.&lt;br /&gt;
&lt;br /&gt;
3 Third is the loading conditions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Applied stress in Pa (xx,yy,zz,yz,zx,xy)&lt;br /&gt;
appliedStress = [ 0 0 0 0 0 0 ]&lt;br /&gt;
&lt;br /&gt;
#Constant Strain rate&lt;br /&gt;
loadType = 1&lt;br /&gt;
edotdir = [ 0.0 0.0 1.0 ]&lt;br /&gt;
eRate = 100.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;loadType&amp;lt;/tt&amp;gt; defines the type of load on the system. Usually we set it as 0 (creep, i.e. constant external stress) or 1 (constant strain rate). For detailed explanations for value 2, 3 and 4, please refer to the variable table. When &amp;lt;tt&amp;gt;loadType = 0&amp;lt;/tt&amp;gt;, you need to set  &amp;lt;tt&amp;gt;appliedStress&amp;lt;/tt&amp;gt;(zero vector for relaxation). When &amp;lt;tt&amp;gt;loadType = 1&amp;lt;/tt&amp;gt;, you need to define strain rate direction &amp;lt;tt&amp;gt;edotdir&amp;lt;/tt&amp;gt; and strain rate &amp;lt;tt&amp;gt;eRate&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4 And the last part is settings on saving,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save files&lt;br /&gt;
savecn = 1&lt;br /&gt;
savecnfreq = 100&lt;br /&gt;
&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1&lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
#winDefaultsFile = &amp;quot;inputs/paradis.xdefaults&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lines relevant to saving properties and visulization are discussed in later part of this manual.&lt;br /&gt;
&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5042</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5042"/>
		<updated>2011-01-13T02:00:34Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to set up ctrl-file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. &lt;br /&gt;
&lt;br /&gt;
While reading this document, don&#039;t forget to check out [[paradis.stanford.edu]] for a complete and searchable table of parameters in ParaDiS code (some parameter names are not up-to-date). Detailed descriptions can be found in the official documentation ParaDiSInfo.txt.&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
&lt;br /&gt;
The structure of the ctrl file is explained by parts. &lt;br /&gt;
&lt;br /&gt;
1 First is the basic setup information for the simulation,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Directory to write output files&lt;br /&gt;
dirname = &amp;quot;outputs/filename&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Input files for PBC image stresses&lt;br /&gt;
Rijmfile = &amp;quot;inputs/Rijm.cube.out&amp;quot;&lt;br /&gt;
RijmPBCfile = &amp;quot;inputs/RijmPBC.cube.out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Total simulation steps&lt;br /&gt;
maxstep = 100&lt;br /&gt;
&lt;br /&gt;
#The total number of CPUs should be numXdoms * numYdoms * numZdoms&lt;br /&gt;
numXdoms = 1&lt;br /&gt;
numYdoms = 1&lt;br /&gt;
numZdoms = 1&lt;br /&gt;
&lt;br /&gt;
#Cells for dislocation grouping (cannot be less than 3)&lt;br /&gt;
numXcells = 3&lt;br /&gt;
numYcells = 3&lt;br /&gt;
numZcells = 3&lt;br /&gt;
&lt;br /&gt;
#Fast multipole method specs.&lt;br /&gt;
fmEnabled = 0  #disable fast multipole&lt;br /&gt;
fmMPOrder = 2&lt;br /&gt;
fmTaylorOrder = 4&lt;br /&gt;
fmCorrectionTbl = &amp;quot;Inputs/fm-ctab.m2.t4.dat&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can set the directory name where you want to store the output. You can also set the total number of simulation steps &amp;lt;tt&amp;gt;maxstep&amp;lt;/tt&amp;gt;. As for numXdoms, numYdoms and numZdoms, note that the product should be the total number of CPUs. This setting is crucial for parallel jobs. When all of them as set as 2, the total number of CUPs is 8. This should be consistant with the pbs file setting, which will be discussed in the end of this manual. If you want to enable fast multipole method (FMM), you need to set &amp;lt;tt&amp;gt;fmEnabled = 1&amp;lt;/tt&amp;gt; and assign the path for the corresponding table.&lt;br /&gt;
&lt;br /&gt;
2 Next is some settings on geometry, material parameters etc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
timestepIntegrator = &amp;quot;trapezoid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Boundary conditions&lt;br /&gt;
xBoundType = 0&lt;br /&gt;
yBoundType = 0&lt;br /&gt;
zBoundType = 0&lt;br /&gt;
&lt;br /&gt;
#Fundamental length unit&lt;br /&gt;
burgMag = 2.556120e-010&lt;br /&gt;
&lt;br /&gt;
#Elastic constants&lt;br /&gt;
shearModulus = 40000000000.000000&lt;br /&gt;
pois = 0.369000&lt;br /&gt;
&lt;br /&gt;
#Mobility law function&lt;br /&gt;
mobilityLaw = &amp;quot;FCC_0&amp;quot;&lt;br /&gt;
enforceGlidePlanes = 1&lt;br /&gt;
enableCrossSlip = -1&lt;br /&gt;
MobScrew = 1.000000e+005&lt;br /&gt;
MobEdge  = 1.000000e+005&lt;br /&gt;
MobClimb = 1.000000e-002&lt;br /&gt;
&lt;br /&gt;
#Discretization&lt;br /&gt;
maxSeg = 200.000000&lt;br /&gt;
minSeg = 10.000000&lt;br /&gt;
&lt;br /&gt;
#Maximum nodal displacement at each time step&lt;br /&gt;
rmax = 100&lt;br /&gt;
&lt;br /&gt;
#Error tolerance in determining time step&lt;br /&gt;
rTol = 0.721688&lt;br /&gt;
&lt;br /&gt;
#Maximum time step&lt;br /&gt;
maxDT = 1&lt;br /&gt;
&lt;br /&gt;
#Core cut-off radius&lt;br /&gt;
rc = 2.886751&lt;br /&gt;
&lt;br /&gt;
#Core energy&lt;br /&gt;
Ecore = 0.000000e+000&lt;br /&gt;
&lt;br /&gt;
#Turn on elastic interaction&lt;br /&gt;
elasticinteraction = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Variable &amp;lt;tt&amp;gt;xBoundType&amp;lt;/tt&amp;gt; defines the type of problem space boundaries in the X dimension. Valid values are 0, 1 and 2 respectively for periodic, free surface, and reflecting.&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt; is the unit of length for all length variables in ParaDiS simulation, such as nodal positions and Burgers vectors (in data file, those data should be expressed in terms of the same &amp;lt;tt&amp;gt;burgMag&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3 Third is the loading conditions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Applied stress in Pa (xx,yy,zz,yz,zx,xy)&lt;br /&gt;
appliedStress = [ 0 0 0 0 0 0 ]&lt;br /&gt;
&lt;br /&gt;
#Constant Strain rate&lt;br /&gt;
loadType = 1&lt;br /&gt;
edotdir = [ 0.0 0.0 1.0 ]&lt;br /&gt;
eRate = 100000.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4 And the last part is settings on saving,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save files&lt;br /&gt;
savecn = 1&lt;br /&gt;
savecnfreq = 100&lt;br /&gt;
&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1&lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
#winDefaultsFile = &amp;quot;inputs/paradis.xdefaults2&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some visualization options&lt;br /&gt;
&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5041</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5041"/>
		<updated>2011-01-13T01:56:29Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to set up ctrl-file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. &lt;br /&gt;
&lt;br /&gt;
While reading this document, don&#039;t forget to check out [[paradis.stanford.edu]] for a complete and searchable table of parameters in ParaDiS code (some parameter names are not up-to-date). Detailed descriptions can be found in the official documentation ParaDiSInfo.txt.&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
&lt;br /&gt;
The structure of the ctrl file is explained by parts. &lt;br /&gt;
&lt;br /&gt;
1 First is the basic setup information for the simulation,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Directory to write output files&lt;br /&gt;
dirname = &amp;quot;outputs/filename&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Input files for PBC image stresses&lt;br /&gt;
Rijmfile = &amp;quot;inputs/Rijm.cube.out&amp;quot;&lt;br /&gt;
RijmPBCfile = &amp;quot;inputs/RijmPBC.cube.out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Total simulation steps&lt;br /&gt;
maxstep = 100&lt;br /&gt;
&lt;br /&gt;
#The total number of CPUs should be numXdoms * numYdoms * numZdoms&lt;br /&gt;
numXdoms = 1&lt;br /&gt;
numYdoms = 1&lt;br /&gt;
numZdoms = 1&lt;br /&gt;
&lt;br /&gt;
#Cells for dislocation grouping (cannot be less than 3)&lt;br /&gt;
numXcells = 3&lt;br /&gt;
numYcells = 3&lt;br /&gt;
numZcells = 3&lt;br /&gt;
&lt;br /&gt;
#Fast multipole method specs.&lt;br /&gt;
fmEnabled = 0  #disable fast multipole&lt;br /&gt;
fmMPOrder = 2&lt;br /&gt;
fmTaylorOrder = 4&lt;br /&gt;
fmCorrectionTbl = &amp;quot;Inputs/fm-ctab.m2.t4.dat&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can set the directory name where you want to store the output. You can also set the total number of simulation steps &amp;lt;tt&amp;gt;maxstep&amp;lt;/tt&amp;gt;. As for numXdoms, numYdoms and numZdoms, note that the product should be the total number of CPUs. This setting is crucial for parallel jobs. When all of them as set as 2, the total number of CUPs is 8. This should be consistant with the pbs file setting, which will be discussed in the end of this manual. If you want to enable fast multipole method (FMM), you need to set &amp;lt;tt&amp;gt;fmEnabled = 1&amp;lt;/tt&amp;gt; and assign the path for the corresponding table.&lt;br /&gt;
&lt;br /&gt;
2 Next is some settings on geometry, material parameters etc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
timestepIntegrator = &amp;quot;trapezoid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Boundary conditions&lt;br /&gt;
xBoundType = 0&lt;br /&gt;
yBoundType = 0&lt;br /&gt;
zBoundType = 0&lt;br /&gt;
&lt;br /&gt;
#Fundamental length unit&lt;br /&gt;
burgMag = 2.556120e-010&lt;br /&gt;
&lt;br /&gt;
#Elastic constants&lt;br /&gt;
shearModulus = 40000000000.000000&lt;br /&gt;
pois = 0.369000&lt;br /&gt;
&lt;br /&gt;
#Mobility law function&lt;br /&gt;
mobilityLaw = &amp;quot;FCC_0&amp;quot;&lt;br /&gt;
enforceGlidePlanes = 1&lt;br /&gt;
enableCrossSlip = -1&lt;br /&gt;
MobScrew = 1.000000e+005&lt;br /&gt;
MobEdge  = 1.000000e+005&lt;br /&gt;
MobClimb = 1.000000e-002&lt;br /&gt;
&lt;br /&gt;
#Discretization&lt;br /&gt;
maxSeg = 200.000000&lt;br /&gt;
minSeg = 10.000000&lt;br /&gt;
&lt;br /&gt;
#Maximum nodal displacement at each time step&lt;br /&gt;
rmax = 100&lt;br /&gt;
&lt;br /&gt;
#Error tolerance in determining time step&lt;br /&gt;
rTol = 0.721688&lt;br /&gt;
&lt;br /&gt;
#Maximum time step&lt;br /&gt;
maxDT = 1&lt;br /&gt;
&lt;br /&gt;
#Core cut-off radius&lt;br /&gt;
rc = 2.886751&lt;br /&gt;
&lt;br /&gt;
#Core energy&lt;br /&gt;
Ecore = 0.000000e+000&lt;br /&gt;
&lt;br /&gt;
#Turn on elastic interaction&lt;br /&gt;
elasticinteraction = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3 Third is the loading conditions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Applied stress in Pa (xx,yy,zz,yz,zx,xy)&lt;br /&gt;
appliedStress = [ 0 0 0 0 0 0 ]&lt;br /&gt;
&lt;br /&gt;
#Constant Strain rate&lt;br /&gt;
loadType = 1&lt;br /&gt;
edotdir = [ 0.0 0.0 1.0 ]&lt;br /&gt;
eRate = 100000.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4 And the last part is settings on saving,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save files&lt;br /&gt;
savecn = 1&lt;br /&gt;
savecnfreq = 100&lt;br /&gt;
&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1&lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
#winDefaultsFile = &amp;quot;inputs/paradis.xdefaults2&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some visualization options&lt;br /&gt;
&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5040</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5040"/>
		<updated>2011-01-13T01:55:51Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to set up ctrl-file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. &lt;br /&gt;
&lt;br /&gt;
While reading this document, don&#039;t forget to check out [[paradis.stanford.edu]] for a complete and searchable table of parameters in ParaDiS code (some parameter names are not up-to-date). Detailed descriptions can be found in the official documentation ParaDiSInfo.txt.&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
&lt;br /&gt;
The structure of the ctrl file is explained by parts. &lt;br /&gt;
&lt;br /&gt;
1 First is the basic setup information for the simulation,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Directory to write output files&lt;br /&gt;
dirname = &amp;quot;outputs/filename&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Input files for PBC image stresses&lt;br /&gt;
Rijmfile = &amp;quot;inputs/Rijm.cube.out&amp;quot;&lt;br /&gt;
RijmPBCfile = &amp;quot;inputs/RijmPBC.cube.out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Total simulation steps&lt;br /&gt;
maxstep = 100&lt;br /&gt;
&lt;br /&gt;
#The total number of CPUs should be numXdoms * numYdoms * numZdoms&lt;br /&gt;
numXdoms = 1&lt;br /&gt;
numYdoms = 1&lt;br /&gt;
numZdoms = 1&lt;br /&gt;
&lt;br /&gt;
#Cells for dislocation grouping (cannot be less than 3)&lt;br /&gt;
numXcells = 3&lt;br /&gt;
numYcells = 3&lt;br /&gt;
numZcells = 3&lt;br /&gt;
&lt;br /&gt;
#Fast multipole method specs.&lt;br /&gt;
fmEnabled = 0  #disable fast multipole&lt;br /&gt;
fmMPOrder = 2&lt;br /&gt;
fmTaylorOrder = 4&lt;br /&gt;
fmCorrectionTbl = &amp;quot;Inputs/fm-ctab.m2.t4.dat&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can set the directory name where you want to store the output. You can also set the total number of simulation steps &amp;lt;tt&amp;gt;maxstep&amp;lt;/tt&amp;gt;. As for numXdoms, numYdoms and numZdoms, note that the product should be the total number of CPUs. This setting is crucial for parallel jobs. When all of them as set as 2, the total number of CUPs is 8. This should be consistant with the pbs file setting, which will be discussed in the end of this manual. If you want to enable fast multipole method (FMM), you need to set &amp;lt;tt&amp;gt;fmEnabled = 1&amp;lt;/tt&amp;gt; and assign the path for the corresponding table.&lt;br /&gt;
&lt;br /&gt;
2 Next is some settings on geometry, material parameters etc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
timestepIntegrator = &amp;quot;trapezoid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Boundary conditions&lt;br /&gt;
xBoundType = 0&lt;br /&gt;
yBoundType = 0&lt;br /&gt;
zBoundType = 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Fundamental length unit&lt;br /&gt;
burgMag = 2.556120e-010&lt;br /&gt;
&lt;br /&gt;
#Elastic constants&lt;br /&gt;
shearModulus = 40000000000.000000&lt;br /&gt;
pois = 0.369000&lt;br /&gt;
&lt;br /&gt;
#Mobility law function&lt;br /&gt;
mobilityLaw = &amp;quot;FCC_0&amp;quot;&lt;br /&gt;
enforceGlidePlanes = 1&lt;br /&gt;
enableCrossSlip = -1&lt;br /&gt;
MobScrew = 1.000000e+005&lt;br /&gt;
MobEdge  = 1.000000e+005&lt;br /&gt;
MobClimb = 1.000000e-002&lt;br /&gt;
&lt;br /&gt;
#Discretization&lt;br /&gt;
maxSeg = 200.000000&lt;br /&gt;
minSeg = 10.000000&lt;br /&gt;
&lt;br /&gt;
#Maximum nodal displacement at each time step&lt;br /&gt;
rmax = 100&lt;br /&gt;
&lt;br /&gt;
#Error tolerance in determining time step&lt;br /&gt;
rTol = 0.721688&lt;br /&gt;
&lt;br /&gt;
#Maximum time step&lt;br /&gt;
maxDT = 1&lt;br /&gt;
&lt;br /&gt;
#Core cut-off radius&lt;br /&gt;
rc = 2.886751&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Core energy&lt;br /&gt;
Ecore = 0.000000e+000&lt;br /&gt;
&lt;br /&gt;
#Turn on elastic interaction&lt;br /&gt;
elasticinteraction = 1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3 Third is the loading conditions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Applied stress in Pa (xx,yy,zz,yz,zx,xy)&lt;br /&gt;
appliedStress = [ 0 0 0 0 0 0 ]&lt;br /&gt;
&lt;br /&gt;
#Constant Strain rate&lt;br /&gt;
loadType = 1&lt;br /&gt;
edotdir = [ 0.0 0.0 1.0 ]&lt;br /&gt;
eRate = 100000.0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4 And the last part is settings on saving,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save files&lt;br /&gt;
savecn = 1&lt;br /&gt;
savecnfreq = 100&lt;br /&gt;
&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1&lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
#winDefaultsFile = &amp;quot;inputs/paradis.xdefaults2&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some visualization options&lt;br /&gt;
&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5039</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5039"/>
		<updated>2011-01-13T01:42:12Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. &lt;br /&gt;
&lt;br /&gt;
While reading this document, don&#039;t forget to check out [[paradis.stanford.edu]] for a complete and searchable table of parameters in ParaDiS code (some parameter names are not up-to-date). Detailed descriptions can be found in the official documentation ParaDiSInfo.txt.&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5038</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5038"/>
		<updated>2011-01-13T01:40:47Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to obtain the latest ParaDiS codes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
While reading this document, don&#039;t forget to check out paradis.stanford.edu for a complete and searchable table of parameters in ParaDiS code (some parameter names are not up-to-date). Detailed descriptions can be found in the official documentation ParaDiSInfo.txt.&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5037</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5037"/>
		<updated>2011-01-13T01:38:19Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to set up data-file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0 -0.408248 -0.408248 0.816497&lt;br /&gt;
     ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5036</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5036"/>
		<updated>2011-01-13T01:37:12Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to set up data-file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following structures exist&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dataFileVersion = 4&lt;br /&gt;
numFileSegments = 1&lt;br /&gt;
minCoordinates = [&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
maxCoordinates = [&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
 ]&lt;br /&gt;
nodeCount = 192&lt;br /&gt;
dataDecompType = 1&lt;br /&gt;
dataDecompGeometry = [&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 ]&lt;br /&gt;
domainDecomposition =&lt;br /&gt;
 -4.000000e+003&lt;br /&gt;
     -4.000000e+003&lt;br /&gt;
         -4.000000e+003&lt;br /&gt;
         4.000000e+003&lt;br /&gt;
     4.000000e+003&lt;br /&gt;
 4.000000e+003&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#       Primary lines: node_tag, x, y, z, num_arms, constraint&lt;br /&gt;
#       Secondary lines: arm_tag, burgx, burgy, burgz, nx, ny, nz&lt;br /&gt;
#&lt;br /&gt;
#       length in unit of burgMag&lt;br /&gt;
&lt;br /&gt;
nodalData =&lt;br /&gt;
     0,0       3.52197261266669e+003 -2.10366848600532e+003  8.35974608889734e+002 2 7&lt;br /&gt;
           0,1      -0.707107 0.707107 0&lt;br /&gt;
                 1 1 1&lt;br /&gt;
           0,15      0.707107 -0.707107 0&lt;br /&gt;
                 -0.408248 -0.408248 0.816497&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set your own data file parameters, usually including minCoordinates, maxCoordinates, nodeCount, domainDecomposition and nodalData. The nodalData is a long array of data. You may want to create it from Matlab if there exists too many nodes in your simulation box.&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5035</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5035"/>
		<updated>2011-01-13T01:30:29Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* xwindow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;; using &amp;lt;tt&amp;gt;ssh -X username@domain&amp;lt;/tt&amp;gt; when you log into clusters) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). Check the following setting in &amp;lt;tt&amp;gt;/inputs/paradis.xdefaults&amp;lt;/tt&amp;gt; if you set it as &amp;quot;winDefaultsFile&amp;quot; in your ctrl file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
enable_window = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5034</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5034"/>
		<updated>2011-01-13T01:25:38Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* pbs file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, you need to add the following line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;serial.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For parallel jobs, add&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where log file is &amp;lt;tt&amp;gt;parallel.out&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5033</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5033"/>
		<updated>2011-01-13T01:24:26Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* What if the job is stopped */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or parallel jobs,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored files under directory &amp;lt;tt&amp;gt;outputs/filename/restart&amp;lt;/tt&amp;gt; by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$bin/paradis outputs/filename/restart/restart.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5032</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5032"/>
		<updated>2011-01-13T01:20:06Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* What if the job is stopped */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or parallel jobs,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;br /&gt;
You can continue from the stored restart.data file under directory&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5031</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5031"/>
		<updated>2011-01-13T01:17:01Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* pbs file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
To submit jobs using a single processor, &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; serial.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or parallel jobs,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mpiexec -np $ncpu bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl &amp;amp;&amp;gt; parallel.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5030</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5030"/>
		<updated>2011-01-13T01:14:30Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* pbs file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, wait time, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5029</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5029"/>
		<updated>2011-01-13T01:14:12Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* pbs file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
In a typical pbs file, we have following lines as header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N jobname&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -l nodes=8:ppn=8,walltime=24:00:00&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
### BEGINNING OF EXECUTION&lt;br /&gt;
### ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
echo The master node of this job is `hostname`&lt;br /&gt;
echo The working directory is `echo $PBS_O_WORKDIR`&lt;br /&gt;
echo This job runs on the following nodes:&lt;br /&gt;
echo `cat $PBS_NODEFILE`&lt;br /&gt;
&lt;br /&gt;
ncpu=`cat $PBS_NODEFILE | wc -w`&lt;br /&gt;
echo &amp;quot;Number of processors = $ncpu &amp;quot;&lt;br /&gt;
### end of information preamble&lt;br /&gt;
&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
&lt;br /&gt;
echo $PWD&lt;br /&gt;
&lt;br /&gt;
#cmd=&amp;quot;mpiexec -np $ncpu bin/meam-lammps_mpich scripts/work/si_ge/si-meam-lammps.tcl&amp;quot;&lt;br /&gt;
#time $cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to set the job name, number of nodes and ppn (number of processors per node, for example, ppn = 8 for wcr clusters)&lt;br /&gt;
&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5028</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5028"/>
		<updated>2011-01-12T23:31:42Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Atomeye */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 outputs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5027</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5027"/>
		<updated>2011-01-12T23:31:11Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Atomeye */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ tools/atomeye/A.i686 runs/filename/atomeye/paradis0001.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. &lt;br /&gt;
&lt;br /&gt;
To convert these jpg files to a movie, the command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg mymovie.mpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5026</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5026"/>
		<updated>2011-01-12T23:29:43Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Atomeye */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
Atomeye is a powerful visualization tool. To enable Atomeye, you need to add following lines in the ctrl file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atomeye = 1&lt;br /&gt;
atomeyefreq = 1&lt;br /&gt;
atomeyesegradius = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To view atomeye files, you can use command&lt;br /&gt;
$ tools/atomeye/A.i686 PartialsTests/partial3/atomeye/paradis0001.cfg&lt;br /&gt;
To create jpg files press y to convert all cfg files in the same directory. To convert jpg files to movie, the command is&lt;br /&gt;
$ convert -delay 4 -quality 95 *.jpg myfirstmovie.mpg&lt;br /&gt;
where -delay and -quality flags are optional; if -delay &amp;gt; 4, extra frames are added to make the movie run more slowly; default quality is 75 and the maximum is 100. Note that encode packages need to be preinstalled for the machine or cluster.&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5025</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5025"/>
		<updated>2011-01-12T23:27:42Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* xwindow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled for the session(test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(&amp;quot;MODE = SERIAL, XLIB_MODE = ON&amp;quot; in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5024</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5024"/>
		<updated>2011-01-12T23:25:46Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to visualize the results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled (test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(MODE = SERIAL in makefile.setup). By executing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/datafile.data runs/ctrlfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be able to see the xwindow. By setting &amp;quot;maxstep = 0&amp;quot; in the ctrl file, you can obtain the configuration (snapshot) for any given simulation step. When the simulation step is large, you might want to consider the other method.&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5023</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5023"/>
		<updated>2011-01-12T23:16:55Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* How to visualize the results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
To visualize the simulation results, here are two methods. One is to run simulation interactively one one CPU and perform observation. The other is to record the configuration at certain simulation steps and make movies from them.&lt;br /&gt;
===xwindow===&lt;br /&gt;
Make sure x11 server is enabled (test by &amp;quot;xclock&amp;quot;) and the ParaDiS code is compiled for single CPU(MODE = SERIAL in makefile.setup).&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5022</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5022"/>
		<updated>2011-01-12T23:11:40Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line at the same time, you can use option &amp;quot;w l lt 2 lw 4&amp;quot;, for instance, where lt means linetype and lw means linewidth.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5021</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5021"/>
		<updated>2011-01-12T23:00:55Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Gnuplot is a useful plotting software. You can plot the obtained properties data with gnupot, for example, stress vs strain curve. Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line, you can use option &amp;quot;w l lw 4&amp;quot;, for instance.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5020</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5020"/>
		<updated>2011-01-12T22:59:43Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6). To modify the width of the line, you can use option &amp;quot;w l lw 4&amp;quot;, for instance.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5019</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5019"/>
		<updated>2011-01-12T22:56:04Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line(line type), you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6).&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5018</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5018"/>
		<updated>2011-01-12T22:50:18Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line, you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6).&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5017</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5017"/>
		<updated>2011-01-12T22:50:06Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [&amp;quot;here&amp;quot;,http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line, you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6).&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5016</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5016"/>
		<updated>2011-01-12T22:49:40Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To assign the color of the line, you need to add corresponding number after &amp;quot;l&amp;quot;. For example, black solid(-1), black dot(0), red(1), green (2), blue(3), margenta(4), cyan(5) and yellow(6).&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5015</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5015"/>
		<updated>2011-01-12T22:43:23Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines, p for points and d for dots.&lt;br /&gt;
&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5014</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5014"/>
		<updated>2011-01-12T22:42:57Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5013</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5013"/>
		<updated>2011-01-12T22:42:24Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [here|http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5012</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5012"/>
		<updated>2011-01-12T22:42:07Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [here,http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5011</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5011"/>
		<updated>2011-01-12T22:41:00Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click here[http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5010</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5010"/>
		<updated>2011-01-12T22:39:01Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [here http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5009</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5009"/>
		<updated>2011-01-12T22:38:48Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html] for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5008</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5008"/>
		<updated>2011-01-12T22:38:22Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot;, &amp;quot;with dots&amp;quot; or &amp;quot;with impulses&amp;quot;. Click [here]http://t16web.lanl.gov/Kawano/gnuplot/intro/style-e.html for a detailed description of the styles.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5007</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5007"/>
		<updated>2011-01-12T22:36:25Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot; or &amp;quot;with impulses&amp;quot;.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also change the ranges of X and Y axes,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xrange [0:2]&lt;br /&gt;
gnuplot&amp;gt; set yrange [0:1]&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5006</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5006"/>
		<updated>2011-01-12T22:35:22Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot; or &amp;quot;with impulses&amp;quot;.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5005</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5005"/>
		<updated>2011-01-12T22:35:03Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). By typing &amp;lt;tt&amp;gt;gnuplot&amp;lt;/tt&amp;gt;, you can start using following command lines. For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot; or &amp;quot;with impulses&amp;quot;.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
To change the labels of X and Y axes, you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gnuplot&amp;gt; set xlabel &amp;quot;x-axis&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set ylabel &amp;quot;y-xais&amp;quot;&lt;br /&gt;
gnuplot&amp;gt; set title &amp;quot;y vs x&amp;quot;&lt;br /&gt;
replot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5004</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5004"/>
		<updated>2011-01-12T22:30:36Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot; or &amp;quot;with impulses&amp;quot;.&lt;br /&gt;
To draw multiple lines, you can type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;A&amp;quot; using 1:2 title &amp;quot;data A&amp;quot; with lines, \&lt;br /&gt;
&amp;quot;B&amp;quot; u 1:2 t &amp;quot;data B&amp;quot; with p, \&lt;br /&gt;
&amp;quot;C&amp;quot; u 2:3 t &amp;quot;data C&amp;quot; w l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can use \ to separate continuous lines. &amp;lt;tt&amp;gt;title&amp;lt;/tt&amp;gt; is used to label different lines. You can abbreviate some of the commands, for example, u for using, t for title, w for with, l for lines and p for points.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5003</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5003"/>
		<updated>2011-01-12T22:23:00Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Gnuplot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
Before using gnuplot, make sure it is installed on your cluster. You also need to enable X  server (test by typing &amp;lt;tt&amp;gt;xclock&amp;lt;/tt&amp;gt;). For a given (X,Y) data pair, the gnuplot command is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;filename&amp;quot; using 1:2 with lines&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;using 1:2&amp;quot; means plotting using the 1st and 2nd column from the given data file. &amp;quot;with lines&amp;quot; is a style option, you can change to &amp;quot;with points&amp;quot;, &amp;quot;with steps&amp;quot; or &amp;quot;with impulses&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5002</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5002"/>
		<updated>2011-01-12T22:14:32Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Description of recorded properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5001</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5001"/>
		<updated>2011-01-12T22:14:13Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Description of recorded properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/$m^2$)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5000</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=5000"/>
		<updated>2011-01-12T22:13:49Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Where to find the recorded properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Description of recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=4999</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=4999"/>
		<updated>2011-01-12T22:13:30Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Where to find the recorded properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Where to find the recorded properties===&lt;br /&gt;
By default, properties are saved to the following path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/Codes/ParaDiS/outputs/ctrl_file_name/properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually there are six files. &lt;br /&gt;
&lt;br /&gt;
1 &amp;lt;tt&amp;gt;time_Plastic_strain&amp;lt;/tt&amp;gt; contains two columns of data:&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain&lt;br /&gt;
2 &amp;lt;tt&amp;gt;stress_Plastic_strain&amp;lt;/tt&amp;gt; is generated only if loadType = 1 (constant strain rate) or 4 (cyclic loading). The first two columns of this file are plastic strain and stress respectively.&lt;br /&gt;
3 &amp;lt;tt&amp;gt;stress_Total_strain &amp;lt;/tt&amp;gt; is generated only if loadType = 1. The first two columns of this file are total strain and stress. Notice that total strain is the sum of plastic strain and elastic strain. &lt;br /&gt;
4 &amp;lt;tt&amp;gt;density&amp;lt;/tt&amp;gt; The first three columns of this file are&lt;br /&gt;
 1: plastic strain&lt;br /&gt;
 2: total strain&lt;br /&gt;
 3: dislocation density (/m^2)&lt;br /&gt;
5 &amp;lt;tt&amp;gt;alleps&amp;lt;/tt&amp;gt; contrains 9 columns of data:&lt;br /&gt;
 1: smulation timestep number&lt;br /&gt;
 2: elapsed simulation time&lt;br /&gt;
 3-8: plastic strain component&lt;br /&gt;
 9: dislocation density&lt;br /&gt;
6 &amp;lt;tt&amp;gt;epsdot&amp;lt;/tt&amp;gt; contains 2 columns of data&lt;br /&gt;
 1: elapsed simulation time&lt;br /&gt;
 2: plastic strain rate&lt;br /&gt;
&lt;br /&gt;
For detailed descriptions of the recorded data, please refer to the official ParaDiS manual.&lt;br /&gt;
&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=4998</id>
		<title>ParaDiS Manual Updated</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=ParaDiS_Manual_Updated&amp;diff=4998"/>
		<updated>2011-01-12T21:37:37Z</updated>

		<summary type="html">&lt;p&gt;Jieyin: /* Settings in the ctrl file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under construction by Jie Yin&lt;br /&gt;
&lt;br /&gt;
Here is a practical guide to ParaDiS corresponding to the latest version. It is especially useful for beginners with latest command templates and programming tips. This guide includes following how-tos:&lt;br /&gt;
&lt;br /&gt;
==How to obtain the latest ParaDiS codes==&lt;br /&gt;
&lt;br /&gt;
It is highly recommended to create directory &amp;lt;tt&amp;gt;Codes&amp;lt;/tt&amp;gt; under your home directory. Currently ParaDiS codes are maintained through Subversion. For current group members or collaborators, you can &#039;&#039;&#039;obtain&#039;&#039;&#039; the latest version of ParaDiS by typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes&lt;br /&gt;
 svn co https://micro.stanford.edu/svn/ParaDiS [./dirname]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;~/Codes/dirname&amp;lt;/tt&amp;gt;) will be created with latest checked out revision. It is your svn local repository. You can &#039;&#039;&#039;update&#039;&#039;&#039; your local ParaDiS codes by simply typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd ~/Codes/ParaDiS&lt;br /&gt;
 svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you create a new file called &amp;lt;tt&amp;gt;newfile.c&amp;lt;/tt&amp;gt;, you can &#039;&#039;&#039;add&#039;&#039;&#039; it to your local repository &amp;lt;tt&amp;gt; ~/Codes/ParaDiS &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn add newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &#039;&#039;&#039;commit&#039;&#039;&#039; the change to ParaDiS codes after some modifications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ svn commit newfile.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to compile ParaDiS==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before compilation&#039;&#039;&#039;, you need to modify the &#039;&#039;&#039;settings&#039;&#039;&#039; in &amp;lt;tt&amp;gt;makefile.setup&amp;lt;/tt&amp;gt;, which is under directory &amp;lt;tt&amp;gt;~/Codes/ParaDiS&amp;lt;/tt&amp;gt;. Currently many system types are supported. In the first few lines, you can see following lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SYS = wcr&lt;br /&gt;
&lt;br /&gt;
MODE = SERIAL&lt;br /&gt;
#MODE = PARALLEL&lt;br /&gt;
&lt;br /&gt;
#XLIB_MODE = OFF&lt;br /&gt;
XLIB = MODE = ON&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;SYS&amp;lt;/tt&amp;gt; defines the system type. Detailed descriptions can be found in file &amp;lt;tt&amp;gt;makefile.sys&amp;lt;/tt&amp;gt;. You can also change to &amp;lt;tt&amp;gt;linux&amp;lt;/tt&amp;gt; if it best described your system type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MODE&amp;lt;/tt&amp;gt; is the execution mode. &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; is to enable compile-time support for MPI and multi-CPU support and &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is for single-CPU compilation. Usually &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; is used for debugging and visulization purpose. For computation intensive jobs, you should choose &amp;lt;tt&amp;gt;PARALLEL&amp;lt;/tt&amp;gt; mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XLIB_MODE = ON&amp;lt;/tt&amp;gt; is only valid when you want to enable xwindow plotting capability (at the same time &amp;lt;tt&amp;gt;MODE = SERIAL&amp;lt;/tt&amp;gt; ). Otherwise you should set it &amp;lt;tt&amp;gt;OFF&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;After saving your settings&#039;&#039;&#039;, you can start compilation by simply typing the following,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to compile faster on a multi-CPU machine, you can use command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where 8 means the number of processors used for compilation.&lt;br /&gt;
&lt;br /&gt;
If you want to re-compile ParaDiS, e.g. after some modification to source files or system settings, you need to &amp;quot;make clean&amp;quot; before &amp;quot;make&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make clean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run a test case==&lt;br /&gt;
&lt;br /&gt;
To run a DD simulation, you need to prepare &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file and &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file. &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file includes controlling parameters needed for the simulation while &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file usually describe the geometric parameters of the simulation system, e.g. cell size, nodal coordinates. To run a test case, the basic command is shown as following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis -d runs/testfile.data runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable is &amp;lt;tt&amp;gt;paradis&amp;lt;/tt&amp;gt;. When &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is used, your &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; file does not have to be in the same directory or of the same name as your &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file. In most cases, people create the two files with same names and put them under the same directory, then you can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bin/paradis runs/testfile.ctrl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===How to set up data-file===&lt;br /&gt;
In most &amp;lt;tt&amp;gt;.data&amp;lt;/tt&amp;gt; files, following lines exist&lt;br /&gt;
&lt;br /&gt;
===How to set up ctrl-file===&lt;br /&gt;
===How to create input files with Matlab===&lt;br /&gt;
&lt;br /&gt;
==How to record properties==&lt;br /&gt;
===Settings in the ctrl file===&lt;br /&gt;
At the bottom of &amp;lt;tt&amp;gt;.ctrl&amp;lt;/tt&amp;gt; file, following lines are needed,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Save Properties&lt;br /&gt;
saveprop = 1 &lt;br /&gt;
savepropfreq = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which indicate saving properties is enabled and the saving frequency is once per simulation step.&lt;br /&gt;
&lt;br /&gt;
===Where to find the recorded properties===&lt;br /&gt;
===Gnuplot===&lt;br /&gt;
&lt;br /&gt;
==How to visualize the results==&lt;br /&gt;
===xwindow===&lt;br /&gt;
===Atomeye===&lt;br /&gt;
&lt;br /&gt;
==How to submit parallel jobs==&lt;br /&gt;
===pbs file===&lt;br /&gt;
===What if the job is stopped===&lt;/div&gt;</summary>
		<author><name>Jieyin</name></author>
	</entry>
</feed>