pub type MeshCylindrical = BaseCompartmentMesh<CylindricalMarker>;Expand description
Cylindrical Compartment mesh structure for spatial modeling.
Aliased Type§
pub struct MeshCylindrical {
axes: [CoordAxis; 3],
n_cells: usize,
_marker: PhantomData<CylindricalMarker>,
}Fields§
§axes: [CoordAxis; 3]The axes of the coordinate system for the mesh.
This array contains three CoordAxis instances, each representing one of the
principal axes
n_cells: usizeThe total number of cells in the mesh.
This field stores the count of cells within the compartmental mesh.
_marker: PhantomData<CylindricalMarker>PhantomData marker for generic type T.
This field is used to mark the generic type T in the struct without actually storing data.
Trait Implementations§
Source§impl CompartmentMeshManip for MeshCylindrical
impl CompartmentMeshManip for MeshCylindrical
Source§fn n_maximum_interface(&self) -> usize
fn n_maximum_interface(&self) -> usize
Returns the maximum number of interfaces a cell can have in this mesh. Read more
fn get_interface_plane( &self, cell1_id: usize, cell2_id: usize, ) -> (BoundedPlane, usize)
Source§fn are_cell_neighbor(
&self,
cell1_id: usize,
cell2_id: usize,
) -> NeighborDirection
fn are_cell_neighbor( &self, cell1_id: usize, cell2_id: usize, ) -> NeighborDirection
Determines if two cells are neighbors and returns the direction of neighborhood. Read more
Source§fn cell_surface(&self, cell_id: usize, i_axis: OrientedAxis) -> f64
fn cell_surface(&self, cell_id: usize, i_axis: OrientedAxis) -> f64
Computes the surface area of a specified cell. Read more
Source§fn cell_volume(&self, cell_id: usize) -> f64
fn cell_volume(&self, cell_id: usize) -> f64
Computes the volume of a specified cell. Read more
fn cell_from_ax_points(&self, axis_points: &AxisPoints) -> Option<usize>
Source§fn cell_from_coordinates(&self, coords: &Coords3) -> Option<usize>
fn cell_from_coordinates(&self, coords: &Coords3) -> Option<usize>
Finds the cell ID corresponding to specific 3D coordinates. Read more
Source§fn is_point_inside(&self, _cell_id: usize, _point_coords: &Coords3) -> bool
fn is_point_inside(&self, _cell_id: usize, _point_coords: &Coords3) -> bool
Checks if a point is inside a specified cell. Read more
Source§fn cell_points(&self, cell_1d: usize) -> AxisPoints
fn cell_points(&self, cell_1d: usize) -> AxisPoints
Retrieves the points index defining a specified cell. Read more