generate_mesh#

Mesh.generate_mesh(name)#

Generate the mesh for a design.

Parameters:
namestr

Name of the simulation setup.

Returns:
bool

True when successful, False when failed.

References

>>> oDesign.GenerateMesh

Examples

>>> from ansys.aedt.core import Maxwell3d
>>> m3d = Maxwell3d()
>>> m3d.create_setup(setupname="Setup1")
>>> m3d.mesh.assign_length_mesh(maxlength=5, maxel="None")
>>> m3d.mesh.generate_mesh("Setup1")