pub enum TimeConvention {
PlusJ,
MinusI,
}Expand description
The sign convention relating a phasor X to its real signal.
Variants§
PlusJ
x(t) = Re{X e^{+jωt}} (engineering). Outgoing waves are e^{-jkr}, ∂/∂t → +jω.
MinusI
x(t) = Re{X e^{-iωt}} (physics). Outgoing waves are e^{+ikr}, ∂/∂t → -iω.
Implementations§
Source§impl TimeConvention
impl TimeConvention
Sourcepub fn time_derivative(self, omega: f64) -> C64
pub fn time_derivative(self, omega: f64) -> C64
The factor that ∂/∂t becomes: +jω or -iω.
Sourcepub fn outgoing(self, k: C64, r: f64) -> C64
pub fn outgoing(self, k: C64, r: f64) -> C64
The outgoing spherical wave phase e^{-jkr} (or e^{+ikr}) for a possibly complex k.
Sourcepub fn convert(self, value: C64, other: TimeConvention) -> C64
pub fn convert(self, value: C64, other: TimeConvention) -> C64
Re-expresses a phasor written in this convention in the other convention (complex
conjugation when they differ), so both describe the same real signal.
Trait Implementations§
Source§impl Clone for TimeConvention
impl Clone for TimeConvention
impl Copy for TimeConvention
Source§impl Debug for TimeConvention
impl Debug for TimeConvention
Source§impl Default for TimeConvention
impl Default for TimeConvention
impl Eq for TimeConvention
Source§impl PartialEq for TimeConvention
impl PartialEq for TimeConvention
impl StructuralPartialEq for TimeConvention
Auto Trait Implementations§
impl Freeze for TimeConvention
impl RefUnwindSafe for TimeConvention
impl Send for TimeConvention
impl Sync for TimeConvention
impl Unpin for TimeConvention
impl UnsafeUnpin for TimeConvention
impl UnwindSafe for TimeConvention
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