Skip to content

Commit

Permalink
added phase parameter to assign_winding (#3658)
Browse files Browse the repository at this point in the history
  • Loading branch information
IreneWoyna authored Sep 27, 2023
1 parent cebebea commit f5395dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyaedt/maxwell.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ def assign_matrix(
>>> m2d.assign_matrix(sources=['1V'], group_sources=['0V'], matrix_name="Matrix1")
"""

sources = self.modeler.convert_to_selections(sources, True)
if self.solution_type in ["Electrostatic", "ACConduction", "DCConduction"]:
turns = ["1"] * len(sources)
Expand Down Expand Up @@ -1029,6 +1030,7 @@ def assign_winding(
ind=0,
voltage=0,
parallel_branches=1,
phase=0,
name=None,
):
"""Assign a winding to a Maxwell design.
Expand All @@ -1054,6 +1056,8 @@ def assign_winding(
Voltage value. The default is ``0``.
parallel_branches : int, optional
Number of parallel branches. The default is ``1``.
phase : float, optional
Value of the phase delay in degrees. The default is ``0``.
name : str, optional
Name of the boundary. The default is ``None``.
Expand Down Expand Up @@ -1081,6 +1085,7 @@ def assign_winding(
"Inductance": self.modeler._arg_with_dim(ind, "H"),
"Voltage": self.modeler._arg_with_dim(voltage, "V"),
"ParallelBranchesNum": str(parallel_branches),
"Phase": self.modeler._arg_with_dim(phase, "deg"),
}
)
bound = BoundaryObject(self, name, props, "Winding")
Expand Down

0 comments on commit f5395dd

Please sign in to comment.