Difference between revisions of "Minimal Serpent Coupling Script"
(→Setup) |
(→Running) |
||
Line 15: | Line 15: | ||
<b>Note:</b> Before running the MSCS you should familiarize yourself with finding and killing background processes in your operating system. Since MSCS runs Serpent as a background process, killing MSCS will not kill the Serpent process automatically. | <b>Note:</b> Before running the MSCS you should familiarize yourself with finding and killing background processes in your operating system. Since MSCS runs Serpent as a background process, killing MSCS will not kill the Serpent process automatically. | ||
− | + | Run the simulation from the testcase-folder using the command <tt>python ../MSCS.py</tt> | |
+ | |||
+ | The output of the Serpent run will be printed to the terminal. | ||
== Comments == | == Comments == |
Revision as of 12:55, 9 May 2016
The Minimal Serpent Coupling Script (MSCS) is a short (< 300 lines with comments) Python program intended to give a minimal working example of a wrapper program that can communicate with Serpent in the coupled calculation mode. MSCS provides a working example of externally coupled multi-physics simulations with Serpent and may be a good starting point for the users that are interested in running such simulations with Serpent.
Contents
Description
Setup
MSCS has been tested with Python 2.7.6 and Serpent 2.1.26.
- Extract the MSCS zip to a suitable folder preserving the internal directory structure of the package.
- Replace the absolute path to the Serpent executable on line 16 of MSCS.py.
- The test case is now ready to run.
Running
Note: Before running the MSCS you should familiarize yourself with finding and killing background processes in your operating system. Since MSCS runs Serpent as a background process, killing MSCS will not kill the Serpent process automatically.
Run the simulation from the testcase-folder using the command python ../MSCS.py
The output of the Serpent run will be printed to the terminal.