Skip to main content
Ctrl+K
PyAEDT - Home PyAEDT - Home
  • Getting started
  • User guide
  • API reference
  • Examples
  • Release notes
Ctrl+K
  • GitHub
  • Support
  • Getting started
  • User guide
  • API reference
  • Examples
  • Release notes
Ctrl+K
  • GitHub
  • Support

Section Navigation

  • Application and solvers
  • Material and stackup
  • 3D modeler
  • 2D modeler
  • Primitives
  • Modeler in HFSS 3D Layout
  • Modeler and components Circuit
  • Boundary objects
  • Mesh operations
  • Setup
    • SetupHFSS
    • SetupHFSSAuto
    • SetupSBR
    • SetupQ3D
    • SetupMaxwell
      • add_eddy_current_sweep
      • add_mesh_link
      • analyze
      • create
      • create_report
      • delete
      • delete_all_eddy_current_sweeps
      • disable
      • enable
      • enable_control_program
      • enable_expression_cache
      • export_matrix
      • get_profile
      • get_solution_data
      • jsonalize_tree
      • set_save_fields
      • start_continue_from_previous_setup
      • suppress_all
      • unsuppress_all
      • update
      • update_property
      • available_properties
      • children
      • command
      • default_intrinsics
      • is_solved
      • name
      • omodule
      • properties
      • props
      • sweeps
    • Setup
    • Setup3DLayout
    • SetupCircuit
  • Visualization
  • Logger
  • Optimetrics
  • Variable
  • Constants
  • Configuration files
  • Setup templates
  • Cable modeling
  • Filter design
  • Generic
  • PyAnsys
  • API reference
  • Setup
  • SetupMaxwell
  • add_mesh_link

add_mesh_link#

SetupMaxwell.add_mesh_link(design, solution=None, parameters=None, project='This Project*', force_source_to_solve=True, preserve_partner_solution=True, apply_mesh_operations=True, adapt_port=True)#

Import mesh from a source design solution to the target design.

Parameters:
designstr

Name of the source design from which the mesh is imported.

solutionstr, optional

Name of the source design solution in the format "name : solution_name". If None, the default value is taken from the nominal adaptive solution.

parametersdict, optional

Dictionary of the “mapping” variables from the source design. If None, the default is appname.available_variations.nominal_values.

projectstr, optional

Name of the project with the design. The default is "This Project*". However, you can supply the full path and name to another project.

force_source_to_solvebool, optional

Default value is True.

preserve_partner_solutionbool, optional

Default value is True.

apply_mesh_operationsbool, optional

Apply mesh operations in target design on the imported mesh. Default value is True.

adapt_portbool, optional

Perform port adapt/seeding in target solve setup. Default value is True.

Returns:
bool

True when successful, False when failed.

References

>>> oModule.EditSetup

Examples

>>> from ansys.aedt.core import Maxwell3d
>>> m3d = Maxwell3d(design="target_design")
>>> target_setup = m3d.create_setup(name="target_setup")
The target design is duplicated and made it active.
The duplicated design will be the source design from which the mesh is imported.
>>> m3d.duplicate_design(name="target_design", save_after_duplicate=True)
>>> m3d.rename_design(name="source_design")
>>> m3d.create_setup(name="source_setup")
Activate the target design.
>>> m3d.set_active_design("target_design")
The mesh link is assigned to the target design.
>>> target_setup.add_mesh_link("source_design")
>>> m3d.release_desktop()
On this page
  • add_mesh_link()
Edit on GitHub
  • Show Source

© Copyright (c) 2025 ANSYS, Inc. All rights reserved.

Created using Sphinx 8.1.3.

Built with the Ansys Sphinx Theme 1.5.3.
Last updated on