From 493dd6ae2dd8df0fb5415d07fefe448ff0df9d33 Mon Sep 17 00:00:00 2001
From: GitHub Action T_s (float) – Sampling period (s). T_s (float) – Sampling period (s). u – Controller output. Bases: Bases: Base class for control systems. This base class provides typical functionalities for control systems. It
can be used as a template for implementing custom controllers. An instance
@@ -606,7 +606,7 @@ T_s (float) – Sampling period (s). T_s (float) – Sampling period (s). k_p (float) – Proportional gain. k_i (float) – Integral gain. k_t (float, optional) – Reference-feedforward gain. The default is k_p. max_u (float, optional) – Maximum controller output. The default is inf. k_p (float) – Proportional gain. k_i (float) – Integral gain. k_t (float, optional) – Reference-feedforward gain. The default is k_p. max_u (float, optional) – Maximum controller output. The default is inf. u – Controller output. k_comp (float, optional) – Compensation factor for the delay effect on the voltage vector angle.
+ k_comp (float, optional) – Compensation factor for the delay effect on the voltage vector angle.
The default is 1.5. u_cs0 (float, optional) – Initial voltage (V) in stationary coordinates. This is used to compute
+ u_cs0 (float, optional) – Initial voltage (V) in stationary coordinates. This is used to compute
the realized voltage. The default is 0. overmodulation (str, optional) – Select one of the following overmodulation methods: minimum-magnitude-
+ overmodulation (str, optional) – Select one of the following overmodulation methods: minimum-magnitude-
error (“MME”); minimum-phase-error (“MPE”); six-step (“six_step”). The
default is “MME”. T_s (float) – Sampling period (s). ref_u_cs (complex) – Converter voltage reference (V) in stationary coordinates. u_dc (float) – DC-bus voltage (V). w (float) – Angular speed of synchronous coordinates (rad/s). T_s (float) – Sampling period (s). ref_u_cs (complex) – Converter voltage reference (V) in stationary coordinates. u_dc (float) – DC-bus voltage (V). w (float) – Angular speed of synchronous coordinates (rad/s). ref_u_cs – Modified converter voltage reference (V) in stationary coordinates. References rate_limit (float, optional) – Rate limit. The default is inf. rate_limit (float, optional) – Rate limit. The default is inf. N (int, optional) – Amount of the counter quantization levels. The default is 2**12. return_complex (bool, optional) – Complex switching state space vectors are returned if True. Otherwise
+ N (int, optional) – Amount of the counter quantization levels. The default is 2**12. return_complex (bool, optional) – Complex switching state space vectors are returned if True. Otherwise
phase switching states are returned. The default is True. length (int, optional) – Length of the buffer in samples. The default is 1. length (int, optional) – Length of the buffer in samples. The default is 1. Bases: Bases: Base class for continuous-time system models. This base class is a template for a system model that interconnects the
subsystems and provides an interface to the solver. pwm (zoh | CarrierComparison, optional) – Zero-order hold of duty ratios or carrier comparison. If None, the
default is zoh. delay (int, optional) – Amount of computational delays. The default is 1. delay (int, optional) – Amount of computational delays. The default is 1. Bases: Bases: Base class for subsystems. Complex space vector (peak-value scaling). Examples u (complex) – Complex space vector (peak-value scaling). u (complex) – Complex space vector (peak-value scaling). Phase quantities. theta (float) – Angle (rad). theta (float) – Angle (rad). Limited angle. par (InductionMachineInvGammaPars) – Machine parameters, contains the leakage inductance L_sgm (H). alpha_c (float) – Closed-loop bandwidth (rad/s). alpha_c (float) – Closed-loop bandwidth (rad/s). par (InductionMachineInvGammaPars) – Machine model parameters. max_i_s (float) – Maximum stator current (A). nom_u_s (float, optional) – Nominal stator voltage (V). The default is sqrt(2/3)*400. nom_w_s (float, optional) – Nominal stator angular frequency (rad/s). The default is 2*pi*50. nom_psi_R (float, optional) – Nominal rotor flux linkage (Vs). The default is
+ max_i_s (float) – Maximum stator current (A). nom_u_s (float, optional) – Nominal stator voltage (V). The default is sqrt(2/3)*400. nom_w_s (float, optional) – Nominal stator angular frequency (rad/s). The default is 2*pi*50. nom_psi_R (float, optional) – Nominal rotor flux linkage (Vs). The default is
(nom_u_s/nom_w_s)/(1 + L_sgm/L_M). k_fw (float, optional) – Field-weakening gain (1/H). The default is 2*R_R/(nom_w_s*L_sgm**2). k_u (float, optional) – Voltage utilization factor. The default is 0.95. k_fw (float, optional) – Field-weakening gain (1/H). The default is 2*R_R/(nom_w_s*L_sgm**2). k_u (float, optional) – Voltage utilization factor. The default is 0.95. par (InductionMachineInvGammaPars) – Machine parameters. cfg (CurrentReferenceCfg) – Current reference generator configuration. J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. T_s (float, optional) – Sampling time (s). The default is 250e-6. sensorless (bool, optional) – Enable sensorless control. The default is True. J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. T_s (float, optional) – Sampling time (s). The default is 250e-6. sensorless (bool, optional) – Enable sensorless control. The default is True. par (InductionMachineInvGammaPars) – Machine model parameters. alpha_psi (float, optional) – Flux-control bandwidth (rad/s). The default is 2*pi*100. alpha_tau (float, optional) – Torque-control bandwidth (rad/s). The default is 2*pi*200. alpha_c (float, optional) – Internal current-control bandwidth (rad/s). The default is 2*pi*200. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*40. J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. T_s (float) – Sampling period (s). The default is 250e-6. sensorless (bool, optional) – If True, sensorless control is used. The default is True. alpha_psi (float, optional) – Flux-control bandwidth (rad/s). The default is 2*pi*100. alpha_tau (float, optional) – Torque-control bandwidth (rad/s). The default is 2*pi*200. alpha_c (float, optional) – Internal current-control bandwidth (rad/s). The default is 2*pi*200. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*40. J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. T_s (float) – Sampling period (s). The default is 250e-6. sensorless (bool, optional) – If True, sensorless control is used. The default is True. cfg (FluxVectorControlCfg) – nom_psi_s (float) – Nominal stator flux linkage (Vs). max_i_s (float) – Maximum stator current (A). max_tau_M (float) – Maximum torque reference (Nm). k_u (float, optional) – Voltage utilization factor. The default is 0.95. nom_psi_s (float) – Nominal stator flux linkage (Vs). max_i_s (float) – Maximum stator current (A). max_tau_M (float) – Maximum torque reference (Nm). k_u (float, optional) – Voltage utilization factor. The default is 0.95. alpha_i (float, optional) – Current estimation bandwidth (rad/s). The default is 2*pi*400. alpha_i (float, optional) – Current estimation bandwidth (rad/s). The default is 2*pi*400. par (ModelPars) – Machine model parameters. cfg (ObserverBasedVHzControlCfg) – Control system configuration. T_s (float, optional) – Sampling period (s). The default is 250e-6. T_s (float, optional) – Sampling period (s). The default is 250e-6. nom_psi_s (float) – Nominal stator flux linkage (Vs). max_i_s (float, optional) – Maximum stator current (A). The default is inf. k_tau (float, optional) – Torque controller gain. The default is 3. alpha_psi (float, optional) – Stator flux control bandwidth (rad/s). The default is 2*pi*20. alpha_f (float, optional) – Torque high-pass filter bandwidth (rad/s). The default is 2*pi*1. alpha_r (float, optional) – Low-pass-filter bandwidth (rad/s) for slip angular frequency. The
+ nom_psi_s (float) – Nominal stator flux linkage (Vs). max_i_s (float, optional) – Maximum stator current (A). The default is inf. k_tau (float, optional) – Torque controller gain. The default is 3. alpha_psi (float, optional) – Stator flux control bandwidth (rad/s). The default is 2*pi*20. alpha_f (float, optional) – Torque high-pass filter bandwidth (rad/s). The default is 2*pi*1. alpha_r (float, optional) – Low-pass-filter bandwidth (rad/s) for slip angular frequency. The
default is 2*pi*1. slip_compensation (bool, optional) – Enable slip compensation. The default is False. slip_compensation (bool, optional) – Enable slip compensation. The default is False. par (InductionMachineInvGammaPars) – Machine model parameters. T_s (float) – Sampling period (s). sensorless (bool) – If True, sensorless mode is used. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*40. T_s (float) – Sampling period (s). sensorless (bool) – If True, sensorless mode is used. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*40. k_o (callable, optional) – Observer gain as a function of the rotor angular speed. The default is
J (float) – Total inertia of the rotor (kgm²). alpha_s (float) – Closed-loop bandwidth (rad/s). max_tau_M (float, optional) – Maximum motor torque (Nm). The default is inf. J (float) – Total inertia of the rotor (kgm²). alpha_s (float) – Closed-loop bandwidth (rad/s). max_tau_M (float, optional) – Maximum motor torque (Nm). The default is inf. Bases: Bases: Base class for drive control systems. This base class provides typical functionalities for control of electric
machine drives. This can be used both in speed-control and torque-control
@@ -491,8 +491,8 @@ par (motulator.drive.control.im.ModelPars | motulator.drive.control.sm.ModelPars) – Machine model parameters. T_s (float) – Sampling period (s). sensorless (bool) – If True, sensorless control mode is used. T_s (float) – Sampling period (s). sensorless (bool) – If True, sensorless control mode is used. J (float) – Total inertia of the rotor (kgm²). alpha_s (float) – Closed-loop bandwidth (rad/s). max_tau_M (float, optional) – Maximum motor torque (Nm). The default is inf. J (float) – Total inertia of the rotor (kgm²). alpha_s (float) – Closed-loop bandwidth (rad/s). max_tau_M (float, optional) – Maximum motor torque (Nm). The default is inf. par (SynchronousMachinePars) – Synchronous machine parameters, should contain L_d and L_q (H). alpha_c (float) – Closed-loop bandwidth (rad/s). alpha_c (float) – Closed-loop bandwidth (rad/s). u – Controller output. par (SynchronousMachinePars) – Machine model parameters. max_i_s (float) – Maximum stator current (A). min_psi_s (float, optional) – Minimum stator flux (Vs). The default is psi_f. nom_w_m (float, optional) – Nominal rotor angular speed (electrical rad/s). Needed if k_fw is not
+ max_i_s (float) – Maximum stator current (A). min_psi_s (float, optional) – Minimum stator flux (Vs). The default is psi_f. nom_w_m (float, optional) – Nominal rotor angular speed (electrical rad/s). Needed if k_fw is not
directly provided. alpha_fw (float, optional) – Field-weakening bandwidth (rad/s). The default is 2*pi*20. k_fw (float, optional) – Field-weakening gain. The default is alpha_fw/(w_m_nom*par.L_d). k_u (float, optional) – Voltage utilization factor. The default is 0.95. alpha_fw (float, optional) – Field-weakening bandwidth (rad/s). The default is 2*pi*20. k_fw (float, optional) – Field-weakening gain. The default is alpha_fw/(w_m_nom*par.L_d). k_u (float, optional) – Voltage utilization factor. The default is 0.95. par (SynchronousMachinePars) – Machine model parameters. cfg (CurrentReferenceCfg) – Reference generation configuration. T_s (float, optional) – Sampling period (s). The default is 250e-6. J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. alpha_c (float, optional) – Current controller bandwidth (rad/s). The default is 2*pi*200. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*100. sensorless (bool, optional) – If True, sensorless control is used. The default is True. T_s (float, optional) – Sampling period (s). The default is 250e-6. J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. alpha_c (float, optional) – Current controller bandwidth (rad/s). The default is 2*pi*200. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*100. sensorless (bool, optional) – If True, sensorless control is used. The default is True. par (SynchronousMachinePars) – Machine model parameters. max_i_s (float) – Maximum stator current (A). min_psi_s (float, optional) – Minimum stator flux (Vs). The default is par.psi_f. max_psi_s (float, optional) – Maximum stator flux (Vs). The default is inf. k_u (float, optional) – Voltage utilization factor. The default is 0.95. max_i_s (float) – Maximum stator current (A). min_psi_s (float, optional) – Minimum stator flux (Vs). The default is par.psi_f. max_psi_s (float, optional) – Maximum stator flux (Vs). The default is inf. k_u (float, optional) – Voltage utilization factor. The default is 0.95. par (SynchronousMachinePars) – Machine model parameters. cfg (FluxTorqueReferenceCfg) – Reference generation configuration. alpha_psi (float, optional) – Flux-control bandwidth (rad/s). The default is 2*pi*100. alpha_tau (float, optional) – Torque-control bandwidth (rad/s). The default is 2*pi*200. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*100. J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. T_s (float) – Sampling period (s). The default is 250e-6. sensorless (bool, optional) – If True, sensorless control is used. The default is True. alpha_psi (float, optional) – Flux-control bandwidth (rad/s). The default is 2*pi*100. alpha_tau (float, optional) – Torque-control bandwidth (rad/s). The default is 2*pi*200. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*100. J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. T_s (float) – Sampling period (s). The default is 250e-6. sensorless (bool, optional) – If True, sensorless control is used. The default is True. par (SynchronousMachinePars) – Machine model parameters. cfg (ObserverBasedVHzControlCfg) – Control system configuration. T_s (float, optional) – Sampling period (s). The default is 250e-6. T_s (float, optional) – Sampling period (s). The default is 250e-6. alpha_psi (float, optional) – Flux control bandwidth (rad/s). The default is 2*pi*50. alpha_tau (float) – Torque control bandwidth (rad/s). The default is 2*pi*50. alpha_f (float, optional) – Bandwidth of the high-pass filter (rad/s). The default is 2*pi*1. alpha_psi (float, optional) – Flux control bandwidth (rad/s). The default is 2*pi*50. alpha_tau (float) – Torque control bandwidth (rad/s). The default is 2*pi*50. alpha_f (float, optional) – Bandwidth of the high-pass filter (rad/s). The default is 2*pi*1. par (SynchronousMachinePars) – Machine model parameters. sensorless (bool) – If True, sensorless mode is used. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*40. sensorless (bool) – If True, sensorless mode is used. alpha_o (float, optional) – Observer bandwidth (rad/s). The default is 2*pi*40. k_o (callable, optional) – Observer gain as a function of the rotor angular speed. The default is
par (SynchronousMachinePars) – Machine model parameters. U_inj (float) – Injected voltage amplitude (V). U_inj (float) – Injected voltage amplitude (V). i_s (complex) – Unfiltered stator current (A) in estimated rotor coordinates. i_s (complex) – Unfiltered stator current (A) in estimated rotor coordinates. i_s_flt – Filtered stator current (A) in estimated rotor coordinates. err – Rotor position estimation error (electrical rad). i_s (complex) – Stator current in estimated rotor coordinates. i_s (complex) – Stator current in estimated rotor coordinates. par (SynchronousMachinePars) – Machine model parameters. cfg (CurrentReferenceCfg) – Reference generation configuration. J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. T_s (float) – Sampling period (s). J (float, optional) – Moment of inertia (kgm²). Needed only for the speed controller. T_s (float) – Sampling period (s). J (float) – Total inertia of the rotor (kgm²). alpha_s (float) – Closed-loop bandwidth (rad/s). max_tau_M (float, optional) – Maximum motor torque (Nm). The default is inf. J (float) – Total inertia of the rotor (kgm²). alpha_s (float) – Closed-loop bandwidth (rad/s). max_tau_M (float, optional) – Maximum motor torque (Nm). The default is inf. psi_s (complex) – Stator flux linkage (Vs). psi_s (complex) – Stator flux linkage (Vs). i_s – Stator current (A). max_i_s (float) – Current limit (A). gamma1 (float, optional) – Starting angle (electrical rad). The default is 0. gamma2 (float, optional) – End angle (electrical rad). The default is pi. N (int, optional) – Amount of points. The default is 20. max_i_s (float) – Current limit (A). gamma1 (float, optional) – Starting angle (electrical rad). The default is 0. gamma2 (float, optional) – End angle (electrical rad). The default is pi. N (int, optional) – Amount of points. The default is 20. i_s (complex) – Stator current (A). i_s (complex) – Stator current (A). psi_s – Stator flux linkage (Vs). abs_i_s (float) – Stator current magnitude (A). abs_i_s (float) – Stator current magnitude (A). beta – MTPA angle of the stator current vector (electrical rad). max_i_s (float) – Maximum stator current magnitude (A) at which the locus is
+ max_i_s (float) – Maximum stator current magnitude (A) at which the locus is
computed. min_psi_s (float, optional) – Minimum stator flux magnitude (Vs) at which the locus is computed. N (int, optional) – Amount of points. The default is 20. min_psi_s (float, optional) – Minimum stator flux magnitude (Vs) at which the locus is computed. N (int, optional) – Amount of points. The default is 20. abs_psi_s (float) – Stator flux magnitude (Vs). abs_psi_s (float) – Stator flux magnitude (Vs). delta – MTPV angle of the stator flux vector (electrical rad). abs_i_s (float) – Stator current magnitude (A). abs_i_s (float) – Stator current magnitude (A). i_s – MTPV stator current (A). max_psi_s (float, optional) – Maximum stator flux magnitude (Vs) at which the locus is computed.
+ max_psi_s (float, optional) – Maximum stator flux magnitude (Vs) at which the locus is computed.
Either max_psi_s or max_i_s must be given. max_i_s (float, optional) – Maximum stator current magnitude (A) at which the locus is
+ max_i_s (float, optional) – Maximum stator current magnitude (A) at which the locus is
computed. N (int, optional) – Amount of points. The default is 20. N (int, optional) – Amount of points. The default is 20. max_i_s (float) – Maximum current (A) at which the loci are evaluated. max_i_s (float) – Maximum current (A) at which the loci are evaluated. base (BaseValues) – Base values. N (int, optional) – Amount of points to be evaluated. The default is 20. N (int, optional) – Amount of points to be evaluated. The default is 20. max_i_s (float) – Maximum current (A) at which the loci are evaluated. max_i_s (float) – Maximum current (A) at which the loci are evaluated. base (BaseValues) – Base values. N (int, optional) – Amount of points to be evaluated. The default is 20. N (int, optional) – Amount of points to be evaluated. The default is 20. max_i_s (float) – Maximum current (A) at which the loci are evaluated. max_i_s (float) – Maximum current (A) at which the loci are evaluated. base (BaseValues) – Base values. N (int, optional) – Amount of points to be evaluated. The default is 20. N (int, optional) – Amount of points to be evaluated. The default is 20. max_i_s (float) – Maximum current (A) at which the loci are evaluated. max_i_s (float) – Maximum current (A) at which the loci are evaluated. base (BaseValues) – Base values. N (int, optional) – Amount of points to be evaluated. The default is 20. N (int, optional) – Amount of points to be evaluated. The default is 20. psi_s (complex) – Stator flux (Vs). psi_s (complex) – Stator flux (Vs). tau_M – Electromagnetic torque (Nm). w_M – Rotor angular speed (mechanical rad/s). C_dc (float) – DC-bus capacitance (F). L_dc (float) – DC-bus inductance (H). U_g (float) – Grid voltage (V, line-line, rms). f_g (float) – Grid frequency (Hz). C_dc (float) – DC-bus capacitance (F). L_dc (float) – DC-bus inductance (H). U_g (float) – Grid voltage (V, line-line, rms). f_g (float) – Grid frequency (Hz). Set output variables. L_f (float) – Filter inductance (H). C_f (float) – Filter capacitance (F). R_f (float, optional) – Series resistance (Ω) of the inductor. The default is 0. L_f (float) – Filter inductance (H). C_f (float) – Filter capacitance (F). R_f (float, optional) – Series resistance (Ω) of the inductor. The default is 0. name (str, optional) – Name for the simulation instance. The default is sim. name (str, optional) – Name for the simulation instance. The default is sim. J (float) – Total moment of inertia (kgm²). B_L (float | callable) – Friction coefficient (Nm/(rad/s)) that can be constant, corresponding
+ J (float) – Total moment of inertia (kgm²). B_L (float | callable) – Friction coefficient (Nm/(rad/s)) that can be constant, corresponding
to viscous friction, or an arbitrary function of the rotor speed. For
example, choosing theta_M – Rotor angle (mechanical rad). w_M – Rotor angular speed (mechanical rad/s).Source code for motulator.common.model._converter
Source code for motulator.common.model._converter
Source code for motulator.drive.model._drive
self.mechanics.data.tau_M = self.machine.data.tau_M
# Post-processing based on the inputs and the states
super().post_process_with_inputs()
Package Contents
Package Contents
Package Contents
Package Contents
Package Contents
abc.ABC
abc.ABC
Package Contents
@@ -774,10 +774,10 @@
@@ -788,16 +788,16 @@ Package Contents
-
Package Contents
Package Contents
Package Contents
-
@@ -861,8 +861,8 @@ Package Contents
Package ContentsReturn type:
-
Package Contents
-
Package Contents
Package Contents
Package Contents
-
Package Contents
Package Contents
abc.ABC
abc.ABC
Package Contents
Package Contents
abc.ABC
abc.ABC
Package Contents
Package Contents
Package Contents
Package Contents
Package Contents
Package ContentsParameters:
Package ContentsParameters:
Package Contents
Package ContentsParameters:
Package Contents
-
Package Contents
Package Contents
Package Contents
-
Package ContentsParameters:
lambda w_m: (0.5*R_R/L_M + 0.2*abs(w_m))/(R_R/L_M - 1j*w_m)
if
sensorless else lambda w_m: 1 + 0.2*abs(w_m)/(R_R/L_M - 1j*w_m)
.Package Contents
-
Package Contents
motulator.common.control.ControlSystem
, abc.ABC
motulator.common.control.ControlSystem
, abc.ABC
Package ContentsParameters:
Package Contents
-
Package ContentsParameters:
Package Contents
Package ContentsParameters:
Package Contents
Package ContentsParameters:
Package Contents
Package Contents
Package Contents
-
Package ContentsParameters:
lambda w_m: 0.25*(R_s*(L_d + L_q)/(L_d*L_q) + 0.2*abs(w_m))
if
sensorless else lambda w_m: 2*pi*15
.Package ContentsParameters:
Package Contents
Package Contents
Package Contents
Package Contents
Package Contents
-
Package Contents
Package Contents
-
Package Contents
Package Contents
Package Contents
-
Package Contents
Package Contents
Package Contents
Package Contents
-
Package Contents
-
Package Contents
-
Package Contents
-
Package Contents
-
Package Contents
Contents
Drive.post_process()
DriveWithDiodeBridge
-DriveWithLCFilter
Package Contents
Package Contents
-
Package Contents
Package Contents
-
Package Contents
Package Contents
Package Contents
-
B_L = lambda w_M: k*abs(w_M)
gives the quadratic
load torque k*w_M**2
. The default is B_L = 0
.Package Contents
Package Contents
Package Contentsfloat, optional) – Initial stator flux linkage (Vs). If not given, par.psi_f is used.
psi_s0 (float, optional) – Initial stator flux linkage (Vs). If not given, par.psi_f is used.
u_dc (float) – DC-bus voltage (V). If the DC-bus capacitor is modeled, this value is +
u_dc (float) – DC-bus voltage (V). If the DC-bus capacitor is modeled, this value is used as the initial condition.
C_dc (float, optional) – DC-bus capacitance (F). The default is None.
C_dc (float, optional) – DC-bus capacitance (F). The default is None.
i_dc (callable, optional) – External current (A) fed to the DC bus. Needed if C_dc is not None.
Drive.post_process()
-DriveWithDiodeBridge
-DriveWithLCFilter
@@ -589,11 +589,11 @@ n_p (int) – Number of pole pairs.
R_s (float) – Stator resistance (Ω).
R_R (float) – Rotor resistance (Ω).
L_sgm (float) – Leakage inductance (H).
L_M (float) – Magnetizing inductance (H).
n_p (int) – Number of pole pairs.
R_s (float) – Stator resistance (Ω).
R_R (float) – Rotor resistance (Ω).
L_sgm (float) – Leakage inductance (H).
L_M (float) – Magnetizing inductance (H).
n_p (int) – Number of pole pairs.
R_s (float) – Stator resistance (Ω).
R_r (float) – Rotor resistance (Ω).
L_ell (float) – Leakage inductance (H).
L_s (float | callable) – Stator inductance (H).
n_p (int) – Number of pole pairs.
R_s (float) – Stator resistance (Ω).
R_r (float) – Rotor resistance (Ω).
L_ell (float) – Leakage inductance (H).
L_s (float | callable) – Stator inductance (H).
U (float) – Voltage (V, rms, line-line).
I (float) – Current (A, rms).
f (float) – Frequency (Hz).
P (float) – Power (W).
tau (float, optional) – Torque (Nm). The default value is None.
U (float) – Voltage (V, rms, line-line).
I (float) – Current (A, rms).
f (float) – Frequency (Hz).
P (float) – Power (W).
tau (float, optional) – Torque (Nm). The default value is None.
times (ndarray) – Time values.
values (ndarray) – Output values.
periodic (bool, optional) – Enables periodicity. The default is False.
periodic (bool, optional) – Enables periodicity. The default is False.
n_p (int) – Number of pole pairs.
R_s (float) – Stator resistance (Ω).
L_d (float) – d-axis inductance (H).
L_q (float) – q-axis inductance (H).
psi_f (float) – Permanent-magnet flux linkage (Vs).
n_p (int) – Number of pole pairs.
R_s (float) – Stator resistance (Ω).
L_d (float) – d-axis inductance (H).
L_q (float) – q-axis inductance (H).
psi_f (float) – Permanent-magnet flux linkage (Vs).
J_M (float) – Motor moment of inertia (kgm²).
J_L (float) – Load moment of inertia (kgm²).
K_S (float) – Shaft torsional stiffness (Nm/rad).
C_S (float) – Shaft torsional damping (Nm/(rad/s)).
B_L (float | callable) – Friction coefficient (Nm/(rad/s)) that can be constant, corresponding +
J_M (float) – Motor moment of inertia (kgm²).
J_L (float) – Load moment of inertia (kgm²).
K_S (float) – Shaft torsional stiffness (Nm/rad).
C_S (float) – Shaft torsional damping (Nm/(rad/s)).
B_L (float | callable) – Friction coefficient (Nm/(rad/s)) that can be constant, corresponding
to viscous friction, or an arbitrary function of the load speed. For
example, choosing B_L = lambda w_L: k*abs(w_M)
leads to the
quadratic load torque k*w_L**2
. The default is B_L = 0
.
max_i (float) – Maximum current (A).
+max_i (float) – Maximum current (A).
Limited signal.
C_dc (float) – DC-bus capacitance (F).
alpha_dc (float) – Approximate closed-loop bandwidth (rad/s).
max_p (float, optional) – Limit for the maximum converter power (W). The default is inf.
C_dc (float) – DC-bus capacitance (F).
alpha_dc (float) – Approximate closed-loop bandwidth (rad/s).
max_p (float, optional) – Limit for the maximum converter power (W). The default is inf.
u – Controller output.
Bases: motulator.common.control.ControlSystem
, abc.ABC
Bases: motulator.common.control.ControlSystem
, abc.ABC
Base class for control of grid-connected converters.
This base class provides typical functionalities for control of grid-connected converters. This can be used both in power control and DC-bus voltage control modes.
L (float) – Inductance (H).
nom_u (float) – Nominal grid voltage (V), line-to-neutral peak value.
nom_w (float) – Nominal grid angular frequency (rad/s).
max_i (float) – Maximum current (A), peak value.
T_s (float, optional) – Sampling period (s). The default is 100e-6.
alpha_c (float, optional) – Current-control bandwidth (rad/s). The default is 2*pi*400.
alpha_pll (float, optional) – PLL frequency-tracking bandwidth (rad/s). The default is 2*pi*20.
L (float) – Inductance (H).
nom_u (float) – Nominal grid voltage (V), line-to-neutral peak value.
nom_w (float) – Nominal grid angular frequency (rad/s).
max_i (float) – Maximum current (A), peak value.
T_s (float, optional) – Sampling period (s). The default is 100e-6.
alpha_c (float, optional) – Current-control bandwidth (rad/s). The default is 2*pi*400.
alpha_pll (float, optional) – PLL frequency-tracking bandwidth (rad/s). The default is 2*pi*20.
L (float) – Total inductance.
nom_u (float) – Nominal grid voltage (V), line-to-neutral peak value.
nom_w (float) – Nominal grid angular frequency (rad/s).
max_i (float) – Maximum current (A), peak value.
R (float, optional) – Total series resistance (Ω). The default is 0.
R_a (float, optional) – Active resistance (Ω). The default is 0.25*nom_u/max_i.
k_v (float, optional) – Voltage control gain. The default is alpha_o/nom_w.
alpha_c (float, optional) – Current control bandwidth (rad/s). The default is 2*pi*400.
alpha_o (float, optional) – Observer gain (rad/s). The default is 2*pi*50.
T_s (float, optional) – Sampling period (s). The default is 100e-6.
L (float) – Total inductance.
nom_u (float) – Nominal grid voltage (V), line-to-neutral peak value.
nom_w (float) – Nominal grid angular frequency (rad/s).
max_i (float) – Maximum current (A), peak value.
R (float, optional) – Total series resistance (Ω). The default is 0.
R_a (float, optional) – Active resistance (Ω). The default is 0.25*nom_u/max_i.
k_v (float, optional) – Voltage control gain. The default is alpha_o/nom_w.
alpha_c (float, optional) – Current control bandwidth (rad/s). The default is 2*pi*400.
alpha_o (float, optional) – Observer gain (rad/s). The default is 2*pi*50.
T_s (float, optional) – Sampling period (s). The default is 100e-6.
alpha_pll (float) – Frequency-tracking bandwidth (rad/s).
abs_u_g0 (float) – Initial value for the grid voltage estimate (V).
w_g0 (float) – Initial value for the grid angular frequency estimate (rad/s).
alpha_pll (float) – Frequency-tracking bandwidth (rad/s).
abs_u_g0 (float) – Initial value for the grid voltage estimate (V).
w_g0 (float) – Initial value for the grid angular frequency estimate (rad/s).
nom_u (float) – Nominal grid voltage (V), line-to-neutral peak value.
nom_w (float) – Nominal grid angular frequency (rad/s).
max_i (float) – Maximum current (A), peak value.
R (float, optional) – Total series resistance (Ω). The default is 0.
R_a (float, optional) – Active resistance (Ω). The default is 0.25*nom_u/max_i.
w_b (float, optional) – Low-pass filter bandwidth (rad/s). The default is 2*pi*5.
T_s (float, optional) – Sampling period (s). The default is 100e-6.
nom_u (float) – Nominal grid voltage (V), line-to-neutral peak value.
nom_w (float) – Nominal grid angular frequency (rad/s).
max_i (float) – Maximum current (A), peak value.
R (float, optional) – Total series resistance (Ω). The default is 0.
R_a (float, optional) – Active resistance (Ω). The default is 0.25*nom_u/max_i.
w_b (float, optional) – Low-pass filter bandwidth (rad/s). The default is 2*pi*5.
T_s (float, optional) – Sampling period (s). The default is 100e-6.
N (int, optional) – Amount of the counter quantization levels. The default is 2**12.
return_complex (bool, optional) – Complex switching state space vectors are returned if True. Otherwise +
N (int, optional) – Amount of the counter quantization levels. The default is 2**12.
return_complex (bool, optional) – Complex switching state space vectors are returned if True. Otherwise phase switching states are returned. The default is True.
name (str, optional) – Name for the simulation instance. The default is sim.
+name (str, optional) – Name for the simulation instance. The default is sim.
w_g (float | callable) – Angular frequency (rad/s).
abs_e_g (float | callable) – Magnitude of the positive-sequence component (peak value).
phi (float | callable, optional) – Phase shift (rad) of the positive-sequence component. The default is 0.
abs_e_g_neg (float | callable, optional) – Magnitude of the negative-sequence component (peak value). The default +
w_g (float | callable) – Angular frequency (rad/s).
abs_e_g (float | callable) – Magnitude of the positive-sequence component (peak value).
phi (float | callable, optional) – Phase shift (rad) of the positive-sequence component. The default is 0.
abs_e_g_neg (float | callable, optional) – Magnitude of the negative-sequence component (peak value). The default is 0.
phi_neg (float | callable, optional) – Phase shift (rad) of the negative-sequence component. The default is 0.
phi_neg (float | callable, optional) – Phase shift (rad) of the negative-sequence component. The default is 0.
u_dc (float) – DC-bus voltage (V). If the DC-bus capacitor is modeled, this value is +
u_dc (float) – DC-bus voltage (V). If the DC-bus capacitor is modeled, this value is used as the initial condition.
C_dc (float, optional) – DC-bus capacitance (F). The default is None.
C_dc (float, optional) – DC-bus capacitance (F). The default is None.
i_dc (callable, optional) – External current (A) fed to the DC bus. Needed if C_dc is not None.
L_fc (float) – Converter-side filter inductance (H).
L_fg (float, optional) – Grid-side filter inductance (H). The default is 0.
C_f (float, optional) – Filter capacitance (F). The default is 0.
R_fc (float, optional) – Series resistance (Ω) of the converter-side inductor. The default is 0.
R_fg (float, optional) – Series resistance (Ω) of the grid-side inductor. The default is 0.
L_g (float, optional) – Grid inductance (H). The default is 0.
R_g (float, optional) – Grid resistance (Ω). The default is 0.
u_fs0 (float, optional) – Initial value of the filter capacitor voltage (V). Needed in the case +
L_fc (float) – Converter-side filter inductance (H).
L_fg (float, optional) – Grid-side filter inductance (H). The default is 0.
C_f (float, optional) – Filter capacitance (F). The default is 0.
R_fc (float, optional) – Series resistance (Ω) of the converter-side inductor. The default is 0.
R_fg (float, optional) – Series resistance (Ω) of the grid-side inductor. The default is 0.
L_g (float, optional) – Grid inductance (H). The default is 0.
R_g (float, optional) – Grid resistance (Ω). The default is 0.
u_fs0 (float, optional) – Initial value of the filter capacitor voltage (V). Needed in the case of an LCL filter.
u (float) – Voltage (V, peak, line-neutral).
i (float) – Current (A, peak).
w (float) – Angular frequency (rad/s).
psi (float) – Flux linkage (Vs).
p (float) – Power (W).
Z (float) – Impedance (Ω).
L (float) – Inductance (H).
C (float) – Capacitance (F).
tau (float, optional) – Torque (Nm). The default is None.
n_p (int, optional) – Number of pole pairs. The default is None.
u (float) – Voltage (V, peak, line-neutral).
i (float) – Current (A, peak).
w (float) – Angular frequency (rad/s).
psi (float) – Flux linkage (Vs).
p (float) – Power (W).
Z (float) – Impedance (Ω).
L (float) – Inductance (H).
C (float) – Capacitance (F).
tau (float, optional) – Torque (Nm). The default is None.
n_p (int, optional) – Number of pole pairs. The default is None.
n_p (int, optional) – Number of pole pairs. If not given it is assumed that base values for a grid converter are calculated. The default is None.
U (float) – Voltage (V, rms, line-line).
I (float) – Current (A, rms).
f (float) – Frequency (Hz).
P (float) – Power (W).
tau (float, optional) – Torque (Nm). The default value is None.
U (float) – Voltage (V, rms, line-line).
I (float) – Current (A, rms).
f (float) – Frequency (Hz).
P (float) – Power (W).
tau (float, optional) – Torque (Nm). The default value is None.
base (BaseValues, optional) – Base values for scaling the waveforms. If not given, plots the figures in SI units.
plot_pcc_voltage (bool, optional) – If True, the phase voltage waveforms are plotted at the point of common +
plot_pcc_voltage (bool, optional) – If True, the phase voltage waveforms are plotted at the point of common coupling (PCC). Otherwise, the grid voltage waveforms are plotted. The default is True.
plot_w (bool, optional) – If True, plot the grid frequency. Otherwise, plot the phase angle. The +
plot_w (bool, optional) – If True, plot the grid frequency. Otherwise, plot the phase angle. The default is False.
t_span (2-tuple, optional) – Time span. The default is (0, sim.ctrl.ref.t[-1]).
The two figures below show the structure and data flow in a typical simulation model as well as an example of the internal structure of a discrete-time control system. The text in italics refers to the default object names used in the software. In discrete-time control systems, the signals are collected into the following types.SimpleNamespace
objects:
The two figures below show the structure and data flow in a typical simulation model as well as an example of the internal structure of a discrete-time control system. The text in italics refers to the default object names used in the software. In discrete-time control systems, the signals are collected into the following types.SimpleNamespace
objects:
The object fbk contains feedback signals for the controllers. These signals can be measured quantities (such as the measured DC-bus voltage fbk.u_dc) as well as estimated quantities (such as the estimated stator flux linkage fbk.psi_s).
The object ref contains the reference signals, both externally provided (such as ref.w_m for the angular speed reference) and internally generated (such as ref.d_c_abc for the duty ratios).
plot(sim, base)
Total running time of the script: (0 minutes 9.833 seconds)
+Total running time of the script: (0 minutes 10.133 seconds)