plot_animated_field#
- PostProcessor.plot_animated_field(quantity, object_list, plot_type='Surface', setup_name=None, intrinsics=None, variation_variable='Phi', variation_list=['0deg'], view='isometric', plot_label=None, show=True, scale_min=None, scale_max=None, plot_cad_objs=True, log_scale=True, zoom=None, export_gif=False, export_path='', force_opacity_value=0.1, dark_mode=False, show_grid=False, show_bounding=False)[source]#
Create an animated field plot using Python PyVista and export to a gif file.
Note
The PyVista module rebuilds the mesh and the overlap fields on the mesh.
- Parameters:
- quantity
str
Quantity to plot (e.g.
"Mag_E"
).- object_list
list
,str
List of objects or faces to which apply the Field Plot.
- plot_type
str
,optional
Plot type. Options are
"Surface"
,"Volume"
,"CutPlane"
.- setup_name
str
,optional
Setup and sweep name on which create the field plot. Default is None for nominal setup usage.
- intrinsics
dict
, optional. Intrinsic dictionary that is needed for the export. The default is
None
which try to retrieve intrinsics from setup.- variation_variable
str
,optional
Variable to vary. The default is
"Phi"
.- variation_list
list
,optional
List of variation values with units. The default is
["0deg"]
.- view
str
,optional
View to export. Options are
"isometric"
,"xy"
,"xz"
,"yz"
.- showbool,
optional
Export Image without plotting on UI.
- scale_min
float
,optional
Fix the Scale Minimum value.
- scale_max
float
,optional
Fix the Scale Maximum value.
- plot_cad_objsbool,
optional
Whether to include objects in the plot. The default is
True
.- log_scalebool,
optional
Whether to plot fields in log scale. The default is
True
.- zoom
float
,optional
Zoom factor.
- export_gifbool,
optional
Whether to export an animated gif or not. The default is
False
.- export_path
str
,optional
Image export path. Default is
None
to notworking_directory
will be used to save the image.- force_opacity_value
float
,optional
Opacity value between 0 and 1 to be applied to all model. If None aedt opacity will be applied to each object.
- dark_modebool,
optional
Whether to display the model in dark mode or not. The default is
False
.- show_gridbool,
optional
Whether to display the axes grid or not. The default is
False
.- show_boundingbool,
optional
Whether to display the axes bounding box or not. The default is
False
.
- quantity
- Returns:
pyaedt.generic.plot.ModelPlotter
Model Object.