pub struct TecplotZone {
pub title: String,
pub zone_type: TecplotZoneType,
pub i_dim: usize,
pub j_dim: usize,
pub k_dim: usize,
pub variables: Vec<TecplotVariable>,
pub n_nodes: usize,
pub n_elements: usize,
}Expand description
A single Tecplot zone containing one or more variables.
Fields§
§title: StringZone title string.
zone_type: TecplotZoneTypeZone topology.
i_dim: usizeNumber of nodes in the I direction (ordered zones).
j_dim: usizeNumber of nodes in the J direction (ordered zones).
k_dim: usizeNumber of nodes in the K direction (ordered zones).
variables: Vec<TecplotVariable>Variable data for this zone.
n_nodes: usizeNumber of nodes (FE zones).
n_elements: usizeNumber of elements (FE zones).
Implementations§
Source§impl TecplotZone
impl TecplotZone
Sourcepub fn new_ordered(
title: impl Into<String>,
i_dim: usize,
j_dim: usize,
k_dim: usize,
) -> Self
pub fn new_ordered( title: impl Into<String>, i_dim: usize, j_dim: usize, k_dim: usize, ) -> Self
Create a new ordered zone with the given IJK dimensions.
Sourcepub fn new_fe(
title: impl Into<String>,
zone_type: TecplotZoneType,
n_nodes: usize,
n_elements: usize,
) -> Self
pub fn new_fe( title: impl Into<String>, zone_type: TecplotZoneType, n_nodes: usize, n_elements: usize, ) -> Self
Create a new finite-element zone.
Sourcepub fn point_count(&self) -> usize
pub fn point_count(&self) -> usize
Total number of data points expected in this zone.
Trait Implementations§
Source§impl Clone for TecplotZone
impl Clone for TecplotZone
Source§fn clone(&self) -> TecplotZone
fn clone(&self) -> TecplotZone
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TecplotZone
impl RefUnwindSafe for TecplotZone
impl Send for TecplotZone
impl Sync for TecplotZone
impl Unpin for TecplotZone
impl UnsafeUnpin for TecplotZone
impl UnwindSafe for TecplotZone
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.