pub struct AdaptiveMeshConfig {
pub base_resolution: f64,
pub source_refinement: f64,
pub source_refinement_radius: f64,
}Expand description
Adaptive mesh configuration
Fields§
§base_resolution: f64Base resolution (elements per meter)
source_refinement: f64Refinement factor near sources (1.0 = no refinement)
source_refinement_radius: f64Radius around sources where refinement is applied (meters)
Implementations§
Source§impl AdaptiveMeshConfig
impl AdaptiveMeshConfig
Sourcepub fn for_frequency_range(min_freq: f64, max_freq: f64) -> Self
pub fn for_frequency_range(min_freq: f64, max_freq: f64) -> Self
Create configuration for a frequency range
Sourcepub fn from_resolution(resolution: f64) -> Self
pub fn from_resolution(resolution: f64) -> Self
Create configuration from a fixed resolution
Auto Trait Implementations§
impl Freeze for AdaptiveMeshConfig
impl RefUnwindSafe for AdaptiveMeshConfig
impl Send for AdaptiveMeshConfig
impl Sync for AdaptiveMeshConfig
impl Unpin for AdaptiveMeshConfig
impl UnwindSafe for AdaptiveMeshConfig
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> 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