22.6.11

Using numpy or scipy within abaqus python

from http://polymerfem.com/showthread.php?1626-Using-numpy-or-scipy-within-abaqus-python

1. Install Python 2.4.3 (or the same version as your Abaqus runs)

2. Install the appropriate versions of numpy and scipy compatible with Python 2.4.3

3. Create a Custom\Python24\Lib\site-packages directory in your root Abaqus directory. e.g c:\abaqus\custom\Python24\Lib\site-packages

4. Copy the numpy and scipy directories in c:\Python24\Lib\site-packages to c:\abaqus\custom\Python24\Lib\site-packages

As a side note, make sure your import numpy, scipy, scipy.io line appears before the "from odbAccess import *" line in your script file.

An alternative procedure is to do Steps 1 and 2 above and then add a line "PYTHONPATH=c:\Python24\Lib\site-packages" to the abaqus environment file. however, this didn't work for me.

没有评论: