pub struct CMGeometry {
pub vertices: VerticesData,
pub volume_elements: VolumeElementData,
grid: Option<Box<dyn CompartmentMesh>>,
pub mesh_type: MeshType,
}Fields§
§vertices: VerticesData§volume_elements: VolumeElementData§grid: Option<Box<dyn CompartmentMesh>>§mesh_type: MeshTypeImplementations§
Source§impl CMGeometry
impl CMGeometry
fn fill_detail(&mut self, geometry: &Arc<Geometry>) -> (Vec<usize>, Vec<usize>)
fn init_cm_grid(&mut self, n_div: [usize; 3], mesh_type: MeshType)
fn detect_compartment(&mut self, n_div: [usize; 3], mesh_type: MeshType)
pub fn get_element_centroid( &self, vol_element_global_id: usize, n_vertex: usize, ) -> CartesianCoordinates
Source§impl CMGeometry
impl CMGeometry
pub fn n_zone(&self) -> usize
pub(super) fn interface_iter( &self, ) -> impl Iterator<Item = (usize, usize, usize, usize)> + '_
pub fn fill_vertices( &self, volume_element_global_id: usize, n_vertex: usize, local_vertices: &mut Vec<CartesianCoordinates>, )
pub fn get_count_volume_element_first_pass(&self) -> CountVolumeElement
pub fn init( n_div: [usize; 3], geometry: Arc<Geometry>, mesh_type: MeshType, ) -> Self
pub fn get_grid(&self) -> Option<&dyn CompartmentMesh>
Auto Trait Implementations§
impl Freeze for CMGeometry
impl !RefUnwindSafe for CMGeometry
impl Send for CMGeometry
impl Sync for CMGeometry
impl Unpin for CMGeometry
impl UnsafeUnpin for CMGeometry
impl !UnwindSafe for CMGeometry
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.