Skip to main content

Module plot3d_format

Module plot3d_format 

Source
Expand description

PLOT3D format for CFD grid and solution files.

Supports multi-block structured grids in ASCII PLOT3D .xyz and .q formats as commonly used in CFD solvers.

§File layout

§Grid file (.xyz)

`nblocks`
`ni1` `nj1` `nk1`  [`ni2` `nj2` `nk2` …]
<x values block 1> <y values block 1> <z values block 1>
…

§Solution file (.q)

`nblocks`
`ni1` `nj1` `nk1`  [`ni2` `nj2` `nk2` …]
`mach` `alpha` `rey` `time`   (per block)
`rho` <rho*u> <rho*v> <rho*w> `e`  (per point, per block)

Structs§

Plot3dBlock
A single structured block in a PLOT3D grid.
Plot3dFreestream
Free-stream reference parameters stored per block in a .q file.
Plot3dGrid
A multi-block PLOT3D structured grid.
Plot3dQPoint
Solution variables at a single grid point.
Plot3dSolution
A multi-block PLOT3D solution.
Plot3dSolutionBlock
A single solution block in a PLOT3D .q file.

Functions§

read_plot3d_grid
Parse an ASCII PLOT3D .xyz file from a string.
read_plot3d_solution
Parse an ASCII PLOT3D .q solution file from a string.
write_plot3d_grid
Write a PLOT3D grid to an ASCII string.
write_plot3d_solution
Write a PLOT3D solution to an ASCII string.