Minimal Serpent Coupling Script

From Serpent Wiki
Revision as of 12:53, 9 May 2016 by Ville Valtavirta (Talk | contribs) (Setup)

Jump to: navigation, search

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.

Description

Setup

MSCS has been tested with Python 2.7.6 and Serpent 2.1.26.

  1. Extract the MSCS zip to a suitable folder preserving the internal directory structure of the package.
  2. 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.

You should

Comments