PLOT3D File Format
   HOME

TheInfoList



OR:

In
computational fluid dynamics Computational fluid dynamics (CFD) is a branch of fluid mechanics that uses numerical analysis and data structures to analyze and solve problems that involve fluid dynamics, fluid flows. Computers are used to perform the calculations required ...
, the PLOT3D file format is a standard file format used for storing grid and results data. PLOT3D was created by
NASA Ames Research Center The Ames Research Center (ARC), also known as NASA Ames, is a major NASA research center at Moffett Federal Airfield in California's Silicon Valley. It was founded in 1939 as the second National Advisory Committee for Aeronautics (NACA) laborat ...
in 1982 by Pieter Buning and remains an often used
file format A file format is a Computer standard, standard way that information is encoded for storage in a computer file. It specifies how bits are used to encode information in a digital storage medium. File formats may be either proprietary format, pr ...
. It can only store a
structured grid A regular grid is a tessellation of ''n''-dimensional Euclidean space by congruent parallelotopes (e.g. bricks). Its opposite is irregular grid. Grids of this type appear on graph paper and may be used in finite element analysis, finite volume ...
. The structured grid allows
random access Random access (also called direct access) is the ability to access an arbitrary element of a sequence in equal time or any datum from a population of addressable elements roughly as easily and efficiently as any other, no matter how many elemen ...
, that is by knowing the block number, ''i'' location, ''j'' location, and ''k'' location, any grid point value or result value may be extracted. Additionally, given the location of any value, the block number, ''i'' location, ''j'' location, and ''k'' location may be determined. This makes it simple to iterate through a series of volumetric elements and calculate all required properties for the purpose of a CFD analysis. The most basic format includes two different files, a grid file (G-file) and a solution file (Q-file). The
filename extensions A filename extension, file name extension or file extension is a suffix to the name of a computer file (for example, .txt, .mp3, .exe) that indicates a characteristic of the file contents or its intended use. A filename extension is typically d ...
used vary, though .q is common for Q-files. Grid files may use .g, .x, .xy, or .xyz, among other extensions. The grid file contains the coordinates of the solution grid, while the solution file contains information typical of a CFD solution, flow density, flow momentum (a vector), and flow energy. Data may be stored in either binary or ASCII text format and floating point values may be either single or double precision. There are also multiblock and unstructured extensions to the format, so it is often unclear how a particular set of nominally PLOT3D-format files is formatted on the binary level without referring to the software that created them. Examination with a
hex editor A hex editor (or ''binary file editor'' or ''byte editor'') is a computer program that allows for manipulation of the fundamental Binary file, binary data that constitutes a computer file. The name 'hex' comes from 'hexadecimal', a standard numer ...
may be useful in determining the format variant. Additional files may be present containing different kinds of ancillary data. "Formatted" FORTRAN (ASCII text) data files will typically use CR-LF (0x0d 0x0a) delimiters at the end of the line, though the line breaks are implementation dependent. "Unformatted" FORTRAN (binary) files have the variables laid out in the same order but will normally lack delimiters such as line breaks. The binary format will be implementation and machine dependent. A multiblock, 3 dimensional Q file begins with a single integer for the number of blocks M on its own line. The next M lines contain three integers for each of the blocks, which give the ''i'', ''j'', and ''k'' dimension sizes for each block. The M blocks are read in next. Each block begins with a line containing four floating-point values, the freestream
Mach number The Mach number (M or Ma), often only Mach, (; ) is a dimensionless quantity in fluid dynamics representing the ratio of flow velocity past a boundary to the local speed of sound. It is named after the Austrian physicist and philosopher Erns ...
, the freestream angle of attack, the freestream
Reynolds number In fluid dynamics, the Reynolds number () is a dimensionless quantity that helps predict fluid flow patterns in different situations by measuring the ratio between Inertia, inertial and viscous forces. At low Reynolds numbers, flows tend to ...
, and the time. The rest of the block contains the values iterated over ''i'', ''j'', ''k'', ''m'' (block index), and the outermost ''n'', which counts through 5 sections, the density, the 3 components of the momentum, and finally the energy. A multiblock, 3 dimensional grid file begins with a single integer for the number of blocks M on its own line. The next M lines contain three integers for each of the blocks, which give the ''i'', ''j'', and ''k'' dimension sizes for each block. The M blocks are read in next. Each block contains a coordinate value iterated over ''i'', ''j'', ''k'', and then the three coordinates, ''x'', ''y'', and ''z''. Additionally, the format may be simplified such that only a two-dimensional problem is analyzed or the ''iBlank'' parameter is omitted. The ''iBlank'' parameter indicates whether or not the cell is a physical or non-physical cell. For example, if two PLOT3D grids are intersected, one of an aircraft
fuselage The fuselage (; from the French language, French ''fuselé'' "spindle-shaped") is an aircraft's main body section. It holds Aircrew, crew, passengers, or cargo. In single-engine aircraft, it will usually contain an Aircraft engine, engine as wel ...
, and the other of an aircraft
wing A wing is a type of fin that produces both Lift (force), lift and drag while moving through air. Wings are defined by two shape characteristics, an airfoil section and a planform (aeronautics), planform. Wing efficiency is expressed as lift-to-d ...
, there are internal cells that should not be analyzed. These are ''iBlanked cells and have a value of 0.


Other structured file formats

*
CGNS CGNS stands for CFD General Notation System. It is a general, portable, and extensible standard for the storage and retrieval of CFD analysis data. It consists of a collection of conventions, and free and open software implementing those convent ...
*
Tecplot Tecplot is a family of visualization & analysis software tools developed by American company Tecplot, Inc., which is headquartered in Bellevue, Washington. The firm was formerly operated as Amtec Engineering. In 2016, the firm was acquired by Vel ...


References

{{Reflist Computational fluid dynamics Computer file formats