


{"id":164263,"date":"2021-11-24T17:28:44","date_gmt":"2021-11-24T17:28:44","guid":{"rendered":"\/forum\/forums\/topic\/parametric-study-with-user-defined-primitive\/"},"modified":"2021-11-29T11:10:28","modified_gmt":"2021-11-29T11:10:28","slug":"parametric-study-with-user-defined-primitive","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/parametric-study-with-user-defined-primitive\/","title":{"rendered":"Parametric study with user defined primitive"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>Dear Reader, <\/p>\n<p>I am trying to run a simulation with a user defined primitive while varying a parameter, I use the optimetrics module but without a clear success. <\/p>\n<p>So, I had defined a python script as my userDefinedPrimitive to generate an object and I can run a simulation without any problem. The issue seems to appear when a new variation is set. The message Manager shows this set of errors: <\/p>\n<p>&#039;&#039;&#039;&#039;&#039;&#039;&#039;&#039;<\/p>\n<p>&nbsp;&nbsp;[info] Parametric Analysis on ParametricSetup1 has been started. (4:33:57&nbsp;nov. 24, 2021)<\/p>\n<p>&nbsp;&nbsp;[info] A variation (width=&#039;0.008mm&#039;) has been requested using the following machines: Local Machine. (4:33:59&nbsp;nov. 24, 2021)<\/p>\n<p>&nbsp;&nbsp;&nbsp;[info] Verify conduction path: Conduction path validate success. (4:34:06&nbsp;nov. 24, 2021)<\/p>\n<p>&nbsp;&nbsp;&nbsp;[info] A variation (width=&#039;0.009mm&#039;) has been requested using the following machines: Local Machine. (4:40:22&nbsp;nov. 24, 2021)<\/p>\n<p>&nbsp;&nbsp;&nbsp;[error] FormatException: Le format de la cha&icirc;ne d&#039;entr&eacute;e est incorrect. &#8212;-&nbsp;&nbsp;(4:40:23&nbsp;nov. 24, 2021)<\/p>\n<p>&nbsp;&nbsp;&nbsp;[error] Body could not be created for part RectangularCoil1 because of invalid parameters of this part or some of its parent part\/coordinate system. (4:40:23&nbsp;nov. 24, 2021)<\/p>\n<p>&nbsp;&nbsp;&nbsp;[error] Null body found for part RectangularCoil1. (4:40:23&nbsp;nov. 24, 2021)<\/p>\n<p>&#039;&#039;&#039;&#039;&#039;&#039;&#039;<\/p>\n<p>and fail for all the subsecent variations. After this, I can rerun the analyse on the optimetrics and it will start to compute the next variation (width=&#039;0.009mm&#039; in this example). but will still fail after. <\/p>\n<p>I am wondering if this error : FormatException is linked with the UDPPrimitiveParameterDefinition2 function.<\/p>\n<p>Is there a way to get rid of this error? <\/p>\n<p>Best regards,<\/p>\n<p>R.<\/p>\n","protected":false},"template":"","class_list":["post-164263","topic","type-topic","status-closed","hentry","topic-tag-error","topic-tag-optimetric-1","topic-tag-optimetrics","topic-tag-python-scripting","topic-tag-userdefinedfunction-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":[""],"_bbp_view_count":["296"],"_bbp_likes_count":["0","0"],"_bbp_forum_subforum_count":["0"],"_btv_view_count":["2452"],"_bbp_subscription":["241432"],"_bbpmt_movedon":["2022-07-01 16:40:37"],"_bbpmt_movedfrom":["151970"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["164263"],"_bbp_forum_id":["27793"],"_bbp_engagement":["28551","241432"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["198602"],"_bbp_last_active_id":["198602"],"_bbp_last_active_time":["2021-11-29 11:10:28"]},"test":"remy-soucaillecrivasense-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/164263","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\/164263\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=164263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}