pub struct ElectroMagnetic {
pub rel_permeability: f64,
pub conductivity: f64,
pub steinmetz_k_h: f64,
pub steinmetz_n: f64,
pub eddy_current_k_e: f64,
pub frequency: f64,
}Expand description
Electromagnetic material properties: permeability, losses, skin depth.
Fields§
§rel_permeability: f64Relative permeability μr.
conductivity: f64Electrical conductivity σ (S/m).
steinmetz_k_h: f64Steinmetz coefficient k_h for hysteresis loss.
steinmetz_n: f64Steinmetz exponent n.
eddy_current_k_e: f64Eddy current coefficient k_e.
frequency: f64Operating frequency (Hz).
Implementations§
Source§impl ElectroMagnetic
impl ElectroMagnetic
Sourcepub fn silicon_steel() -> Self
pub fn silicon_steel() -> Self
Creates a silicon steel model (electrical steel).
Sourcepub fn permeability(&self) -> f64
pub fn permeability(&self) -> f64
Absolute permeability μ = μ0 * μr (H/m).
Sourcepub fn skin_depth(&self) -> f64
pub fn skin_depth(&self) -> f64
Skin depth δ = sqrt(2 / (ω * σ * μ)) (m).
Sourcepub fn hysteresis_loss(&self, b_max: f64) -> f64
pub fn hysteresis_loss(&self, b_max: f64) -> f64
Hysteresis loss (Steinmetz): P_h = k_h * f * B^n (W/m³ per cycle normalized).
Sourcepub fn eddy_current_loss(&self, b_max: f64) -> f64
pub fn eddy_current_loss(&self, b_max: f64) -> f64
Eddy current loss: P_e = k_e * f² * B² (W/m³).
Sourcepub fn total_core_loss(&self, b_max: f64) -> f64
pub fn total_core_loss(&self, b_max: f64) -> f64
Total core loss: P_total = P_h + P_e.
Sourcepub fn inductance_per_length(&self, n_turns_per_m: f64, area_m2: f64) -> f64
pub fn inductance_per_length(&self, n_turns_per_m: f64, area_m2: f64) -> f64
Inductance per unit length for a solenoid (H/m).
Trait Implementations§
Source§impl Clone for ElectroMagnetic
impl Clone for ElectroMagnetic
Source§fn clone(&self) -> ElectroMagnetic
fn clone(&self) -> ElectroMagnetic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ElectroMagnetic
impl RefUnwindSafe for ElectroMagnetic
impl Send for ElectroMagnetic
impl Sync for ElectroMagnetic
impl Unpin for ElectroMagnetic
impl UnsafeUnpin for ElectroMagnetic
impl UnwindSafe for ElectroMagnetic
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