FfdSolutionData#
- class pyaedt.modules.solutions.FfdSolutionData(eep_files, frequencies)[source]#
Provides antenna array far-field data.
Read embedded element patterns generated in HFSS and return the Python interface to plot and analyze the array far-field data.
- Parameters:
- eep_files
list
orstr
List of embedded element pattern files for each frequency. If data is only provided for a single frequency, then a string can be passed instead of a one-element list.
- frequencies
list
,str
,int
,or
float
List of frequencies. If data is only available for a single frequency, then a float or integer may be passed instead of a one-element list.
- eep_files
Examples
>>> import pyaedt >>> from pyaedt.modules.solutions import FfdSolutionData >>> app = pyaedt.Hfss(version="2023.2", design="Antenna") >>> setup_name = "Setup1 : LastAdaptive" >>> frequencies = [77e9] >>> sphere = "3D" >>> data = app.get_antenna_ffd_solution_data(frequencies,setup_name,sphere) >>> eep_files = data.eep_files >>> frequencies = data.frequencies >>> app.release_desktop() >>> farfield_data = FfdSolutionData(frequencies=frequencies, eep_files=eep_files) >>> farfield_data.polar_plot_3d_pyvista(quantity_format="dB10",qty_str="rETotal")
Methods
FfdSolutionData.combine_farfield
([phi_scan, ...])Compute the far field pattern calculated for a specific phi and theta scan angle requested.
Generate a PyVista
UnstructuredGrid
object that represents the far field mesh.FfdSolutionData.plot_2d_cut
([quantity, ...])Create a 2D plot of a specified quantity in Matplotlib.
Create a contour plot of a specified quantity.
FfdSolutionData.polar_plot_3d
([quantity, ...])Create a 3D plot of a specified quantity.
Create a 3D polar plot of the geometry with a radiation pattern in PyVista.
Attributes
Active frequency.
Frequency value in Hz.
List of additional magnitudes on each port.
Far field origin in meters.
List of additional phase offsets in degrees on each port.
Taper type.