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

Simplify plot #288

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions examples/high_frequency/antenna/dipole.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,20 @@
new_report = hfss.post.reports_by_category.far_field(
Samuelopez-ansys marked this conversation as resolved.
Show resolved Hide resolved
"db(RealizedGainTotal)", hfss.nominal_adaptive, "3D"
)
new_report.variations = variations
new_report.primary_sweep = "Theta"
new_report.create("Realized2D")

# Generate multiple plots using the ``new_report`` object. This code generates
# 2D and 3D polar plots.

new_report.report_type = "3D Polar Plot"
new_report.secondary_sweep = "Phi"
new_report.create("Realized3D")

# This code generates 2D plots.

hfss.field_setups[2].phi_step = 90
new_report2 = hfss.post.reports_by_category.far_field(
"db(RealizedGainTotal)", hfss.nominal_adaptive, hfss.field_setups[2].name
)
new_report2.variations = variations
new_report2.primary_sweep = "Theta"
new_report2.create("Realized2D")

# Get solution data using the ``new_report`` object and postprocess or plot the
# data outside AEDT.

Expand Down
Loading