pub struct CgnsWriter {
pub file: CgnsFile,
}Expand description
High-level writer that assembles a structured grid with a flow solution
and delegates to CgnsFile::write_text.
Fields§
§file: CgnsFileThe file being assembled.
Implementations§
Source§impl CgnsWriter
impl CgnsWriter
Sourcepub fn write_structured_grid(
&mut self,
base_name: &str,
zone_name: &str,
x: Vec<f64>,
y: Vec<f64>,
z: Vec<f64>,
solution: Option<FlowSolution>,
path: &str,
) -> Result<(), IoError>
pub fn write_structured_grid( &mut self, base_name: &str, zone_name: &str, x: Vec<f64>, y: Vec<f64>, z: Vec<f64>, solution: Option<FlowSolution>, path: &str, ) -> Result<(), IoError>
Write a structured grid zone (with optional flow solution) to path.
base_name— name of the CGNS base node.zone_name— name of the zone.x,y,z— coordinate arrays of equal length.solution— optional flow solution to attach.path— output file path.
Trait Implementations§
Source§impl Debug for CgnsWriter
impl Debug for CgnsWriter
Auto Trait Implementations§
impl Freeze for CgnsWriter
impl RefUnwindSafe for CgnsWriter
impl Send for CgnsWriter
impl Sync for CgnsWriter
impl Unpin for CgnsWriter
impl UnsafeUnpin for CgnsWriter
impl UnwindSafe for CgnsWriter
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.