{"id":196384,"date":"2025-03-13T09:54:36","date_gmt":"2025-03-13T09:54:36","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/knowledge\/?post_type=topic&#038;p=196384"},"modified":"2025-09-17T08:29:50","modified_gmt":"2025-09-17T08:29:50","slug":"script-tool-of-warping-from-deformed-mesh","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script-tool-of-warping-from-deformed-mesh\/","title":{"rendered":"Script tool of Warping from deformed mesh"},"content":{"rendered":"<div class=\"img-button\" style=\"display: flex\">\n<div class=\"image-align\" style=\"width: 350%\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-197078 size-large\" src=\"https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2025\/03\/Thumbnails_Warptool-1024x705.png\" alt=\"\" width=\"640\" height=\"441\" srcset=\"https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2025\/03\/Thumbnails_Warptool-1024x705.png 1024w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2025\/03\/Thumbnails_Warptool-300x207.png 300w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2025\/03\/Thumbnails_Warptool-768x529.png 768w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2025\/03\/Thumbnails_Warptool-1536x1058.png 1536w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2025\/03\/Thumbnails_Warptool-2048x1411.png 2048w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2025\/03\/Thumbnails_Warptool-24x17.png 24w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2025\/03\/Thumbnails_Warptool-36x25.png 36w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2025\/03\/Thumbnails_Warptool-48x33.png 48w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><a class=\"add-in\" style=\"text-align: center\" href=\"https:\/\/ansys13.ansys.com\/KnowledgeArticles\/Discovery\/Scripts%26Addins\/Warp%20bodies%20by%20mesh.dscript\">Download Script \u25ba<\/a><\/p>\n<\/div>\n<div style=\"padding-left: 20px\">\n<p><strong>Objective of this tool:<\/strong><\/p>\n<p>Create a deformed shape CAD model from base CAD model and .stl files for undeformed and deformed shapes.<\/p>\n<p>This tool can be used when applications within AEDT, such as HFSS, want to take into account deformed shapes calculated with FEM, such as Mechanical.<\/p>\n<p><strong>Supported Software Versions and License<\/strong><br \/>\nAnsys Discovery 2024R1 or later<\/p>\n<p>If used with Ansys Discovery 2025R1, Ansys Discovery Premium or higher of the license is required.<\/p>\n<p><strong>How to install:<\/strong><\/p>\n<p>Save the script attached to this article in the following directory.<br \/>\nThen you can find &#8220;Warp bodies by 2 meshes&#8221; in &#8220;Warp&#8221; Tab.<br \/>\nC:\\Users\\&lt;user name&gt;\\AppData\\Roaming\\Discovery\\Published Scripts<\/p>\n<p><strong>Note:<\/strong> If the downloaded file format is .zip, please manually change it to .dscript beforehand.<\/p>\n<p><strong>How to use:<\/strong><\/p>\n<p>In addition to the base CAD model, import .stl files for undeformed and deformed shapes and then click &#8220;Warp bodies by 2 meshes&#8221; in &#8220;Warp&#8221; Tab.<br \/>\nAfter clicking, follow the message at the bottom left of the screen.<\/p>\n<ol>\n<li>Select the body(s) you want to deform \u2192 check.<\/li>\n<li>Select the mesh before deformation as a faceted body (triple-click) \u2192 check<\/li>\n<li>Select the mesh after deformation as facet body (triple-click) \u2192 check<\/li>\n<\/ol>\n<p>Then new bodies will be generated with the names like (base_name)_warped<\/p>\n<p>To learn more about scripting check out the Discovery scripting learning content. To learn about creating custom experiences for your company contact your Ansys sales representative.<\/p>\n<div class=\"attachment\" style=\"background-color: #fedb8d;padding: 1%;font-weight: 300;height: auto!important;display: flex;border-radius: 15px;margin-bottom: 20px\"><span class=\"info\"> ?<\/span><b>THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OR SUPPORT OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. FULL DETAILS OF THE TERMS OF USE OF THIS SOFTWARE CAN BE FOUND <a href=\"https:\/\/www.ansys.com\/legal\/terms-and-conditions\">HERE<\/a>.<br \/>\n<\/b><\/div>\n<\/div>\n<\/div>\n","protected":false},"template":"","class_list":["post-196384","topic","type-topic","status-publish","hentry","topic-tag-deformed","topic-tag-discovery-geometry","topic-tag-discovery-modeling","topic-tag-dsscript","topic-tag-geometry","topic-tag-mesh","topic-tag-script","topic-tag-undeformed","topic-tag-warping"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_edit_lock":["1758097719:3452"],"_edit_last":["3452"],"_aioseo_title":[null],"_aioseo_description":[null],"_aioseo_keywords":["a:0:{}"],"_aioseo_og_title":[null],"_aioseo_og_description":[null],"_aioseo_og_article_section":[""],"_aioseo_og_article_tags":["a:0:{}"],"_aioseo_twitter_title":[null],"_aioseo_twitter_description":[null],"filter_by_optics_product":["Lumerical"],"_filter_by_optics_product":["field_64fb192ba3121"],"application_name":[""],"_application_name":["field_64a80903c8e15"],"family":[""],"_family":["field_64a809229a857"],"siebel_km_number":[""],"_siebel_km_number":["field_63ecbffce60db"],"salesforce_km_number":[""],"_salesforce_km_number":["field_63ecc018e60dc"],"km_published_date":[""],"_km_published_date":["field_64c77704499dd"],"product_version":[""],"_product_version":["field_64c776cb4fd2e"],"_bbp_forum_id":["160779"],"_bbp_topic_id":["197081"],"_bbp_author_ip":["2402:e280:3e3f:428:2c83:d92a:c4a9:60ab"],"_bbp_last_reply_id":["0"],"_bbp_last_active_id":["196386"],"_bbp_last_active_time":["2025-03-13 09:54:36"],"_bbp_reply_count":["0"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["0"],"_btv_view_count":["2651"]},"test":"solution"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/196384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":9,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/196384\/revisions"}],"predecessor-version":[{"id":197081,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/196384\/revisions\/197081"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=196384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}