CFD Online Logo CFD Online URL
Home > Forums > Mesh Generation & Pre-Processing Software > ANSA

Ansa duplicate elements

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

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

Old   October 19, 2020, 06:47
New Member
Join Date: May 2014
Posts: 21
Rep Power: 10 is on a distinguished road
Hi, you may try the following:

# 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.')
        print('No duplicate elements found.')

def main():

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


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 05:37
What are entities, elements, property, ENT and PID in ANSA? granzer ANSA 1 January 17, 2020 13:03
ANSA says " 2nd Order elements are not supported." Sheldon Lee ANSA 3 August 4, 2017 11:49
Ansys SIG$ILL error loth ANSYS 3 December 24, 2015 06:31
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19

All times are GMT -4. The time now is 23:46.