

The trick was using the correct launcher log commands to manually enable "SMP". When calling the script from python the strain energy, I want to get with sene, is not callable and this error occurs in the file.err: This input file is a apdl command script. I am calling Ansys MAPDL.exe with an input file from Python. Hello everybody, I have a very similar issue. I tried to use the /PSCONTROL (/PSCONTROL,ON) apdl command in the hope of getting the issue solved but this didn´t work as well.ĭoes anyone of you has an idea how to solve this issue? However, if I run the script from python, it does not! Now, the clue is, if I run the script from Ansys Classic directly via import file, it all works fine. Now, I´ve already read in some discussions that setting the product launcher to "Use Shared-Memory Parallel (SMP)" and I did that. The label STRAIN_E is of course the varibale I declared to be stored with SENE. Item SENE has not been stored in the database. I am calling Ansys MAPDL.exe with an input file from Python. For more information on the usertbelastic subroutine, see the Guide to User-Programmable Features in the Mechanical APDL Programmers Reference. The ANS_USE_UPF environment variable should not be set when using other methods to link UPFs.Hi, I have a very similar issue. This environment variable is required only on Windows systems and only when using the /UPF command method for linking UPFs. This causes the program to search for /UPF in the input file. This script is typically located in Program FilesAnsys IncV192ansysbin where is a directory that uniquely identifies the hardware platform version: “Win圆4” for 64-bit Windows.īefore starting Mechanical APDL, you must set the ANS_USE_UPF environment variable to TRUE. You must include the path to this script in your system PATH variable. The specified routine must reside in the current working directory.įollowing are prerequisites for using the /UPF command method on a Windows system:Ī script named findUPF.bat is used to detect the /UPF command.

Where RoutineName is the name of the user routine ( filename.ext) that you want to link. The /UPF command offers the simplest method for linking user programmable features into Mechanical APDL.
