assign_2way_coupling#
- Mechanical.assign_2way_coupling(setup=None, number_of_iterations=2)[source]#
Assign two-way coupling to a setup.
- Parameters:
- 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()