Expand description
Convert and validate supported engineering mesh, voxel, and result files.
convert writes a new output file and returns a typed report of omissions
and assumptions. validate checks the supported source subset without
writing a file. Format adapters and the intermediate mesh model are internal.
See the library guide for supported routes and options.
use caexfer::{Options, validate};
let path = concat!(env!("CARGO_MANIFEST_DIR"), "/examples/plate.bdf");
let report = validate(path, &Options::default())?;
assert!(report.passed);
assert_eq!(report.points, 4);Structs§
- Companion
Report - Receipt for a separately written OP2 companion mesh.
- Conversion
Report - Counts and omissions for one conversion.
fieldscounts fields before destination filtering, whileomissionsrecords source losses, destination losses, and explicit assumptions. The default is an empty report with zero counts. - Error
- An actionable failure with a stable machine-readable code.
- Omission
- One piece of information omitted or explicitly assumed.
- Options
- Source selection, limits, and explicit result assumptions. Defaults detect the input format from its extension, bound reads to 256 MiB, and do not silently assert a Nastran result frame or missing rotation values.
- Preview
Report - Source counts and either a full dry projection or a pre-sampling voxel plan. A voxel plan includes source notices; destination notices require conversion.
- Validation
Report - Supported-subset validation counts, omissions, and assumptions. A passing report does not establish solver-model correctness.
- Voxel
Estimate - Planned grid geometry and the conservative sampling work bound.
Enums§
- Assumption
Kind - A caller decision that supplies or accepts a value absent from the source.
- Format
- Supported conversion format.
- Infill
Shape - Volume cell shape requested for closed-surface infill.
- MshVersion
- Output dialect for the shared MSH format family.
- Stage
- Where an omission or assumption enters a conversion.
Functions§
- convert
- Convert one source file into a new destination file.
- preview
- Preview a conversion without creating or replacing an output file.
- validate
- Validate one file against caexfer’s supported mesh-and-fields subset.
Type Aliases§
- Result
- Result returned by caexfer operations.