aPriori.DNS.build_meshgridΒΆ
- aPriori.DNS.build_meshgrid(X_m_path: str, Y_m_path: str, Z_m_path: str)ΒΆ
Converts 1D mesh coordinate files (X, Y, Z) into 3D meshgrid coordinate fields and overwrites the original files.
The input files must contain 1D coordinate vectors. The output files will contain the corresponding 3D meshgrid coordinates stored in flattened binary format via save_file().
- Parameters:
X_m_path (str) β Path to the X coordinate file (1D vector).
Y_m_path (str) β Path to the Y coordinate file (1D vector).
Z_m_path (str) β Path to the Z coordinate file (1D vector).
- Returns:
The generated mesh shape as (Nx, Ny, Nz).
- Return type:
tuple[int, int, int]
- Raises:
ValueError β If any of the input arrays is not 1D or is empty.