


{"id":161787,"date":"2021-08-31T12:33:46","date_gmt":"2021-08-31T12:33:46","guid":{"rendered":"\/forum\/forums\/topic\/how-to-insert-a-matlab-script-into-mechanical\/"},"modified":"2021-09-01T12:06:56","modified_gmt":"2021-09-01T12:06:56","slug":"how-to-insert-a-matlab-script-into-mechanical","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-insert-a-matlab-script-into-mechanical\/","title":{"rendered":"How to insert a Matlab script into Mechanical"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>Good afternoon,<\/p>\n<p>I&#039;m trying to simulate the effect a TNT explosion has on a plate. To do that I&#039;d like to apply to each element of the shell plate a pressure by using a .csv file containing the pressure, the time, and the coordinates of the single element on which I want to apply it. I know how to manage a single .csv file and set it as input, but since my plate is a square with 40&#215;40 elements this would take too much time and thus I need to optimize it. I know how to programme on Matlab, so I wonder if it&#039;s possible to do a script in Matlab that automatically selects a .csv file and relates it to the correct element, and import it into Ansys. <\/p>\n<p>The only alternative would be to programme directly inside Ansys (by using Commands?) but I don&#039;t know how to do it and I think it would be too time consuming for what I need to do.<\/p>\n<p>Thanks in advance to whoever can help me,<\/p>\n<p>Davide<\/p>\n","protected":false},"template":"","class_list":["post-161787","topic","type-topic","status-closed","hentry","topic-tag-ansys-mechanical","topic-tag-explicit-dynamics","topic-tag-mechanical"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":[""],"_bbp_view_count":["236"],"_bbp_likes_count":["0","0"],"_bbp_forum_subforum_count":["0"],"_btv_view_count":["330"],"_bbp_subscription":["239359"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["161787"],"_bbp_forum_id":["27814"],"_bbp_engagement":["240","221230"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["190450"],"_bbp_last_active_id":["190450"],"_bbp_last_active_time":["2021-09-01 12:06:56"]},"test":"davide-giulianopolimi-it"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/161787","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\/161787\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=161787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}