CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing & Mesh Conversion

...converting PLOT3D mesh files by NASA?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 5, 2011, 09:44
Default ...converting PLOT3D mesh files by NASA?
  #1
Member
 
AleDR's Avatar
 
Alessandro
Join Date: May 2009
Location: Genova
Posts: 43
Rep Power: 8
AleDR is on a distinguished road
Hi FOAMers!

I have some problems with mesh file conversion!!
I'm trying to import NASA grid for the flat plate test case in OpenFOAM... but I don't know how to!!
I am puzzled by the file extension... .p3dmft ? It should be a PLOT3D file format, but I couldn't handle it in ParaView.

I tried the plot3dToFoam but I got this error:

Create time

--> FOAM FATAL IO ERROR:
Attempt to get back from bad stream

file: flatplate_clust2_4levelsdown_35x25.p3dmft at line 1.

From function void Istream::getBack(token&)
in file db/IOstreams/IOstreams/Istream.C at line 38.

FOAM exiting

Can anybody help me? Thanks!
AleDR is offline   Reply With Quote

Old   January 18, 2014, 06:29
Default
  #2
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 91
Rep Power: 7
kiddmax is on a distinguished road
Hey Alessandro

Did you solve the problem?

Best
Ye
kiddmax is offline   Reply With Quote

Old   January 27, 2015, 10:38
Default
  #3
New Member
 
Vincent HUBER
Join Date: Jan 2015
Location: Strasbourg - France
Posts: 2
Rep Power: 0
VincentHUBER is on a distinguished road
I'm highly interested in the issue ! Have you successfully converted the mesh ?
VincentHUBER is offline   Reply With Quote

Old   January 27, 2015, 15:14
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,133
Rep Power: 20
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi,

I was not successful in converting meshes with OpenFOAM's plot3dToFoam (and any way there is not much sense in converting just geometry), so I have created Python script for conversion from Plot3D to Gmsh (https://github.com/mrklein/p3d2gmsh) then you can use gmshToFoam to convert mesh into OpenFOAM's format.

In general you will need geometry file (*.p3dfmt) and Neutral Map File with description of boundary conditions. I have tested the script on verification cases from http://turbmodels.larc.nasa.gov, it seems to be converting the meshes and BCs correctly.
alexeym is offline   Reply With Quote

Old   January 27, 2015, 17:31
Default
  #5
New Member
 
Vincent HUBER
Join Date: Jan 2015
Location: Strasbourg - France
Posts: 2
Rep Power: 0
VincentHUBER is on a distinguished road
Wonderfull ! (Actually, I was planning to get Gmsh mesh files :-) )

Bonus questioon
- do you know a way to get the 3D gmsh mesh in 2D (cut along a plane) ?
OR
- can your script (that I ran successfully) be applied to p2dfmt ... without the neutral map file ?
VincentHUBER is offline   Reply With Quote

Old   January 28, 2015, 04:22
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,133
Rep Power: 20
alexeym will become famous soon enoughalexeym will become famous soon enough
No, I don't know the way to flatten mesh in Gmsh. In OpenFOAM there us flattenMesh utility, though its output is a point field, i.e. there will be no information about edges, boundaries, etc. Also there is Gmsh plugins like CutPlane, but again it will lose boundary information.

Initially I started with p2dfmt files but then realized there is no information on boundary conditions, so I've abandoned the idea.
alexeym is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Hexa mesh, curve mesh setup, bunching law Anorky ANSYS Meshing & Geometry 4 November 12, 2014 01:27
Fluent converting 'wall' to 'interior' BC for hybrid mesh DarrenC FLUENT 6 November 6, 2014 06:00
Converting Salome hybrid mesh to OpenFOAM Arnoldinho OpenFOAM 4 March 28, 2012 10:24
Importing gridgen mesh files into gambit/fluent Wee FLUENT 2 June 21, 2011 08:35
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43


All times are GMT -4. The time now is 14:01.