We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Discovery Add-ins

Discovery Add-ins

Script tool of Warping from deformed mesh

    • SolutionSolution
      Participant

      Objective of this tool:

      Create a deformed shape CAD model from base CAD model and .stl files for deformed and undeformed shapes.

      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.

      How to install:

      Save the script attached to this article in the following directory.

      Then you can find “Warp bodies by 2 meshes” in “Script Tools” Tab.

      C:\Users\\AppData\Roaming\Discovery\Published Scripts

      How to use:

      Import .stl files for deformed and undeformed shapes and then click “Warp bodies by 2 meshes” in “Script Tools” Tab.

      After clicking, follow the message at the bottom left of the screen.

      1. Select the body(s) you want to deform → check.
      2. Select the mesh before deformation as a faceted body (triple-click) → check
      3. Select the mesh after deformation as facet body (triple-click) → check

      Then new bodies will be generated with the names like (base_name)_warped

      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.

      ?THE SOFTWARE IS PROVIDED “AS IS”, 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 HERE.