|
[Sponsors] |
August 26, 2014, 00:38 |
how to read plot3D mesh file (.x)
|
#1 |
New Member
Pranav
Join Date: Jan 2012
Posts: 5
Rep Power: 14 |
Hi,
I need to write a function to read the plot3D mesh file in my code (in C). The mesh file will be 3D and currently single block. Can anybody explain me plot3D file format and how it is written. As a test case, I created a simple flat rectangular surface and exported it in 3D plot3D file format using pointwise. The surface mesh has 5x10x1 dimension. The output of the file is attaced at the end. I came to know that first line denotes the number of blocks, second line specifies the number of nodes in each direction. But I wanted to know how the coordinates of each point are specified. Are those x's, y's and z's in any particular direction? I need a general outline of how and in which order the coordinates are specified. It will be really great help. Thank you File output: 1 5 10 1 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 1.111111e+00 1.111111e+00 1.111111e+00 1.111111e+00 1.111111e+00 2.222222e+00 2.222222e+00 2.222222e+00 2.222222e+00 2.222222e+00 3.333333e+00 3.333333e+00 3.333333e+00 3.333333e+00 3.333333e+00 4.444445e+00 4.444445e+00 4.444445e+00 4.444445e+00 4.444445e+00 5.555555e+00 5.555555e+00 5.555555e+00 5.555555e+00 5.555555e+00 6.666667e+00 6.666667e+00 6.666667e+00 6.666667e+00 6.666667e+00 7.777778e+00 7.777778e+00 7.777778e+00 7.777778e+00 7.777778e+00 8.888889e+00 8.888889e+00 8.888889e+00 8.888889e+00 8.888889e+00 1.000000e+01 1.000000e+01 1.000000e+01 1.000000e+01 1.000000e+01 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 5.000000e+00 3.750000e+00 2.500000e+00 1.250000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 |
|
Tags |
plot3d |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wmake compiling new solver | mksca | OpenFOAM Programming & Development | 14 | June 22, 2018 06:29 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 11:32 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 10:59 |
2.0.x on Mac OSX | niklas | OpenFOAM Installation | 74 | March 28, 2012 16:46 |