PDA

View Full Version : Activating Ansys Usermat



Urmia
2010-02-08, 14:30
Hi,

I have already written a usermat for ansys and started to implement it into ansys. I use ansys on LINUX platform. I have already compiled the sample usermat (bilinear model) sucessfully and created shared library for it. However it seems I have problem with the activating Usermat. I use the following command in order to set the ANS_USER_PATH env variable to point to the working directory.

export ANS_USER_PATH=/home/urmia/first

and then I don't know what to do, I just enter the TB, USER, MAT1......in command window without specifying any path for the usermat.f file for ansys. I am beginer in LINUX and ANSYS. In fact, I don't know what to do after compiling the usermat.f. I will be grateful if you tell me what to do inorder to run the program using my usermat.

Should I use MPREAD command after constructing lib file for the desired usermat?

Best regards,
Urmia

Jorgen
2010-06-19, 21:22
No you should not need to do anything. All you need is the compiled shared library version of your subroutine, and the ANSYS environmental variable. Then ANSYS should be able to find and user your subroutine just fine.

-Jorgen

MECATRIA
2011-02-24, 05:31
Hi!
Can i know how to compile usermat.F and linking it?

Jorgen
2011-02-27, 17:08
On Windows, you can run the script file:
C:\Program Files\ANSYS Inc\v121\ansys\custom\user\winx64\ANSUSERSHARED.ba t

There is also a corresponding file for Linux.

-Jorgen