Skip to main content

Crate caexfer

Crate caexfer 

Source
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§

CompanionReport
Receipt for a separately written OP2 companion mesh.
ConversionReport
Counts and omissions for one conversion. fields counts fields before destination filtering, while omissions records 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.
PreviewReport
Source counts and either a full dry projection or a pre-sampling voxel plan. A voxel plan includes source notices; destination notices require conversion.
ValidationReport
Supported-subset validation counts, omissions, and assumptions. A passing report does not establish solver-model correctness.
VoxelEstimate
Planned grid geometry and the conservative sampling work bound.

Enums§

AssumptionKind
A caller decision that supplies or accepts a value absent from the source.
Format
Supported conversion format.
InfillShape
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.