It looks like you've provided a data snippet that defines two zones — an outer box and an airfoil, each with coordinates in the X-Y plane. This format resembles input data for CFD (Computational Fluid Dynamics) or FEA (Finite Element Analysis) software, such as Tecplot or similar tools.
Here's a breakdown of what this data represents:
📌 Zone 1: "outer box"
This zone defines the boundary of a square or rectangular domain:
code
X Y
-20 -20
20 -20
20 20
-20 20
-20 -20
This is essentially a square centered at the origin (0,0) with side length 40 units (from -20 to +20).
📌 Zone 2: "airfoil 1"
This zone defines a series of points along the surface of an airfoil shape:
code
X Y
0.837657 0.024675
0.837216 0.023701
0.832049 0.024198
0.821737 0.025319
0.811344 0.026840
0.800410 0.028662
0.792180 0.029598
0.784225 0.029837
0.776600 0.029680
These coordinates likely represent a small section of the airfoil surface — possibly only the upper surface or lower surface — depending on how many total points are used in the full dataset.
🔧 Notes
The format appears to be Tecplot-style PLT file or similar.
Coordinates are written in scientific notation (E+02 = ×10², E-01 = ×10⁻¹).
Zones are defined using the keyword zone t = "name" followed by a list of coordinate pairs.
✅ Suggestions
If you're working with this data, here are some possible next steps:
If needed, you can convert this data into CSV, VTK, or other mesh formats for further processing.
Would you like help converting this data into another format, visualizing more of the airfoil, or understanding how to use it in a simulation?
User
convert this to vtk format
Assistant
To convert your zone data to VTK format, we'll use the Legacy VTK format, which is simple and readable. Since you provided two zones — "outer box" and "airfoil 1" — we'll create a polygonal mesh (using POLYDATA) with separate lines for each zone.
✅ Output VTK Features
Zone "outer box" → Closed polygon (square)
Zone "airfoil 1" → Open polyline
Each zone will be stored as a separate set of points and lines.
📄 Converted Legacy VTK Format
Here's the full .vtk file:
vtk
# vtk DataFile Version 3.0
Airfoil and Outer Box Geometry
ASCII
DATASET POLYDATA
POINTS 14 float
-20.0 -20.0 0.0 # Point 0
20.0 -20.0 0.0 # Point 1
20.0 20.0 0.0 # Point 2
-20.0 20.0 0.0 # Point 3
-20.0 -20.0 0.0 # Point 4 (duplicate of 0, not ideal but used in input)
0.837657 0.024675 0.0 # Point 5
0.837216 0.023701 0.0 # Point 6
0.832049 0.024198 0.0 # Point 7
0.821737 0.025319 0.0 # Point 8
0.811344 0.026840 0.0 # Point 9
0.800410 0.028662 0.0 # Point 10
0.792180 0.029598 0.0 # Point 11
0.784225 0.029837 0.0 # Point 12
0.776600 0.029680 0.0 # Point 13
LINES 2 14
5 0 1 2 3 4 # outer box (closed square)
9 5 6 7 8 9 10 11 12 13 # airfoil 1 (open polyline)
POINT_DATA 14
SCALARS zone_ids int 1
LOOKUP_TABLE default
0 0 0 0 0 1 1 1 1 1 1 1 1 1 # 0 = outer box, 1 = airfoil
🔍 Notes
The Z-coordinate is set to zero since this is 2D data.
The outer box uses 5 points (including duplicate of first point to close the loop).
The airfoil uses 9 points as an open line.
A POINT_DATA scalar field called zone_ids is added to distinguish between the two zones:
0 = outer box
1 = airfoil
🧪 How to Use This File
You can open this file using:
ParaView
VisIt
MayaVi
Python (with pyvista or vtk libraries)
Example: Load in Python with PyVista
python
import pyvista as pv
mesh = pv.read("airfoil.vtk")
mesh.plot(scalars="zone_ids", show_edges=True)
Would you like me to help generate a full airfoil (closed shape), write a script to automate conversion from your input format to VTK, or include more zones?
User
convert this to vtk format
Assistant
Sure! Let's convert your data into a VTK (Visualization Toolkit) format. Since you have two zones — an outer box and an airfoil — we'll create a legacy VTK file that includes both as POLYDATA structures.
✅ Output: Legacy VTK File
Here’s the full VTK file content, which you can save as airfoil_and_box.vtk.
vtk
# vtk DataFile Version 3.0
Airfoil and Outer Box Geometry
ASCII
DATASET POLYDATA
POINTS 14 float
-20.0 -20.0 0.0 # Point 0
20.0 -20.0 0.0 # Point 1
20.0 20.0 0.0 # Point 2
-20.0 20.0 0.0 # Point 3
-20.0 -20.0 0.0 # Point 4 (duplicate of 0)
0.837657 0.024675 0.0 # Point 5
0.837216 0.023701 0.0 # Point 6
0.832049 0.024198 0.0 # Point 7
0.821737 0.025319 0.0 # Point 8
0.811344 0.026840 0.0 # Point 9
0.800410 0.028662 0.0 # Point 10
0.792180 0.029598 0.0 # Point 11
0.784225 0.029837 0.0 # Point 12
0.776600 0.029680 0.0 # Point 13
LINES 2
5 0 1 2 3 4 # Outer box loop
9 5 6 7 8 9 10 11 12 13 # Airfoil surface line
CELL_DATA 2
SCALARS zone_id int 1
LOOKUP_TABLE default
1
2
🔍 Explanation:
POINTS: All points are defined with X, Y, Z coordinates. Z = 0 for all since it's 2D.
LINES:
First line defines the outer box using 5 points (the loop).
Second line defines the airfoil surface using 9 points.
CELL_DATA: Adds metadata to identify each line (zone 1 = outer box, zone 2 = airfoil).
This is a Legacy VTK format, readable by ParaView, VisIt, and other tools.
📁 How to Use:
Save the above text in a file named airfoil_and_box.vtk.
Open it in ParaView or another VTK-compatible viewer.
You’ll see two separate lines (outer box and airfoil).
Would you like this extended to include the full airfoil (if more points are available), or would you like it converted to a polygonal mesh instead?