pnm 1.0.3
peclet.pnm — pore-network extraction from SDF geometry (Kokkos)
Loading...
Searching...
No Matches
vti Namespace Reference

Functions

 save_vti (filename, fields, spacing=(1.0, 1.0, 1.0), origin=(0.0, 0.0, 0.0))
 

Detailed Description

VTI (VTK ImageData) file I/O utilities.

Provides functions to save field data in VTK ImageData format for visualization
with ParaView and other VTK-compatible tools.

Function Documentation

◆ save_vti()

vti.save_vti (   filename,
  fields,
  spacing = (1.0, 1.0, 1.0),
  origin = (0.0, 0.0, 0.0) 
)
General VTI saver that infers grid dimensions from the input fields.

Parameters
----------
fields : dict { "Name": ndarray }
    Arrays should be shape (Nz, Ny, Nx) for scalars 
    or (Nz, Ny, Nx, 3) for vectors.
spacing : tuple (dz, dy, dx)
origin : tuple (oz, oy, ox)

Definition at line 10 of file vti.py.