CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > ANSA

Ansa duplicate elements

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2020, 05:48
Default Ansa duplicate elements
  #1
New Member
 
Sumit Patel
Join Date: Mar 2020
Posts: 8
Rep Power: 6
sumpate is on a distinguished road
Hello..how to find duplicate elements through script in ansa ??
sumpate is offline   Reply With Quote

Old   October 19, 2020, 05:47
Default
  #2
New Member
 
Join Date: May 2014
Posts: 21
Rep Power: 12
greg.cfd is on a distinguished road
Hi, you may try the following:


Code:
# PYTHON script
import os
import ansa
from ansa import *
from ansa.base import checks, Check

def checkDuplicate():
    
    dubl = checks.general.DuplicateElements()#takes no arguments
    dubl.separate_by = "GEOM/FE"
    
    res = dubl.execute(exec_mode = Check.EXEC_ON_VIS, report = Check.REPORT_NONE)

    report = res[0]
    if report.issues:
        for issue in report.issues:
            title = issue.description
            print('Duplicate elements found. Applying fix.')
            issue.try_fix()
    else:
        print('No duplicate elements found.')


def main():
    checkDuplicate()


if __name__ == '__main__':
    main()
greg.cfd is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 04:37
What are entities, elements, property, ENT and PID in ANSA? granzer ANSA 1 January 17, 2020 12:03
ANSA says " 2nd Order elements are not supported." Sheldon Lee ANSA 3 August 4, 2017 10:49
Ansys SIG$ILL error loth ANSYS 3 December 24, 2015 05:31
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 08:58.