pub struct VolumeElementData {
global_id: Vec<Vec<usize>>,
vtype: Vec<VolumeElementTypes>,
ids: Vec<usize>,
vertices: Vec<usize>,
pub xyz: Vec<CartesianCoordinates>,
vertices_cell_id: Vec<usize>,
nc_id: Vec<usize>,
compartment_ids: Vec<usize>,
}Fields§
§global_id: Vec<Vec<usize>>§vtype: Vec<VolumeElementTypes>§ids: Vec<usize>§vertices: Vec<usize>§xyz: Vec<CartesianCoordinates>§vertices_cell_id: Vec<usize>§nc_id: Vec<usize>§compartment_ids: Vec<usize>Implementations§
Source§impl VolumeElementData
impl VolumeElementData
pub fn get_vertex_per_element(&self, global_id: usize) -> usize
pub fn get_element_and_nvertex( &self, global_id: usize, ) -> (VolumeElementTypes, usize)
pub fn set_number_cid(&mut self, global_id: usize, n_cid: usize)
pub fn get_number_cid(&self, global_id: usize) -> usize
pub fn enumerate_number_id(&self) -> Enumerate<Iter<'_, usize>>
pub fn resize( &mut self, n_part: usize, n_velement: usize, velement_detail: &[usize], )
pub fn n_element(&self) -> usize
pub fn set_list_compartment_id( &mut self, global_id: usize, k_vertex: usize, val: usize, )
pub fn get_list_compartment_id( &self, global_id: usize, k_vertex: usize, ) -> usize
pub fn set_global_id( &mut self, i_part: usize, element_index: usize, volume_element_id: usize, val: usize, )
pub fn get_global_id( &self, i_part: usize, element_index: usize, volume_element_id: usize, ) -> usize
pub fn get_vertex_from_vol_global_id( &self, vol_element_global_id: usize, k_vertex: usize, ) -> usize
fn set_vertex_from_vol_global_id( &mut self, vol_element_global_id: usize, k_vertex: usize, val: usize, )
pub fn fill_from_part( &mut self, global_volume_element_counter: usize, part_it: (usize, &Part), velem_detail: &[usize], vertices: &VerticesData, ) -> usize
Trait Implementations§
Source§impl Debug for VolumeElementData
impl Debug for VolumeElementData
Source§impl Default for VolumeElementData
impl Default for VolumeElementData
Source§fn default() -> VolumeElementData
fn default() -> VolumeElementData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VolumeElementData
impl RefUnwindSafe for VolumeElementData
impl Send for VolumeElementData
impl Sync for VolumeElementData
impl Unpin for VolumeElementData
impl UnsafeUnpin for VolumeElementData
impl UnwindSafe for VolumeElementData
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.