pub struct VtkTimeSeries {
pub times: Vec<f64>,
pub grids: Vec<VtuGrid>,
pub base_name: String,
}Expand description
A time series of VtuGrid snapshots.
Fields§
§times: Vec<f64>The simulation time of each snapshot.
grids: Vec<VtuGrid>The grid snapshot at each time.
base_name: StringBase file name (without extension) for output files.
Implementations§
Source§impl VtkTimeSeries
impl VtkTimeSeries
Sourcepub fn to_pvd_string(&self) -> String
pub fn to_pvd_string(&self) -> String
Generate a PVD collection file referencing all snapshots.
File names are {base_name}_{step:05}.vtu.
Sourcepub fn vtu_string(&self, i: usize) -> Option<String>
pub fn vtu_string(&self, i: usize) -> Option<String>
Get the VTU XML string for snapshot i.
Sourcepub fn estimated_size_bytes(&self) -> usize
pub fn estimated_size_bytes(&self) -> usize
Return estimated total data size in bytes (rough: 30 chars per point).
Auto Trait Implementations§
impl Freeze for VtkTimeSeries
impl RefUnwindSafe for VtkTimeSeries
impl Send for VtkTimeSeries
impl Sync for VtkTimeSeries
impl Unpin for VtkTimeSeries
impl UnsafeUnpin for VtkTimeSeries
impl UnwindSafe for VtkTimeSeries
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<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.