CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

how to read plot3D mesh file (.x)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2014, 00:38
Question how to read plot3D mesh file (.x)
  #1
New Member
 
Pranav
Join Date: Jan 2012
Posts: 5
Rep Power: 11
pranavladkat is on a distinguished road
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
pranavladkat is offline   Reply With Quote

Old   August 26, 2014, 22:53
Default
  #2
agd
Senior Member
 
Join Date: Jul 2009
Posts: 310
Rep Power: 15
agd is on a distinguished road
Can you access
http://www.grc.nasa.gov/WWW/wind/valid/plot3d.html
agd is offline   Reply With Quote

Reply

Tags
plot3d

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:42.