Skip to main content

Overload

Struct Overload 

Source
pub struct Overload {
    pub rated_current: f64,
    pub base_current: f64,
    pub max_current: f64,
    pub time_constant: f64,
    pub trip: f64,
    pub chip_share: f64,
    pub chip_time_constant: f64,
}
Expand description

effects.drive_overload: the drive’s thermal image (i^2 t) of its power unit in two nodes, as the SINAMICS power units model a slow heat sink and the fast chips on it: x = x_s + x_c with x_s’ = ((1 - w) q - x_s) / tau and x_c’ = (w q - x_c) / tau_c, q = (i / I_rated)^2, w the chips’ share of the rise (chip_share). x is 1 at the rated current held. At the trip level the drive lowers its current limit to the base load current, and holds it there until the image is back at 1. The trip level follows from the time the drive gives its maximum current from the rated load: trip = r^2 - (r^2 - 1) ((1 - w) exp(-t_max / tau) + w exp(-t_max / tau_c)) for r = I_max / I_rated. With w = 0 the one node of 14 November 2026.

Fields§

§rated_current: f64§base_current: f64§max_current: f64§time_constant: f64§trip: f64§chip_share: f64§chip_time_constant: f64

Implementations§

Source§

impl Overload

Source

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

With effects.drive_overload on (off where the config has no switch), from the [ratings].

Source

pub fn nodes_after( &self, [slow, chip]: [f64; 2], current: f64, dt: f64, ) -> [f64; 2]

The nodes [slow, chips] after dt at a constant current, exactly.

Source

pub fn node_time_constant(&self, node: usize) -> f64

The time constant of node 0 (the slow one) or 1 (the chips).

Source

pub fn trip_time(&self, current: f64) -> f64

The time from the rated load held (image 1) until the image reaches the trip level at a constant current; infinite where it never does. Bisection on the closed form x(t) = q - (q - 1) (decays summed).

Trait Implementations§

Source§

impl Clone for Overload

Source§

fn clone(&self) -> Overload

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 Copy for Overload

Source§

impl Debug for Overload

Source§

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

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

impl<'de> Deserialize<'de> for Overload

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 Overload

Source§

fn eq(&self, other: &Overload) -> 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 Overload

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 Overload

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.