Skip to main content

MeshRectangular

Type Alias MeshRectangular 

Source
pub type MeshRectangular = BaseCompartmentMesh<RectangularMarker>;
Expand description

Cuboid Compartment mesh structure for spatial modeling.

Aliased Type§

pub struct MeshRectangular {
    axes: [CoordAxis; 3],
    n_cells: usize,
    _marker: PhantomData<RectangularMarker>,
}

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: usize

The total number of cells in the mesh.

This field stores the count of cells within the compartmental mesh.

§_marker: PhantomData<RectangularMarker>

PhantomData marker for generic type T.

This field is used to mark the generic type T in the struct without actually storing data.