add_mesh_link#
- SetupHFSSAuto.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:
- design
str
Name of the source design.
- solution
str
,optional
Name of the source design solution in the format
"name : solution_name"
. IfNone
, the default value isname : LastAdaptive
.- parameters
dict
,optional
Dictionary of the “mapping” variables from the source design. If
None
, the default is appname.available_variations.nominal_w_values_dict.- project
str
,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
.
- design
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oModule.EditSetup
Examples
>>> from ansys.aedt.core import Maxwell3d >>> m3d = Maxwell3d(design="source_design") >>> m3d.create_setup(name="setup1") The target design is duplicated from the source design and made it active design. >>> m3d.duplicate_design(name="source_design", save_after_duplicate=True) The mesh link is assigned to the target design analysis setup. >>> m3d.setups[0].add_mesh_link(design="source_design", solution=m3d.nominal_adaptive) >>> m3d.release_desktop()