This notebook contains a tutorial to perform MD simulations of an Octamethyl Silsesquioxane molecule with NAMD and the AMBER force field
Octa-methyl Silsesqioxane
Interpolation of Structure factors
Working with python scripts
View/Edit the contents on an ASCII file
(Top)
(Top)
Scripts are written in the python language. Any text editor can be used but for convenience, we will use the script editor available in MantidPlot. It has the advantage that all algorithms are automatically loaded into the namespace, thus simplifying the coding. The script editor is opened from the View menu: View $\rightarrow$ Script Window:
The script window has an upper pannel to write your code, and a lower pannel where output is printed.
Commands in the editor are executed from the Execute menu: Execute $\rightarrow$ Execute all. There's also the option to execute only the commands that are higlighted via Execute $\rightarrow$ Execute selection:
In the output panel, only two
and three
are printed. Notice also the green arrow indicating the last line in the script that was executed.
(Top)
1 File is shown in the terminal:
In [ ]:
%%bash
cat file #will dump all contents of the file to the terminal
less file #will fill the terminal with beginning of the file, and wait for user input
vi file #the best Linux text editor according to vi fans
emacs -nw file #the best Linux text editor according to emacs fans
2 File is shown in a separate window
In [ ]:
%%bash
emacs file &
gedit file & #recommended for those familiar with windows, similar to notepad
openoffice.org file & #like WORD, maybe to much for a simple ASCII file
(Top)
(Top)
(Top)
Quoted text
image caption |
some text |