mesh¶
Mesh loading and metadata extraction for FEM simulation data.
pvd_steps
¶
Return the (timestep, absolute vtu_path) pairs of the PVD file at path, sorted by time.
vtk_series_steps
¶
Return (step_index, path) pairs for the files matching pattern under ddir, in natural sort order.
source_signature
¶
Return a hash of the names, sizes and modification times of the source files of path; it changes when a mesh is exported again.
get_metadata
¶
Return the MeshMetadata of the mesh at path, cached as a .meta.json sidecar keyed on the schema hash and the source files.
metadata_for_series
¶
Return MeshMetadata for the flat VTK series paths, the ordered list of per-step files, computed in memory.
metadata_for_d3plot
¶
Return MeshMetadata for the LS-DYNA d3plot database at ddir, cached as <ddir>/d3plot.meta.json keyed on the schema hash and the database files.
load_mesh
¶
Return timestep step of the mesh at path (a file or a d3plot database directory) as a detached PyVista dataset.
as_surface
¶
Return mesh as PolyData: a surface passes through, a volume is skinned with its point and cell arrays.
skin_with_ids
¶
Return (skin, volume point ids, volume cell ids) for mesh, the ids mapping per-volume arrays (a new time step, a region remap) onto the skin; both id arrays are None when mesh already is a surface.
load_skin
¶
Return the skin of the static mesh file at path with its volume ids, cached per path.
preload_all_meshes
¶
Fill the mesh cache from every dataset in project_metadata at server startup.
parse_labels_file
¶
Return {mesh: {material_id: [names]}} parsed from the LabelIDs.txt file at path.