plotting all possible S parameters on the same create_report() #5062
-
I am attempting to plot all possible s parameters and activeS parameters on respsectively the same create_report() (one for active and one for regualr s parameters) for multiple iterations of different arrays however I have not found a way to plot "All" possible traces of the S parameter, as this would simplify all my post-processing a LOT so far I have got this to work
I attempted to use the usual "db(S(:,:))" and "db(S(,:)" for listing all - but I am not sure if pyaedt supports this feature or not or if there is a way to select and plot "all" of a catagory rather than specifying them individually |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I managed to fix it by doing this to get the "expression" wanted if anyone else was intrested Active_S = add.post.available_report_quantities( list = Active_S final = [] add.post.create_report(expressions=final, |
Beta Was this translation helpful? Give feedback.
I managed to fix it by doing this to get the "expression" wanted if anyone else was intrested
Active_S = add.post.available_report_quantities(
report_category="Active S Parameter",
display_type=None,
solution="Setup1 : Sweep1",
quantities_category="Active S Parameter"
)
list = Active_S
prefix = "dB("
suffix = ")"
final = []
for i in list:
final.append(prefix+i+suffix)
print(final)
add.post.create_report(expressions=final,
setup_sweep_name= "Setup1 : Sweep1",
#primary_sweep_variable="Freq", # default is "Freq"
#secondary_sweep_variable=None, # for 3D plots
report_category="Modal Solution Data",
plot_name="Active S Parameters - Sweep1",
plot_type="Rectangular Plot",
context="2D")