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

Hertzina Dipole Wave Excitation #5679

Closed
1maslo opened this issue Jan 19, 2025 · 1 comment · Fixed by #5672
Closed

Hertzina Dipole Wave Excitation #5679

1maslo opened this issue Jan 19, 2025 · 1 comment · Fixed by #5672
Assignees
Labels
enhancement New features or code improvements

Comments

@1maslo
Copy link

1maslo commented Jan 19, 2025

Description of the feature

Hi,

is it possible to add Hertzian Dipole Source in to an HFSS design and than edit their sources using PyAEDT? Finally I solved it using following workaround:

hfss = Hfss(version="2024.2", non_graphical=True, design = "A", project="B", solution_type="Modal")
oDesign = hfss.odesign
oModule = oDesign.GetModule("BoundarySetup")
oModule.AssignHertzianDipoleWave(
    [
        "NAME:IncHDWave1",
        "IsCartesian:="	, True,
        "EoX:="			, "1",
        "EoY:="			, "0",
        "EoZ:="			, "0",
        "kX:="			, "0",
        "kY:="			, "0",
        "kZ:="			, "1",
        "OriginX:="		, "350mm",
        "OriginY:="		, "0mm",
        "OriginZ:="		, "0mm",
        "SphereRadius:="	, "10mm",
        "IsElectricDipole:="	, False
    ])
oModule = oDesign.GetModule("Solutions")
oModule.EditSources(
    [
        [
            "FieldType:="	, "TotalFields",
            "IncludePortPostProcessing:=", False,
            "SpecifySystemPower:="	, False
        ],
        [
            "Name:="		, "IncHDWave1",
            "Magnitude:="		, "0.314Vm",
            "Phase:="		, "0deg"
        ]
    ])

Is it the correct way?

Keep doing great job! Thanks!
Maslo

Steps for implementing the feature

No response

Useful links and references

No response

@1maslo 1maslo added the enhancement New features or code improvements label Jan 19, 2025
@Samuelopez-ansys
Copy link
Member

Hi @1maslo ,

This is implemented on this pull request:

#5672

It will be merged soon.

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

Successfully merging a pull request may close this issue.

2 participants