Is it possible to export magnetic field Values Bx, By for every (x,y) meshelement in Maxwell2D


i tried to use the functions export_mesh_obj() and export_field_file_on_grid() with some options but i did not get a result. Result is always None

Example code:

import pyaedt as ed
app = ed.Maxwell2d(specified_version=specified_version, projectname=name_of_project, designname=name_of_design)
mesh ="Setup1", intrinsic_dict=None)


  • Giulia M.
    Giulia M. Member, Employee Posts: 18
    First Comment First Anniversary Ansys Employee First Answer

    Hi @WolfgangB,

    Have you tried using export_field_plot?, file_path)
    This return the exported file path.
    This file (which can be an .aedtplot or .case) contains all the information about mesh data and field data.

    Another way to do it is using the plot_field() which creates a plot using Pyvista (if you are interested more in the visualization of your results). This creates an object through which you can access PyVista functionalities + creates an .aedtplot file and exports the field plot as an image.
    Please look at this example to see how it is used:

    Hope this helps,