pub struct BemConfig {
pub description: String,
pub physics: PhysicsConfig,
pub mesh: MeshConfig,
pub solver: SolverConfig,
pub bem: BemMethodConfig,
pub boundary_conditions: Vec<BoundaryConditionConfig>,
pub sources: SourceConfig,
pub output: OutputConfig,
}Expand description
Native BEM configuration
Fields§
§description: StringProblem description
physics: PhysicsConfigPhysics parameters
mesh: MeshConfigMesh configuration
solver: SolverConfigSolver configuration
bem: BemMethodConfigBEM method configuration
boundary_conditions: Vec<BoundaryConditionConfig>Boundary conditions
sources: SourceConfigExcitation sources
output: OutputConfigOutput configuration
Implementations§
Source§impl BemConfig
impl BemConfig
Sourcepub fn to_physics_params(&self) -> PhysicsParams
pub fn to_physics_params(&self) -> PhysicsParams
Create PhysicsParams from configuration
Sourcepub fn bem_method(&self) -> BemMethod
pub fn bem_method(&self) -> BemMethod
Get BEM method from configuration
Sourcepub fn solver_method(&self) -> SolverMethod
pub fn solver_method(&self) -> SolverMethod
Get solver method from configuration
Sourcepub fn load_nodes(&self, base_dir: &Path) -> Result<Array2<f64>, ConfigError>
pub fn load_nodes(&self, base_dir: &Path) -> Result<Array2<f64>, ConfigError>
Load nodes from configuration
Sourcepub fn load_elements(
&self,
base_dir: &Path,
) -> Result<Vec<Element>, ConfigError>
pub fn load_elements( &self, base_dir: &Path, ) -> Result<Vec<Element>, ConfigError>
Load elements from configuration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BemConfig
impl<'de> Deserialize<'de> for BemConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BemConfig
impl RefUnwindSafe for BemConfig
impl Send for BemConfig
impl Sync for BemConfig
impl Unpin for BemConfig
impl UnsafeUnpin for BemConfig
impl UnwindSafe for BemConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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