Skip to main content

Induction

Struct Induction 

Source
pub struct Induction {
Show 13 fields pub pole_pairs: f64, pub rotor_resistance: f64, pub magnetizing: f64, pub stator: f64, pub rotor: f64, pub rated_voltage: f64, pub rated_frequency: f64, pub rated_slip: f64, pub field_oriented: bool, pub boost: f64, pub slip_compensation: bool, pub slip_filter: f64, pub rated_flux: f64,
}

Fields§

§pole_pairs: f64§rotor_resistance: f64§magnetizing: f64§stator: f64

L_s and L_r, magnetizing plus leakage.

§rotor: f64§rated_voltage: f64

Rated phase voltage’s amplitude, rated electrical speed (2 pi f_N), rated slip’s electrical speed.

§rated_frequency: f64§rated_slip: f64§field_oriented: bool

Field-oriented control ("foc"), else V/f.

§boost: f64

V/f: the boost’s phase amplitude at 0 Hz, and whether the slip is compensated.

§slip_compensation: bool§slip_filter: f64

V/f slip compensation: the time constant of the filter on the estimated torque, s. drive.slip_compensation_filter_s; absent, the rotor’s own time constant L_r / R_r (the estimate then does not swing with the rotor).

§rated_flux: f64

The rotor flux at the rated voltage and frequency, unloaded: the field-oriented drive’s setpoint.

Implementations§

Source§

impl Induction

Source

pub fn from_config(cfg: &Config) -> Result<Self, ConfigError>

Source

pub fn currents(&self, x: &[f64; 4]) -> ([f64; 2], [f64; 2])

The model’s currents from its fluxes [psi_sd, psi_sq, psi_rd, psi_rq]: (i_s, i_r) as [d, q].

Source

pub fn torque(&self, x: &[f64; 4]) -> f64

The torque of the fluxes: 3/2 p (psi_s x i_s).

Source

pub fn stored_energy(&self, x: &[f64; 4]) -> f64

The magnetic energy, 3/4 (psi_s . i_s + psi_r . i_r).

Source

pub fn steady(&self, rs: f64, u: [f64; 2], w_k: f64, w_r: f64) -> [f64; 4]

The fluxes of a steady state in a frame turning at w_k with the rotor at the electrical speed w_r, under the voltage u [d, q]: the equivalent circuit.

Source

pub fn breakdown(&self, rs: f64, u: f64, w_e: f64) -> f64

The breakdown torque at the electrical speed w_e with the phase amplitude u, from the equivalent circuit’s Thevenin form (R_s kept): 3/2 p / w_e U_th^2 / (2 (R_th + sqrt(R_th^2 + (X_th + X_sr)^2))).

Source

pub fn torque_curve( &self, p: &DriveParams, speed: f64, dc_voltage: f64, ) -> (f64, f64)

(lowest, highest) torque at a speed with the DC link dc_voltage, as DriveParams::torque_curve: the breakdown curve. V/f: the most the stator frequency can make of it, motoring (above the rotor’s electrical speed) and generating (below it) apart, each the maximum over the slip of the circuit’s torque at the voltage V/f gives at that frequency (vf_extreme): the breakdown torque at a fixed frequency is the one at the speed that frequency belongs to only. Field-oriented the current limit at the flux the control sets (flux_setpoint), 3/2 p (L_m / L_r) psi sqrt(I^2 - (psi / L_m)^2) for the amplitude I of the smaller of the motor’s and the drive’s maximum current, within what the voltage circle leaves at that flux (voltage_iq), and the breakdown; and the peak torque.

Source

pub fn rated_copper_loss(&self, resistance: f64) -> f64

The copper loss at the rated point of the name plate, from the equivalent circuit at the rated voltage, frequency and slip, with the stator at resistance (warm): what brings the motor to its rated rise.

Trait Implementations§

Source§

impl Clone for Induction

Source§

fn clone(&self) -> Induction

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Induction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Induction

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Induction

Source§

fn eq(&self, other: &Induction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Induction

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Induction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.