#[repr(C, align(64))]pub struct EmfCellRecord64 {
pub e_field: [f32; 3],
pub b_field: [f32; 3],
pub poynting_flux: f32,
pub wavelength_nm: f32,
pub refractive_n: f32,
pub extinction_k: f32,
pub coherence_phase: f32,
pub stokes_q: f32,
pub stokes_u: f32,
pub stokes_v: f32,
pub spectral_sigma: f32,
pub confidence_alpha: f32,
}Expand description
64-byte Electromagnetic & Wave-Optical Voxel Cell Record (16 × f32).
Fields§
§e_field: [f32; 3]Electric field vector [Ex, Ey, Ez] in V/m
b_field: [f32; 3]Magnetic field vector [Bx, By, Bz] in Tesla
poynting_flux: f32Poynting flux magnitude in W/m²
wavelength_nm: f32Optical/EM wavelength in nm
refractive_n: f32Real refractive index n
extinction_k: f32Extinction coefficient kappa
coherence_phase: f32Coherence phase in radians
stokes_q: f32Stokes parameter Q
stokes_u: f32Stokes parameter U
stokes_v: f32Stokes parameter V
spectral_sigma: f32Spectral band index and intensity
confidence_alpha: f32Measurement / simulation confidence weight [0.0..1.0]
Implementations§
Source§impl EmfCellRecord64
impl EmfCellRecord64
Sourcepub fn from_legacy_52b(legacy: &[f32; 13]) -> Self
pub fn from_legacy_52b(legacy: &[f32; 13]) -> Self
Upcast a legacy 52-byte record (13 × f32) into a 64-byte aligned cell record.
Upcasts [amplitude, phase, frequency, manifold[10]] to full 64B electromagnetic state.
Sourcepub fn poynting_vector(&self) -> [f32; 3]
pub fn poynting_vector(&self) -> [f32; 3]
Compute Poynting vector S = (E x B) / mu_0 in W/m².
Sourcepub fn poynting_flux_magnitude(&self) -> f32
pub fn poynting_flux_magnitude(&self) -> f32
Magnitude of the computed Poynting flux vector |S|.
Sourcepub fn e_magnitude(&self) -> f32
pub fn e_magnitude(&self) -> f32
|E| in V/m.
Sourcepub fn optical_frequency_hz(&self) -> f32
pub fn optical_frequency_hz(&self) -> f32
Optical frequency in Hz from wavelength_nm, or 0 when the cell is quasi-static.
Sourcepub fn effective_sigma(&self) -> f32
pub fn effective_sigma(&self) -> f32
σ used by AcousticPlane and CIE display. Authored spectral_sigma wins;
otherwise fold 400–700 nm into [0, 1] the same way sigma_to_wavelength_nm inverts.
Sourcepub fn energy_density(&self) -> f32
pub fn energy_density(&self) -> f32
Total electromagnetic energy density u_EM = 0.5 * (epsilon_0 * |E|^2 + |B|^2 / mu_0) in J/m³.
Trait Implementations§
Source§impl Clone for EmfCellRecord64
impl Clone for EmfCellRecord64
impl Copy for EmfCellRecord64
Source§impl Debug for EmfCellRecord64
impl Debug for EmfCellRecord64
Source§impl Default for EmfCellRecord64
impl Default for EmfCellRecord64
Source§impl PartialEq for EmfCellRecord64
impl PartialEq for EmfCellRecord64
impl Pod for EmfCellRecord64
impl StructuralPartialEq for EmfCellRecord64
Auto Trait Implementations§
impl Freeze for EmfCellRecord64
impl RefUnwindSafe for EmfCellRecord64
impl Send for EmfCellRecord64
impl Sync for EmfCellRecord64
impl Unpin for EmfCellRecord64
impl UnsafeUnpin for EmfCellRecord64
impl UnwindSafe for EmfCellRecord64
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
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> ⓘ
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> ⓘ
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