export_mesh_obj#
- PostProcessor.export_mesh_obj(setup=None, intrinsics=None, export_air_objects=False, on_surfaces=True)[source]#
Export the mesh in AEDTPLT format. The mesh has to be available in the selected setup. If a parametric model is provided, you can choose the mesh to export by providing a specific set of variations. This method applies only to
Hfss
,Q3d
,Q2D
,Maxwell3d
,Maxwell2d
,Icepak
andMechanical
objects. This method is callingcreate_fieldplot_surface
to create a mesh plot andexport_field_plot
to export it asaedtplt
file.- Parameters:
- setup
str
,optional
Name of the setup. The default is
None
, in which case thenominal_adaptive
setup is used. Be sure to build a setup string in the form of"SetupName : SetupSweep"
, whereSetupSweep
is the sweep name to use in the export orLastAdaptive
.- intrinsics
dict
, optional. Intrinsic dictionary that is needed for the export. The default is
None
, which assumes that no variables are present in the dictionary or nominal values are used.- export_air_objectsbool,
optional
Whether to include vacuum objects for the copied objects. The default is
False
.- on_surfacesbool,
optional
Whether to create a mesh on surfaces or on the volume. The default is
True
.
- setup
- Returns:
str
File Generated with full path.
Examples
>>> from pyaedt import Hfss >>> hfss = Hfss() >>> hfss.analyze() >>> # Export report using defaults. >>> hfss.post.export_mesh_obj(setup=None,intrinsics=None) >>> # Export report using arguments. >>> hfss.post.export_mesh_obj(setup="MySetup : LastAdaptive",intrinsics={"w1":"5mm", "l1":"3mm"})