


{"id":364259,"date":"2024-04-25T15:17:11","date_gmt":"2024-04-25T15:17:11","guid":{"rendered":"\/forum\/forums\/topic\/ansys-maxwell-mesh-element-access\/"},"modified":"2024-04-25T15:17:11","modified_gmt":"2024-04-25T15:17:11","slug":"ansys-maxwell-mesh-element-access","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ansys-maxwell-mesh-element-access\/","title":{"rendered":"Ansys Maxwell Mesh Element Access"},"content":{"rendered":"<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">Within an Ansys Maxwell python macro, I want to identify the Electric Field strength of a named object (be it a surface or volume object) on a per-element basis. Specifically, for a given named object, I want to obtain a list of each mesh element, in which I have the average E-field for that element and the area\/volume of that element.<\/p>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">&nbsp;<\/p>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">I have determined how to decode an aedtplt file to achieve this goal, but this requires manually aggregating individual nodes to create a shape, then calculating the area\/volume of that shape. Given the wide variety of shapes that the meshes can take (and the esoteric way they are defined) I would much rather just use an API call to directly obtain the area of the mesh element. I&#8217;m sure one must exist, but I have been unable to find documentation for this is the Ansys scripting guide.<\/p>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">&nbsp;<\/p>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">To reiterate, the python script API functions I need are:<\/p>\n<ol style=\"margin-left: .375in;direction: ltr;margin-top: 0in;margin-bottom: 0in;font-family: Calibri;font-size: 11.0pt;font-weight: normal;font-style: normal\" type=\"1\">\n<li style=\"margin-top: 0;margin-bottom: 0;vertical-align: middle\" value=\"1\"><span style=\"font-family: Calibri;font-size: 11.0pt;font-weight: normal;font-style: normal\">A way to select a named object and retrieve a list of mesh elements from that object (be it a volume or surface object)<\/span><\/li>\n<li style=\"margin-top: 0;margin-bottom: 0;vertical-align: middle\"><span style=\"font-family: Calibri;font-size: 11.0pt\">For each element, a function to retrieve the electric field strength of the element<\/span><\/li>\n<li style=\"margin-top: 0;margin-bottom: 0;vertical-align: middle\"><span style=\"font-family: Calibri;font-size: 11.0pt\">And also for each element, a function to retrieve the area\/volume of the element<\/span><\/li>\n<\/ol>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-364259","topic","type-topic","status-closed","hentry","topic-tag-AnsysMaxwellelectronics-1","topic-tag-area","topic-tag-e-field","topic-tag-mesh","topic-tag-meshed-volumes"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["346579","602"],"_bbp_author_ip":["23.206.193.59"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1042"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["364259"],"_bbp_forum_id":["27793"],"_bbp_engagement":["602","346579"],"_bbp_voice_count":["2"],"_bbp_reply_count":["4"],"_bbp_last_reply_id":["366309"],"_bbp_last_active_id":["366309"],"_bbp_last_active_time":["2024-05-09 15:35:01"]},"test":"c-milketi-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/364259","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\/364259\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=364259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}