How to remove all boundaries in PyAEDT?

How can I remove all boundary conditions with PyAEDT script? In AEDT GUI, I can right click on the "Thermal" in the "Project Manager" panel and select "Delete All" in the context menu. All boundary conditions is then removed in a second. Is there a function in PyAEDT?

Tagged:

Best Answer

  • Samuel Lopez
    Samuel Lopez Member, Employee Posts: 20
    First Anniversary Ansys Employee 5 Likes First Answer
    Answer ✓

    Hi @runze.k

    You can use the AEDT API to do it, please submit an issue on GitHub if you want a PyAEDT command.

    import pyaedt
    q = pyaedt.Hfss(specified_version="2023.2", student_version=False)
    q.oboundary.DeleteAllBoundaries()
    q.release_desktop(False, False)