pub struct PlateModel<T: Transcendental> { /* private fields */ }Expand description
2D plate model using FDTD waveguide mesh.
Pre-allocates two full grids (grid_prev, grid_curr) plus a scratch
buffer. All grid updates happen inside process() — RT-safe, no allocation.
Implementations§
Source§impl<T: Transcendental> PlateModel<T>
impl<T: Transcendental> PlateModel<T>
Sourcepub fn new(params: PlateParams<T>) -> Self
pub fn new(params: PlateParams<T>) -> Self
Create a plate model with the given grid dimensions.
The grid is pre-allocated. wave_speed must be ≤ 0.25 for stability.
Trait Implementations§
Source§impl<T: Transcendental> Algorithm<T> for PlateModel<T>
impl<T: Transcendental> Algorithm<T> for PlateModel<T>
Source§fn process(
&mut self,
input: Option<&[T]>,
output: &mut [T],
) -> ProcessResult<()>
fn process( &mut self, input: Option<&[T]>, output: &mut [T], ) -> ProcessResult<()>
Process one block of signal. Read more
Source§fn metadata(&self) -> AlgorithmMetadata
fn metadata(&self) -> AlgorithmMetadata
Descriptive metadata (defaults to empty).
Source§fn apply_command(&mut self, _value: T)
fn apply_command(&mut self, _value: T)
Receive a real-time command value from the control path. Read more
Source§impl<T: Clone + Transcendental> Clone for PlateModel<T>
impl<T: Clone + Transcendental> Clone for PlateModel<T>
Source§fn clone(&self) -> PlateModel<T>
fn clone(&self) -> PlateModel<T>
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 moreSource§impl<T: Debug + Transcendental> Debug for PlateModel<T>
impl<T: Debug + Transcendental> Debug for PlateModel<T>
Source§impl<T: Transcendental> ParameterizedAlgorithm<T> for PlateModel<T>
impl<T: Transcendental> ParameterizedAlgorithm<T> for PlateModel<T>
Source§type Params = PlateParams<T>
type Params = PlateParams<T>
The concrete parameter type for this algorithm.
Source§fn set_params(&mut self, params: Self::Params)
fn set_params(&mut self, params: Self::Params)
Replace all parameters atomically. Read more
Source§fn set_parameter(
&mut self,
name: &str,
value: ParamValue,
) -> Result<(), &'static str>
fn set_parameter( &mut self, name: &str, value: ParamValue, ) -> Result<(), &'static str>
Set a single parameter by name (for automation / scripting). Read more
Auto Trait Implementations§
impl<T> Freeze for PlateModel<T>where
T: Freeze,
impl<T> RefUnwindSafe for PlateModel<T>where
T: RefUnwindSafe,
impl<T> Send for PlateModel<T>
impl<T> Sync for PlateModel<T>
impl<T> Unpin for PlateModel<T>where
T: Unpin,
impl<T> UnsafeUnpin for PlateModel<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PlateModel<T>where
T: UnwindSafe,
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