


{"id":294058,"date":"2023-07-20T09:07:23","date_gmt":"2023-07-20T09:07:23","guid":{"rendered":"\/forum\/forums\/topic\/upf-dynamic-library-ansys-terminates-abnormally\/"},"modified":"2023-07-20T09:07:23","modified_gmt":"2023-07-20T09:07:23","slug":"upf-dynamic-library-ansys-terminates-abnormally","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/upf-dynamic-library-ansys-terminates-abnormally\/","title":{"rendered":"UPF dynamic library ansys terminates abnormally"},"content":{"rendered":"<p>Hey guys!<\/p>\n<p>I am trying to include USERMAT files in my Ansys code via the dynamic library linking option. I did everything as described in the manual (ANS_USER_PATH is set, USERMAT.F and ANSUSERSHARED.bat are in the folder and did compile, the output window shows that ANSYS is linked by licensee) but everytime I run my APDL code (which works without the USERMAT) the run terminates abnormally and the window closes without any message. When I restart APDL it says:<\/p>\n<p>*** ERROR ***<br \/>&nbsp;Another ANSYS job with the same job name (dll_UPF_Check_20072023) is already running in this<br \/>&nbsp;directory or the dll_UPF_Check_20072023.lock file has not been deleted from an abnormally<br \/>&nbsp;terminated ANSYS run. &nbsp;To disable this check, set the ANSYS_LOCK environment<br \/>&nbsp;variable to OFF.<\/p>\n<p>&nbsp;Do you wish to override this lock and continue (y or n)?<\/p>\n<p>&nbsp;<\/p>\n<p>I checked the .lock file but it&#8217;s empty and I have no idea what could be the problem. I know that the USERMAT works since I linked it via the new .exe linking option but I want to switch to the .dll linking option.<\/p>\n<p>&nbsp;<\/p>\n<p>Does anybody have an idea on what could be the problem? I run Mechanical APDL 2022R1 on Windows 10.<\/p>\n<p>&nbsp;<\/p>\n<p>Thanks a lot in advance!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-294058","topic","type-topic","status-closed","hentry","topic-tag-ansys-apdl","topic-tag-mechanical","topic-tag-upf","topic-tag-usermat","topic-tag-usermat-coding-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["30438","170445"],"_bbp_author_ip":["23.217.200.46"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1228"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["294058"],"_bbp_forum_id":["27791"],"_bbp_engagement":["30438","170445"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["294733"],"_bbp_last_active_id":["294733"],"_bbp_last_active_time":["2023-07-25 13:26:23"]},"test":"janot-lubritztu-berlin-de"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/294058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/294058\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=294058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}