Getting Started

Warning

Since Verion 7.4 JCMsuite no longer provides a bundled Python distribution. Instead it relies on your system’s python installation. Please make sure that the packages NumPy/Scipy [1] and optionally MatplotLib [2] are available.

To use|JCMsuite| within your Python interpreter you must import the module jcmwave that is placed in the sub-folder ThirdPartySupport/Python of your JCMsuite installation. Please add this path your PYTHONPATH environment variable. Alternatively, the python search path can be updated within Python before importing the module jcmwave:

import sys
import os

jcm_root = <JCMROOT> # -> set your JCMROOT installation directory
sys.path.append(os.path.join(jcm_root, 'ThirdPartySupport', 'Python'))

Or, when the environmental variable JCMROOT is set, e.g., on Windows:

import sys
import os

sys.path.append(os.path.join(os.getenv('JCMROOT'), 'ThirdPartySupport', 'Python'))

Use the command info to check that the Python interface is now properly available:

# now import jcmwave
import jcmwave

# call jcmwave.info to check the JCMsuite installation
jcmwave.info()

The entire Python interface consists of the following routines:

All routines provide detailed online help, e.g., use

help(jcmwave.solve)

to obtain help on jcmwave.solve.