pub struct ZeldovichSingleMode {
pub mean_density: f64,
pub amplitude: f64,
pub wavenumber: f64,
pub sigma_v: f64,
}Expand description
Simple single-mode Zel’dovich pancake IC for validation tests.
Fields§
§mean_density: f64§amplitude: f64§wavenumber: f64§sigma_v: f64Implementations§
Source§impl ZeldovichSingleMode
impl ZeldovichSingleMode
Sourcepub fn sample_on_grid(&self, domain: &Domain) -> PhaseSpaceSnapshot
pub fn sample_on_grid(&self, domain: &Domain) -> PhaseSpaceSnapshot
Sample f(x,v) = ρ̄/(√(2π)σ_v)³ · exp(-(v - v₀(x))²/(2σ_v²)) where v₀(x) = (-A·sin(k·x₁), 0, 0)
Auto Trait Implementations§
impl Freeze for ZeldovichSingleMode
impl RefUnwindSafe for ZeldovichSingleMode
impl Send for ZeldovichSingleMode
impl Sync for ZeldovichSingleMode
impl Unpin for ZeldovichSingleMode
impl UnsafeUnpin for ZeldovichSingleMode
impl UnwindSafe for ZeldovichSingleMode
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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