You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current code for Mirrored Coil in machine.py is wrong.
It creates two coils at Z (instead of one coil at +- Z)
The code below fixes the issue (made coil L be at -Z instead of Z)
defMirroredCoil(
R, Z, current=0.0, turns=1, control=True, area=AreaCurrentLimit(), symmetric=True
):
""" Create a pair of coils, at +/- Z If symmetric = True then current is in the same direction (in series); if symmetric = False then current is in the opposite direction """returnCircuit(
[
(
"U",
Coil(R, Z, current=current, turns=turns, control=control, area=area),
1.0,
),
(
"L",
Coil(R, -Z, current=current, turns=turns, control=control, area=area),
1.0ifsymmetricelse-1.0,
),
]
)
The text was updated successfully, but these errors were encountered:
The current code for Mirrored Coil in machine.py is wrong.
It creates two coils at Z (instead of one coil at +- Z)
The code below fixes the issue (made coil L be at -Z instead of Z)
The text was updated successfully, but these errors were encountered: