Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PML method #5677

Closed
ricklyon opened this issue Jan 19, 2025 · 2 comments
Closed

Add PML method #5677

ricklyon opened this issue Jan 19, 2025 · 2 comments
Labels
enhancement New features or code improvements

Comments

@ricklyon
Copy link

Description of the feature

There doesn't appear to be a way to add a perfectly matched layer (PML) to a HFSS design, without resorting to using the GUI. It'd be very helpful to have something similar to the PML Wizard available in the API.

Steps for implementing the feature

No response

Useful links and references

No response

@ricklyon ricklyon added the enhancement New features or code improvements label Jan 19, 2025
@ricklyon ricklyon changed the title add PML method Add PML method Jan 19, 2025
@1maslo
Copy link

1maslo commented Jan 19, 2025

I have just used "hfss.create_open_region(frequency="1GHz", boundary="PML", apply_infinite_ground=False)" and it worked just fine for me, see my example below:

from ansys.aedt.core import Hfss

hfss = Hfss(version="2024.2", non_graphical=False, design = "A", project="B", solution_type="Modal")

modeler = hfss.modeler
modeler.create_box([-500, -500, -500], [1000, 1000, 1000], "TestBox")

hfss.create_open_region(frequency="1GHz", boundary="PML", apply_infinite_ground=False)

hfss.save_project(f)
hfss.close_project()

Isn't it the right way?

@ricklyon
Copy link
Author

Yes, that will work, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements
Projects
None yet
Development

No branches or pull requests

2 participants