pyleecan.Methods.Output.Output.plot.Magnetic.plot_B_mesh module

plot_B_mesh(self, *args, indices=None, is_surf=False, is_radial=False, is_center=False, clim=None, field_name=None, group_names=None, save_path=None, is_show_fig=True, win_title=None, is_animated=False, title='', p=None, is_contour=True)[source]

Plot the contour of a field on a mesh using pyvista plotter.

Parameters:
  • self (MeshSolution) – a MeshSolution object

  • *args (list of strings) – List of axes requested by the user, their units and values (optional)

  • label (str) – a label

  • index (int) – an index

  • indices (list) – list of the points to extract (optional)

  • is_surf (bool) – field over outer surface

  • is_radial (bool) – radial component only

  • is_center (bool) – field at cell-centers

  • clim (list) – a list of 2 elements for the limits of the colorbar

  • field_name (str) – title of the field to display on plot

  • group_names (list) – a list of str corresponding to group name(s)

  • save_path (str) – path to save the figure

  • is_show_fig (bool) – To call show at the end of the method

  • is_animated (True to animate magnetic flux density) –