pub enum CellSelection {
All,
Zone(Arc<Vec<usize>>),
}Expand description
The set of cells a source term acts on.
Upstream’s fvCellZone / cellSetOption. A source is almost never global:
a heat source occupies one component, a porous drag one region, a melting
model one material. This is how that restriction is expressed.
§Sharing
The cell list is held behind an Arc, per the workspace rule against
lifetime parameters, so several models can share one selection without
copying it.
Variants§
All
Every cell in the mesh.
Zone(Arc<Vec<usize>>)
An explicit list of cell indices.
Indices are not validated against a mesh here, because a selection is built before it meets one. An out-of-range index will panic on use, which is the correct outcome for what is a case-setup error.
Implementations§
Source§impl CellSelection
impl CellSelection
Trait Implementations§
Source§impl Clone for CellSelection
impl Clone for CellSelection
Source§impl Debug for CellSelection
impl Debug for CellSelection
impl Eq for CellSelection
Source§impl PartialEq for CellSelection
impl PartialEq for CellSelection
impl StructuralPartialEq for CellSelection
Auto Trait Implementations§
impl Freeze for CellSelection
impl RefUnwindSafe for CellSelection
impl Send for CellSelection
impl Sync for CellSelection
impl Unpin for CellSelection
impl UnsafeUnpin for CellSelection
impl UnwindSafe for CellSelection
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