setup_y_connection#
- Maxwell2d.setup_y_connection(assignment=None)[source]#
Set up the Y connection.
- Parameters:
- assignment
list
,optional
List of windings. For example,
["PhaseA", "PhaseB", "PhaseC"]
. The default isNone
, in which case the design has no Y connection.
- assignment
- Returns:
- bool
True
when successful andFalse
when failed.
References
>>> oModule.SetupYConnection
Examples
Set up the Y connection for three existing windings named
PhaseA
,PhaseB
, andPhaseC
. This creates oneYConnection
group containing these three phases.>>> from ansys.aedt.core import Maxwell2d >>> m2d = Maxwell2d("Motor_EM_R2019R3.aedt") >>> m2d.set_active_design("Basis_Model_For_Test") >>> m2d.setup_y_connection(["PhaseA", "PhaseB", "PhaseC"]) >>> m2d.release_desktop(True, True)