FfdSolutionData#
- class ansys.aedt.core.visualization.advanced.farfield_visualization.FfdSolutionData(input_file, frequency=None, variation=None, model_info=None, incident_power=None, touchstone_file=None)#
Provides antenna far-field data.
Read element pattern information in a JSON file generated by
FfdSolutionDataExporter()
and return the Python interface to plot and analyze the far-field data.- Parameters:
- input_file
str
Metadata information in a JSON file.
- frequency
float
,optional
Active frequency in hertz (Hz). The default is
None
, in which case the first frequency is active.- variation
str
,optional
Label to identify corresponding variation.
- model_info
dict
,optional
- incident_power
dict
,optional
Dictionary with information of the incident power for each frequency. The default is
None
, in which case an empty dictionary is applied. From AEDT 2024.1, this information is available from the XML input file. For example, the dictionary format for a two element farfield data = incident_power[“1GHz”] data = [1, 0.99]- touchstone_file
str
,optional
Touchstone file name. The default is
None
.
- input_file
Examples
>>> from ansys.aedt.core >>> from ansys.aedt.core.visualization.advanced.farfield_visualization import FfdSolutionData >>> app = ansys.aedt.core.Hfss(version="2023.2", design="Antenna") >>> data = app.get_antenna_data() >>> metadata_file = data.metadata_file >>> app.release_desktop() >>> farfield_data = FfdSolutionData(input_file=metadata_file) >>> farfield_data.plot_3d(quantity_format="dB10")
Methods
FfdSolutionData.combine_farfield
([phi_scan, ...])Compute the far field pattern calculated for a specific phi and theta scan angle requested.
Compute the accepted power from active s-parameters and incident power.
Generate a PyVista
UnstructuredGrid
object that represents the far field mesh.Get port indices.
FfdSolutionData.plot_3d
([quantity, ...])Create a 3D polar plot of the geometry with a radiation pattern in PyVista.
FfdSolutionData.plot_3d_chart
([quantity, ...])Create a 3D chart of a specified quantity in Matplotlib.
FfdSolutionData.plot_contour
([quantity, ...])Create a contour plot of a specified quantity in Matplotlib.
FfdSolutionData.plot_cut
([quantity, ...])Create a 2D plot of a specified quantity in Matplotlib.
Attributes
Total accepted power in watts.
Accepted power per element in watts.
Active s-parameters.
Available port names.
File information.
Farfield data.
Available frequencies.
Active frequency.
Total incident power in watts.
Incident power per element in watts.
Input file.
Magnitude weight applied on each port.
Antenna metadata.
Far field origin in meters.
Phase offset in degrees on each port.
Phi scan angle in degrees.
Total radiated power in watts.
Radiated power per element in watts.
Passive s-parameters.
Taper type.
Theta scan angle in degrees.
Touchstone data.
Weight.