Skip to content

Commit 4a09129

Browse files
committed
Update documentation
1 parent 8301204 commit 4a09129

File tree

99 files changed

+236
-227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+236
-227
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

docs/_downloads/2ea50dd880fd49767fecc04ee5b04842/plot_flux_vector_ctrl_pmsyrm_thor_sat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252

5353
# Create the current map interpolator directly from the FEM data
5454
points = np.column_stack(
55-
(fem_flux_map.psi_s_dq.ravel().real, fem_flux_map.psi_s_dq.ravel().imag)
55+
(np.real(fem_flux_map.psi_s_dq.ravel()), np.imag(fem_flux_map.psi_s_dq.ravel()))
5656
)
5757
mdl_curr_map = LinearNDInterpolator(points, fem_flux_map.i_s_dq.ravel())
5858

5959
# Machine model parameters
6060
par = model.SaturatedSynchronousMachinePars(
6161
n_p=2,
6262
R_s=0.2,
63-
i_s_dq_fcn=lambda psi_s_dq: mdl_curr_map((psi_s_dq.real, psi_s_dq.imag)),
63+
i_s_dq_fcn=lambda psi_s_dq: mdl_curr_map((np.real(psi_s_dq), np.imag(psi_s_dq))),
6464
)
6565
machine = model.SynchronousMachine(par)
6666
k = 0.25 * nom.tau / base.w_M**2 # Quadratic load torque profile

0 commit comments

Comments
 (0)