


{"id":372258,"date":"2024-07-17T05:52:47","date_gmt":"2024-07-17T05:52:47","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/lsdyna-with-powershell\/"},"modified":"2024-07-17T05:52:47","modified_gmt":"2024-07-17T05:52:47","slug":"lsdyna-with-powershell","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/lsdyna-with-powershell\/","title":{"rendered":"LSDYNA with powershell"},"content":{"rendered":"<p>Hi:<\/p>\n<p>I am trying to use Windows Powershell to automatically execute lsdyna cfile ( have successfully executed the input k file using i=input.k) but also run into error and issue. Here is what I call<br \/>Setting the environment: ANSYS_DIR=D:\\Program Temps\\ANSYS Inc\\v211\\ANSYS<br \/>Executing &#8220;D:\\Program Temps\\ANSYS Inc\\v211\\ANSYS\\bin\\winx64\\lsdyna_sp.exe&#8221; &nbsp;c=lspost.cfile<br \/>And seems like lsdyna.exe is opened but get the following:<br \/>forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read<br \/>Image &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Routine &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Line &nbsp; &nbsp; &nbsp; &nbsp;Source<br \/>lsdyna_sp.exe &nbsp; &nbsp; &nbsp;00007FF79B23777D &nbsp;Unknown &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Unknown &nbsp;Unknown<br \/>lsdyna_sp.exe &nbsp; &nbsp; &nbsp;00007FF79B1F0619 &nbsp;Unknown &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Unknown &nbsp;Unknown<br \/>lsdyna_sp.exe &nbsp; &nbsp; &nbsp;00007FF7955BE6E4 &nbsp;QLINK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 689 &nbsp;atemp.F<br \/>lsdyna_sp.exe &nbsp; &nbsp; &nbsp;00007FF7954D20B0 &nbsp;LSDYNA1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 598 &nbsp;dynm.F<br \/>lsdyna_sp.exe &nbsp; &nbsp; &nbsp;00007FF7954D1D33 &nbsp;MAIN__ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1752 &nbsp;dynm.F<br \/>lsdyna_sp.exe &nbsp; &nbsp; &nbsp;00007FF79E2B40DE &nbsp;Unknown &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Unknown &nbsp;Unknown<br \/>lsdyna_sp.exe &nbsp; &nbsp; &nbsp;00007FF79EE6DA00 &nbsp;Unknown &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Unknown &nbsp;Unknown<br \/>KERNEL32.DLL &nbsp; &nbsp; &nbsp; 00007FFCB4EB7344 &nbsp;Unknown &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Unknown &nbsp;Unknown<br \/>ntdll.dll &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;00007FFCB607CC91 &nbsp;Unknown &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Unknown &nbsp;Unknown<br \/>Press Enter to exit:<br \/>And idea how to solve this? Or how can I ask lsdyna to run multiple cfiles without going into the GUI? Thank you!<br \/><img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/07\/17-07-2024-1721195530-mceclip0.png\"><\/p>\n","protected":false},"template":"","class_list":["post-372258","topic","type-topic","status-closed","hentry","topic-tag-gui","topic-tag-lsdyna"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["37618","178077"],"_bbp_author_ip":["2607:f140:400:44:fc5c:444b:a3cd:1db2"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["271"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["372258"],"_bbp_forum_id":["27814"],"_bbp_engagement":["37618","178077"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["372460"],"_bbp_last_active_id":["372460"],"_bbp_last_active_time":["2024-07-17 22:07:10"]},"test":"achen87berkeley-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/372258","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\/372258\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=372258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}