Skip to content

Commit

Permalink
remove sign for coupling
Browse files Browse the repository at this point in the history
  • Loading branch information
otvam committed Jan 7, 2025
1 parent fb1bcb4 commit 0f1cb69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypeec/utils/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def _get_matrix_coupling(n_winding, RL_mat):
k_mat = np.zeros((n_winding, n_winding), dtype=np.float64)
for i in range(n_winding):
for j in range(n_winding):
k_mat[i, j] = RL_mat[i, j] / np.sqrt(RL_mat[i, i] * RL_mat[j, j])
k_mat[j, i] = RL_mat[j, i] / np.sqrt(RL_mat[i, i] * RL_mat[j, j])
k_mat[i, j] = np.abs(RL_mat[i, j]) / np.sqrt(RL_mat[i, i] * RL_mat[j, j])
k_mat[j, i] = np.abs(RL_mat[j, i]) / np.sqrt(RL_mat[i, i] * RL_mat[j, j])

return k_mat

Expand Down

0 comments on commit 0f1cb69

Please sign in to comment.