


{"id":41012,"date":"2020-02-17T18:09:26","date_gmt":"2020-02-17T18:09:26","guid":{"rendered":"\/forum\/forums\/topic\/how-to-automate-model-generation-in-spaceclaim-mechanical-fluent-via-python-scripts\/"},"modified":"2020-02-17T18:09:26","modified_gmt":"2020-02-17T18:09:26","slug":"how-to-automate-model-generation-in-spaceclaim-mechanical-fluent-via-python-scripts","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-automate-model-generation-in-spaceclaim-mechanical-fluent-via-python-scripts\/","title":{"rendered":"How to automate model generation in Spaceclaim\/Mechanical\/fluent via python scripts"},"content":{"rendered":"<p>I&#8217;m need to conduct a design of experiments study to map out a design space for a component. To do so, I need test 50+ similar geometries. Constructing 50+ FEA\/CFD&nbsp;models manually seems mind numbingly repetitive and time consuming so I&#8217;m looking to automate the process.<\/p>\n<p><\/p>\n<p>I&#8217;ve worked with ABAQUS which allowed the automation of pre and post processing operations via altering the ODB files in addition to a few python scripts.<\/p>\n<p><\/p>\n<p>Example of this automation here (<a href=\"http:\/\/ifcuriousthenlearn.com\/blog\/2015\/04\/02\/Abaqus-FEA-Scripting-with-python\/\">http:\/\/ifcuriousthenlearn.com\/blog\/2015\/04\/02\/Abaqus-FEA-Scripting-with-python\/<\/a>)<\/p>\n<p><\/p>\n<p>As a result I only had to go through the model setup once, after that, the python script read the geometry data from a csv file before completing the rest of the pre-processing, processing and post processing steps.&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p><span style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 15px;\">Can anyone share any links\/materials which demonstrate python scripting in workbench?<\/span><\/p>\n<p><\/p>\n<p><span style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 15px;\">Alternatively, any resources on how to achieve the same automation within Workbench (without python scripting) would also be greatly appreciated.&nbsp;<\/span><\/p>\n<p><\/p>\n<p><span style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 15px;\">&nbsp;<\/span><\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-41012","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["13192"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":[null],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0"],"_btv_view_count":["1550"],"_bbp_subscription":["235518"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["41012"],"_bbp_forum_id":["27789"],"_bbp_engagement":["62","200","155166"],"_bbp_voice_count":["3"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["105784"],"_bbp_last_active_id":["105784"],"_bbp_last_active_time":["2020-02-19 04:44:01"]},"test":"zizi96"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/41012","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\/41012\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=41012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}