Skip to content

How to generate reports for HFSS Antenna Parameters? #4949

Closed Answered by Samuelopez-ansys
wsp6 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @wsp6 ,

This code should work:

import pyaedt

app = pyaedt.Hfss(version="2024.1", design="HFSSDesign1")

# Get report object
setups = app.existing_analysis_sweeps
infinite_spheres = app.field_setup_names
new_report = app.post.reports_by_category.antenna_parameters("dB(RadiationEfficiency)", 
                                                             infinite_sphere=infinite_spheres[0],
                                                             setup=setups[1])

# Here you can modify the new_report object. For instance:
# new_report.report_type = "Data Table"

# Create report
new_report.create()

# Get data
data = new_report.get_solution_data()
data.data_real()

app.release_desktop()

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@wsp6
Comment options

@Samuelopez-ansys
Comment options

@wsp6
Comment options

@Samuelopez-ansys
Comment options

@wsp6
Comment options

Answer selected by Samuelopez-ansys
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Vamsi-Yaddanapudi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants