


{"id":42373,"date":"2020-04-02T16:16:45","date_gmt":"2020-04-02T16:16:45","guid":{"rendered":"\/forum\/forums\/topic\/addition-and-subtraction-of-surfaces\/"},"modified":"2020-04-02T16:16:45","modified_gmt":"2020-04-02T16:16:45","slug":"addition-and-subtraction-of-surfaces","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/addition-and-subtraction-of-surfaces\/","title":{"rendered":"Addition and subtraction of surfaces"},"content":{"rendered":"<p>Hello ANSYS,<\/p>\n<p>I have a moderately complicated surface I would like to integrate over in the fields calculator. I am familiar with how to integrate an expression over a surface in the fields calculator, e.g.<\/p>\n<p>Scl: Integrate(Surface(object), expression)<\/p>\n<p>but the surface I would like to integrate over does not directly correspond to the surfaces of any objects in my model.I&#8217;ll discuss a simplified example of what I mean:<\/p>\n<p>Suppose I have a cylindrical cavity. I would like to integrate some quantity (such as the square of the magnetic field) over the surface of that cavity, but I would like to exclude the top base of the cylinder from the integral. I could achieve this by creating a non-model circular surface object which is only the top base of that cylinder, then in the fields calculator I could perform two integrals and take their difference.<\/p>\n<p>Scl: Integrate(Surface(cylinder), expression) &#8211; Integrate(Surface(circle), expression)<br \/>or more accurately in the field calculator syntax,<br \/>Scl: -(Integrate(Surface(cylinder), expression), Integrate(Surface(circle), expression))<\/p>\n<p>But for moderately more complicated geometries, this approach becomes cumbersome, such as if I would like to integrate over a surface which requires me to combine 5 or so surface integrals in the fields calculator.<\/p>\n<p>Is there a way to either<\/p>\n<p>a. create a non-model composite surface object, such as a cylinder with an open top<\/p>\n<p>or<\/p>\n<p>b. Define a composite geometry expression in the fields calculator so that I could say something like the following?<\/p>\n<p>Scl: Integrate(Surface(cylinder) &#8211; Surface(circle), expression)<br \/>or more similar to fields calculator syntax,<br \/>Scl: Integrate(-(Surface(cylinder), Surface(circle)), expression))<\/p>\n<p>Thanks,<br \/>Alex<\/p>\n","protected":false},"template":"","class_list":["post-42373","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["14553"],"_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":["2412"],"_bbp_subscription":["248797"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["42373"],"_bbp_forum_id":["27793"],"_bbp_engagement":["23","174585"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["110916"],"_bbp_last_active_id":["110916"],"_bbp_last_active_time":["2020-04-10 22:41:08"]},"test":"apr37"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/42373","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\/42373\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=42373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}