pub enum DomainKind {
Plane {
z0: f64,
},
Sphere {
radius: f64,
},
FarFieldSphere,
Cylinder {
radius: f64,
},
Box,
SphericalShell,
CylindricalVolume,
}Expand description
The geometry a Domain describes.
Variants§
Plane
The plane z = z0, axes (x, y).
Sphere
The sphere of radius radius, axes (θ, φ).
FarFieldSphere
Directions on the sphere at infinity (far fields), axes (θ, φ); positions are unit vectors.
Cylinder
The cylinder ρ = radius, axes (φ, z).
Box
A Cartesian box, axes (x, y, z).
SphericalShell
A spherical shell or ball, axes (r, θ, φ).
CylindricalVolume
A cylindrical volume, axes (ρ, φ, z).
Implementations§
Source§impl DomainKind
impl DomainKind
Sourcepub fn system(self) -> CoordinateSystem
pub fn system(self) -> CoordinateSystem
The coordinate system the axes are expressed in.
pub fn is_surface(self) -> bool
Trait Implementations§
Source§impl Clone for DomainKind
impl Clone for DomainKind
impl Copy for DomainKind
Source§impl Debug for DomainKind
impl Debug for DomainKind
Source§impl PartialEq for DomainKind
impl PartialEq for DomainKind
impl StructuralPartialEq for DomainKind
Auto Trait Implementations§
impl Freeze for DomainKind
impl RefUnwindSafe for DomainKind
impl Send for DomainKind
impl Sync for DomainKind
impl Unpin for DomainKind
impl UnsafeUnpin for DomainKind
impl UnwindSafe for DomainKind
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