pub struct BemProblem {
pub mesh: Mesh,
pub physics: PhysicsParams,
pub incident_field: IncidentField,
pub bc_type: BoundaryConditionType,
pub use_burton_miller: bool,
}Expand description
Definition of a BEM problem
Fields§
§mesh: MeshProblem geometry mesh
physics: PhysicsParamsPhysical parameters
incident_field: IncidentFieldIncident field
bc_type: BoundaryConditionTypeBoundary condition type
use_burton_miller: boolUse Burton-Miller formulation (recommended for exterior problems)
Implementations§
Source§impl BemProblem
impl BemProblem
Sourcepub fn rigid_sphere_scattering(
radius: f64,
frequency: f64,
speed_of_sound: f64,
density: f64,
) -> Self
pub fn rigid_sphere_scattering( radius: f64, frequency: f64, speed_of_sound: f64, density: f64, ) -> Self
Create a rigid sphere scattering problem with plane wave incidence
§Arguments
radius- Sphere radius (m)frequency- Excitation frequency (Hz)speed_of_sound- Speed of sound (m/s)density- Medium density (kg/m�)
Sourcepub fn rigid_sphere_scattering_custom(
radius: f64,
frequency: f64,
speed_of_sound: f64,
density: f64,
n_theta: usize,
n_phi: usize,
) -> Self
pub fn rigid_sphere_scattering_custom( radius: f64, frequency: f64, speed_of_sound: f64, density: f64, n_theta: usize, n_phi: usize, ) -> Self
Create a rigid sphere scattering problem with custom mesh resolution
Sourcepub fn with_incident_field(self, field: IncidentField) -> Self
pub fn with_incident_field(self, field: IncidentField) -> Self
Set the incident field
Sourcepub fn with_boundary_condition(self, bc_type: BoundaryConditionType) -> Self
pub fn with_boundary_condition(self, bc_type: BoundaryConditionType) -> Self
Set the boundary condition type
Sourcepub fn with_burton_miller(self, use_bm: bool) -> Self
pub fn with_burton_miller(self, use_bm: bool) -> Self
Enable/disable Burton-Miller formulation
Trait Implementations§
Source§impl Clone for BemProblem
impl Clone for BemProblem
Source§fn clone(&self) -> BemProblem
fn clone(&self) -> BemProblem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BemProblem
impl RefUnwindSafe for BemProblem
impl Send for BemProblem
impl Sync for BemProblem
impl Unpin for BemProblem
impl UnsafeUnpin for BemProblem
impl UnwindSafe for BemProblem
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