assign_2way_coupling#

Mechanical.assign_2way_coupling(setup=None, number_of_iterations=2)[source]#

Assign two-way coupling to a setup.

Parameters:
setupstr, optional

Name of the setup. The default is None, in which case the active setup is used.

number_of_iterationsint, optional

Number of iterations. The default is 2.

Returns:
bool

True when successful, False when failed.

References

>>> oModule.AddTwoWayCoupling

Examples

>>> from ansys.aedt.core import Mechanical
>>> mech = Mechanical()
>>> setup = mech.create_setup()
>>> mech.assign_2way_coupling(setup.name, 1)
>>> mech.release_desktop()