create_fieldplot_line_traces#

PostProcessor3DLayout.create_fieldplot_line_traces(seeding_faces, in_volume_tracing_objs=None, surface_tracing_objs=None, setup=None, intrinsics=None, plot_name=None, field_type='DC R/L Fields')#

Create a field plot of the line.

Parameters:
seeding_faceslist

List of seeding faces.

in_volume_tracing_objslist

List of the in-volume tracing objects.

surface_tracing_objslist

List of the surface tracing objects.

setupstr, optional

Name of the setup in the format "setupName : sweepName". The default is None.

intrinsicsdict, str, optional

Intrinsic variables required to compute the field before the export. These are typically: frequency, time and phase. It can be provided either as a dictionary or as a string. If it is a dictionary, keys depend on the solution type and can be expressed in lower or camel case as: - "Freq" or "Frequency". - "Time". - "Phase". If it is a string, it can either be "Freq" or "Time" depending on the solution type. The default is None in which case the intrinsics value is automatically computed based on the setup.

plot_namestr, optional

Name of the field plot to create. The default is None.

field_typestr, optional

Field type to plot. Valid only for Q3D Field plots.

Returns:
type

Plot object.

References

>>> oModule.CreateFieldPlot

Examples

>>> from ansys.aedt.core import Maxwell2d
>>> aedtapp = Maxwell2d()
>>> # Intrinsics is provided as a dictionary.
>>> intrinsics = {"Freq": "5GHz", "Phase": "180deg"}
>>> min_value = aedtapp.post.get_scalar_field_value(quantity_name, "Minimum", setup_name, intrinsics=intrinsics)
>>> plot1 = aedtapp.post.create_fieldplot_line_traces(seeding_faces=["Ground", "Electrode", "Region"],
>>>                                                   in_volume_tracing_objs="Region",
>>>                                                   plot_name="LineTracesTest",
>>>                                                   intrinsics=intrinsics)
>>> # Intrinsics is provided as a string. Phase is automatically assigned to 0deg.
>>> min_value = aedtapp.post.get_scalar_field_value(quantity_name, "Minimum", setup_name, intrinsics="5GHz")
>>> plot1 = aedtapp.post.create_fieldplot_line_traces(seeding_faces=["Ground", "Electrode", "Region"],
>>>                                                   in_volume_tracing_objs="Region",
>>>                                                   plot_name="LineTracesTest",
>>>                                                   intrinsics="200Hz")