pub struct CastWire(/* private fields */);Expand description
A cast “wire” filling an entire slot without insulation.
Casted “wires” are usually found in cage windings of asynchronous motors. They are created by filling liquid material into the slots of magnetic cores. Since the number of “turns” is always one for those kind of windings, the induced voltages are very low, meaning that typically no insulation is required. Hence, the wire fills the entire slot and is fully defined by its material. The slot fill factor is always 100%.
§Examples
use std::sync::Arc;
use std::f64::consts::PI;
use approx::assert_abs_diff_eq;
use stem_wire::prelude::*;
let wire_round = CastWire::new(Arc::new(Material::default()));
assert_abs_diff_eq!(
wire_round.effective_conductor_area(Area::new::<square_millimeter>(20.0), 1).get::<square_millimeter>(),
20.0,
epsilon = 1e-3
);
assert_abs_diff_eq!(
wire_round.effective_conductor_area(Area::new::<square_millimeter>(50.0), 1).get::<square_millimeter>(),
50.0,
epsilon = 1e-3
);
// Giving a number of turns greater than 1 does not make any sense, but the
// function will return a sensible result anyway.
assert_abs_diff_eq!(
wire_round.effective_conductor_area(Area::new::<square_millimeter>(50.0), 2).get::<square_millimeter>(),
50.0,
epsilon = 1e-3
);
assert_eq!(wire_round.slot_fill_factor_conductor(Area::new::<square_millimeter>(20.0), 1), 1.0);
assert_eq!(wire_round.slot_fill_factor_overall(Area::new::<square_millimeter>(20.0), 1), 1.0);Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CastWire
impl<'de> Deserialize<'de> for CastWire
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Wire for CastWire
impl Wire for CastWire
Source§fn material(&self) -> &Material
fn material(&self) -> &Material
Returns a shared reference to the conductor material of the wire.
Source§fn material_arc(&self) -> Arc<Material>
fn material_arc(&self) -> Arc<Material>
Source§fn effective_conductor_area(
&self,
zone_area: Area,
_turns_per_slot: usize,
) -> Area
fn effective_conductor_area( &self, zone_area: Area, _turns_per_slot: usize, ) -> Area
Returns the current-carrying cross section of the wire. Read more
Source§fn effective_overall_area(
&self,
zone_area: Area,
_turns_per_slot: usize,
) -> Area
fn effective_overall_area( &self, zone_area: Area, _turns_per_slot: usize, ) -> Area
Returns the overall area covered by the wire. Read more
Source§fn slot_fill_factor_conductor(&self, _zone_area: Area, _turns: usize) -> f64
fn slot_fill_factor_conductor(&self, _zone_area: Area, _turns: usize) -> f64
Returns the electrical slot filling factor. Read more
Source§fn slot_fill_factor_overall(&self, _zone_area: Area, _turns: usize) -> f64
fn slot_fill_factor_overall(&self, _zone_area: Area, _turns: usize) -> f64
Returns the mechanical slot filling factor. Read more
Source§fn resistance(
&self,
length: Length,
zone_area: Area,
turns: usize,
conditions: &[DynQuantity<f64>],
) -> ElectricalResistance
fn resistance( &self, length: Length, zone_area: Area, turns: usize, conditions: &[DynQuantity<f64>], ) -> ElectricalResistance
Returns the resistance of a wire with the given
length under influence of
the specified conditions. Read moreAuto Trait Implementations§
impl Freeze for CastWire
impl !RefUnwindSafe for CastWire
impl Send for CastWire
impl Sync for CastWire
impl Unpin for CastWire
impl UnsafeUnpin for CastWire
impl !UnwindSafe for CastWire
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more