pub struct VolField<T: Clone> {
pub name: String,
pub mesh: Arc<FvMesh>,
pub internal: Field<T>,
pub boundary: Vec<PatchField<T>>,
}Expand description
A volume field: one value per cell in the internal field, plus one
PatchField per boundary patch.
Mirrors Foam::volScalarField / Foam::VolumeField<Type>.
The internal field has length mesh.n_cells.
Fields§
§name: String§mesh: Arc<FvMesh>§internal: Field<T>Cell-centred values; length == mesh.n_cells.
boundary: Vec<PatchField<T>>One entry per boundary patch; boundary[i].values has length
mesh.patches[i].size.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for VolField<T>
impl<T> RefUnwindSafe for VolField<T>where
T: RefUnwindSafe,
impl<T> Send for VolField<T>where
T: Send,
impl<T> Sync for VolField<T>where
T: Sync,
impl<T> Unpin for VolField<T>where
T: Unpin,
impl<T> UnsafeUnpin for VolField<T>
impl<T> UnwindSafe for VolField<T>where
T: UnwindSafe,
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