pub struct PseudospectralMethod {
pub grid_type: String,
pub num_modes: usize,
}Expand description
Pseudospectral collocation method.
Fields§
§grid_type: StringType of collocation grid (“chebyshev”, “legendre”, “fourier”, …).
num_modes: usizeNumber of collocation modes.
Implementations§
Source§impl PseudospectralMethod
impl PseudospectralMethod
Sourcepub fn new(grid_type: impl Into<String>, num_modes: usize) -> Self
pub fn new(grid_type: impl Into<String>, num_modes: usize) -> Self
Create a new PseudospectralMethod.
Sourcepub fn aliasing_condition(&self) -> usize
pub fn aliasing_condition(&self) -> usize
Aliasing condition: the 2/3-rule requires N_phys ≥ (3/2) N_modes.
Sourcepub fn dealiasing_rule(&self) -> usize
pub fn dealiasing_rule(&self) -> usize
Recommended dealiasing padding (number of additional physical points).
Auto Trait Implementations§
impl Freeze for PseudospectralMethod
impl RefUnwindSafe for PseudospectralMethod
impl Send for PseudospectralMethod
impl Sync for PseudospectralMethod
impl Unpin for PseudospectralMethod
impl UnsafeUnpin for PseudospectralMethod
impl UnwindSafe for PseudospectralMethod
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