CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...

Tecplot mesh to OpenFOAM!

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 8, 2013, 19:16
Default Tecplot mesh to OpenFOAM!
  #1
Member
 
JP
Join Date: May 2013
Location: United Kingdom
Posts: 31
Rep Power: 4
jp3g12 is on a distinguished road
Hello all!

I have a question concerned with conversion from a tecplot mesh (.plt) to OpenFOAM format.
On this thread there is some discussion regarding a similar problem:
Mesh conversion from Tecplot format - help

If I got this correctly, I need to save the .plt file as a .dat file and then do some commands within OpenFOAM.However my question comes in the blockMeshDict step. Please bare in mind that I am totally new to OpenFOAM so all of this is completely new to me.

Using the same tutorial described in the above thread,what should I do with the following?

Code:
boundary
(
    cone
    {
     	type patch;
        faces
	(
            (1 5 4 0)
        );
    }

    outlet
    {
     	type patch;
        faces
	(
            (2 6 5 1)
        );
    }

    freestream
    {
     	type patch;
        faces
	(
            (3 7 6 2)
        );                                  
    }

    centreLeft
    {
     	type symmetryPlane;
        faces
	(
            (0 4 7 3)
        );
    }

    wedge1
    {
     	type patch;
        faces
	(
            (0 3 2 1)
        );
    }

    wedge2
    {
     	type patch;
        faces
	(
            (4 5 6 7)
        );
    }
);
should I just left it like that or should I change it to something else? I assume I need to change it to suit my specific problem. If that is the case, how would I know which faces correspond to each of the patches? I do not understand what the numbers of each of the faces mean.

My geometry is a multi-element wing in a square domain so potentially I have three different walls (slat+flap+main element), frontAndBack faces (empty) and inlet and outlet.

Can anyone guide me through this??

Thank you very much for the help,

James
jp3g12 is offline   Reply With Quote

Old   August 10, 2013, 00:51
Default
  #2
New Member
 
Albert Pinto
Join Date: May 2013
Posts: 16
Rep Power: 4
Abracurcix is on a distinguished road
James,
Have you considered doing the following: a) since you have a structured mesh, write a simple code to translate the tecplot .plt file into a plot3D format file. Do note that if your Tecplot mesh is a 2D mesh, you've got to add a k-index and a z-coordinate, i.e. x(i,j,k), y(i,j,k), z(i,j,k), to your converted plot3D mesh and extrude it by one unit in the z-direction (this way you'll have 2 points in the z-direction). b) use plot3dToFoam to convert the plot3d file (from step a)) into OpenFoam format. Since, the plot3D format has no boundary information, use autoPatch (this was a suggestion that Bruno had made to one of my earlier posts) to create patches (depending on the geometry, you'll need to choose a suitable feature angle to help autoPatch decide where it should create a patch). Now take a look at the mesh and boundary conditions with paraFoam. You may need to play with the feature angle to get the correct patches. Once the patches are correct, you can set the boundary conditions on those patches in the polyMesh/boundary file.

Hope this helps ...

Albert
Abracurcix 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
can prism elements exist in 2D mesh in openfoam shuoxue OpenFOAM Meshing & Mesh Conversion 2 June 20, 2013 23:19
Exporting to OpenFOAM mesh with "inner" wall region raagh77 OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 0 April 24, 2012 06:23
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 16:23.