CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... (http://www.cfd-online.com/Forums/openfoam-meshing-other/)
-   -   Tecplot mesh to OpenFOAM! (http://www.cfd-online.com/Forums/openfoam-meshing-other/120515-tecplot-mesh-openfoam.html)

jp3g12 July 8, 2013 19:16

Tecplot mesh to OpenFOAM!
 
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:
http://www.cfd-online.com/Forums/ope...rmat-help.html

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

Abracurcix August 10, 2013 00:51

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


All times are GMT -4. The time now is 06:47.