pub struct FoamMesh {
pub points: Vec<f64>,
pub faces: Vec<Vec<usize>>,
pub owner: Vec<usize>,
pub neighbour: Vec<usize>,
}Expand description
An OpenFOAM polyMesh in memory.
This is a simplified in-memory representation of the files found in
constant/polyMesh/.
Fields§
§points: Vec<f64>Points: flat [x0, y0, z0, x1, y1, z1, …].
faces: Vec<Vec<usize>>Faces: each face is a list of point indices.
owner: Vec<usize>Owner cell index for each face.
neighbour: Vec<usize>Neighbour cell index for each internal face.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FoamMesh
impl RefUnwindSafe for FoamMesh
impl Send for FoamMesh
impl Sync for FoamMesh
impl Unpin for FoamMesh
impl UnsafeUnpin for FoamMesh
impl UnwindSafe for FoamMesh
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.