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.

Advertisements

About yhtian

I am an academic researcher working on Offshore Geotechnical Engineering. My blog aims to write down some work related trivial things and tricks about software, programming. It is basically a memo for me to back up some thoughts and small details. But I am more than happy if someone would visit and discuss.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s