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: 22
    5 Answers 10 Comments First Anniversary Ansys Employee
    ✭✭✭✭
    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)