pub struct CheckOptions {
pub cells_per_wavelength: f64,
pub min_cells_per_wavelength: f64,
pub max_grading: f64,
pub timestep_ratio: f64,
pub pml_max_spread: f64,
pub snap_tolerance: f64,
pub update_model: bool,
}Expand description
Thresholds of the mesh checks.
Fields§
§cells_per_wavelength: f64Required cells per local wavelength at f_max (default 20); fewer
gives a Severity::Warning.
min_cells_per_wavelength: f64Below this many cells per wavelength (default 10) the issue is a
Severity::Error.
max_grading: f64Largest allowed neighbour cell size ratio (default 1.5).
timestep_ratio: f64Warn when dt is below this fraction of the time step the median
cells would allow (default 0.2).
pml_max_spread: f64Warn when the largest and smallest cell inside a PML differ by more than this factor (default 2).
snap_tolerance: f64Relative tolerance (of the local cell size) for sheets and lines to count as lying on a mesh line (default 1e-6, as the compile step).
update_model: boolRe-evaluate parametric values on a clone of the model first
(default true).
Implementations§
Source§impl CheckOptions
impl CheckOptions
Sourcepub fn cells_per_wavelength(self, n: f64) -> Self
pub fn cells_per_wavelength(self, n: f64) -> Self
Sets cells_per_wavelength.
Sourcepub fn min_cells_per_wavelength(self, n: f64) -> Self
pub fn min_cells_per_wavelength(self, n: f64) -> Self
Sets min_cells_per_wavelength.
Sourcepub fn max_grading(self, r: f64) -> Self
pub fn max_grading(self, r: f64) -> Self
Sets max_grading.
Sourcepub fn timestep_ratio(self, r: f64) -> Self
pub fn timestep_ratio(self, r: f64) -> Self
Sets timestep_ratio.
Sourcepub fn pml_max_spread(self, r: f64) -> Self
pub fn pml_max_spread(self, r: f64) -> Self
Sets pml_max_spread.