


{"id":292398,"date":"2023-07-10T23:03:43","date_gmt":"2023-07-10T23:03:43","guid":{"rendered":"\/forum\/forums\/topic\/failed-to-move-file-from-solver-directory-to-scratch-directory-file-rst\/"},"modified":"2023-07-10T23:03:43","modified_gmt":"2023-07-10T23:03:43","slug":"failed-to-move-file-from-solver-directory-to-scratch-directory-file-rst","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/failed-to-move-file-from-solver-directory-to-scratch-directory-file-rst\/","title":{"rendered":"Failed to move file from solver directory to scratch directory: file.rst"},"content":{"rendered":"<p>I am now writing a script to loop through different loading conditions and material conditions. For each iteration, I perform the static structural analysis and collect the deformation from some nodes of the mesh (the node IDs are pre-set). In the end, I write all of them into a .csv file. The problem now is the code <strong>only<\/strong> collects data from the <strong>first<\/strong> iteration since I open Ansys Mechanical. From then on, if I don&#8217;t reopen Ansys Mechanical, all the deformation collected is the same as the first iteration (for other conditions). Apart from the first iteration since I opened Ansys Mechnical, a warning like this popped up for every consecutive iteration: <em>Failed to move file from solver directory to scratch directory: file.rst<\/em>.&nbsp;<\/p>\n<p>For the most inside loop, my code looks like this:<\/p>\n<p><span style=\"font-size: 10pt\">for load in loading:<\/span><\/p>\n<p><span style=\"font-size: 10pt\">&nbsp; &nbsp; &nbsp; &nbsp; ####Change loading conditions (The location of loading)<\/span><br \/><span style=\"font-size: 10pt\">&nbsp; &nbsp; &nbsp; &nbsp; pressure = DataModel.GetObjectById(3778)&nbsp;<\/span><br \/><span style=\"font-size: 10pt\">&nbsp; &nbsp; &nbsp; &nbsp; selection = ExtAPI.SelectionManager.CreateSelectionInfo(SelectionTypeEnum.GeometryEntities)<\/span><br \/><span style=\"font-size: 10pt\">&nbsp; &nbsp; &nbsp; &nbsp; selection.Ids = [load]<\/span><br \/><span style=\"font-size: 10pt\">&nbsp; &nbsp; &nbsp; &nbsp; pressure_3778.Location = selection<\/span><\/p>\n<p><span style=\"font-size: 10pt\">&nbsp; &nbsp; &nbsp; &nbsp; <strong>####ClearGeneratedData and Resolve for new condition.<\/strong><\/span><\/p>\n<p><span style=\"font-size: 10pt\"><strong>&nbsp; &nbsp; &nbsp; &nbsp; ####I thought this step would solve the warning, but not really.<\/strong><\/span><br \/><span style=\"font-size: 10pt\">&nbsp; &nbsp; &nbsp; &nbsp; solution.ClearGeneratedData()<\/span><br \/><span style=\"font-size: 10pt\">&nbsp; &nbsp; &nbsp; &nbsp; solution.Solve()<\/span><\/p>\n<p><span style=\"font-size: 10pt\">&nbsp; &nbsp; &nbsp; &nbsp; ####Later will be data collection&#8230;<\/span><\/p>\n<p>May I ask if anyone ever encounters this? I searched for the warning message on the forum, but there was not much answer. Thanks!<\/p>\n<p>&nbsp;<\/p>\n<p>Best,<\/p>\n<p>Ted<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-292398","topic","type-topic","status-closed","hentry","topic-tag-filerst-1","topic-tag-mechanical","topic-tag-script"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["3017","13386","254589","63948"],"_bbp_author_ip":["23.206.193.154"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["10930"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_notification_enabled":["404862","446160"],"_bbp_topic_id":["292398"],"_bbp_forum_id":["27791"],"_bbp_engagement":["3017","13386","63948","254589"],"_bbp_voice_count":["4"],"_bbp_reply_count":["5"],"_bbp_last_reply_id":["338348"],"_bbp_last_active_id":["338348"],"_bbp_last_active_time":["2023-12-13 08:39:44"]},"test":"sizhemandrew-cmu-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/292398","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\/292398\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=292398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}