Skip to main content

Module tecplot_format

Module tecplot_format 

Source
Expand description

Tecplot ASCII format I/O.

Supports reading and writing Tecplot .dat / .plt ASCII files with ORDERED and FE (finite element) zone types. The implementation covers the minimal subset of the Tecplot ASCII specification needed for typical physics simulation output.

§Quick start

use oxiphysics_io::tecplot_format::{
    TecplotDataset, TecplotVariable, TecplotZone, TecplotZoneType,
};

let mut ds = TecplotDataset::new("My Dataset");
ds.variables = vec!["X".to_string(), "Y".to_string(), "P".to_string()];
let mut zone = TecplotZone::new_ordered("Zone 1", 3, 1, 1);
zone.variables.push(TecplotVariable::new("X", vec![0.0, 1.0, 2.0]));
zone.variables.push(TecplotVariable::new("Y", vec![0.0, 0.0, 0.0]));
zone.variables.push(TecplotVariable::new("P", vec![1.0, 2.0, 3.0]));
ds.zones.push(zone);
ds.write("/tmp/quick_start_test.dat").unwrap();

Structs§

TecplotDataset
A complete Tecplot dataset (title + variable list + zones).
TecplotReader
Parses a subset of Tecplot ASCII files.
TecplotVariable
A single named variable (field) in a Tecplot zone.
TecplotWriter
Writes a TecplotDataset to a Tecplot ASCII file.
TecplotZone
A single Tecplot zone containing one or more variables.

Enums§

TecplotZoneType
Tecplot zone topology.