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/)
-   -   fluent3DMeshToFoam (http://www.cfd-online.com/Forums/openfoam-meshing-other/114986-fluent3dmeshtofoam.html)

sasanghomi March 21, 2013 05:46

fluent3DMeshToFoam
 
Hi foamers ,

We know that for importing 2D mesh to openfoam (from GAMBIT) we can use fluentMeshToFoam -writeSets
This command creates a Sets folder in the polymesh directory and you can see faces of all boundaries...
How can I do this action for importing 3D mesh??? I want to importing a 3D mesh from GAMBIT to openfoam and I want to have a Sets file including faces of all boundaries..
any utilities? any commands???

Thanks and best regards,
Sasan.

olivierG March 21, 2013 07:41

hello,

In fact fluentMeshToFoam work with 3D mesh too, so the same with "-writeSets" will work.
You can also use fluent3DMeshToFoam, which does almost the same as "fluentMeshToFoam -writeSets -writeZones".

Regards,
olivier

sasanghomi March 21, 2013 11:27

Dear Olivier ,

fluent3DMeshToFoam -writeSets doesn't work...(I am using 1.6-ext)
I appreciate any help....

Thanks,
Sasan.

olivierG March 21, 2013 11:37

hello,

This is because with fluent3DMeshToFoam, you don't need the "-writeSets" options, just "fluent3DMeshToFaom mesh.msh" will be fine.

regards,
olivier

sasanghomi March 21, 2013 13:22

I want to have a Sets file including faces of all boundaries....for 3D mesh...
How can I do this action??

thanks,
Sasan.

sasanghomi March 22, 2013 02:26

I got it....
patchToFace can do this action...

Sasan.

dogan March 26, 2013 12:42

Hi Sasan,
i am also dealing with fluent3DMeshToFoam, and i also need the sets file in polyMesh directory. As you also had the same problem, fluent3DMeshToFoam command doesn't create a sets directory inside of the polyMesh directory. You mentioned that patchToFace can do this actioin, but i am using openFoam 2.1.x, and i don't know how to create the sets file in 2.1.x.
thanks
Dogan

sasanghomi March 26, 2013 15:00

Hi Dear dogan ,

You can use faceSetDict :

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM Extend Project: Open Source CFD        |
|  \\    /  O peration    | Version:  1.6-ext                              |
|  \\  /    A nd          | Web:      www.extend-project.de                |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      faceSetDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


name faceSet;

action new;

topoSetSources
(
  patchToFace
    {
      name presin; // name of boundary faces
    }
);

// ************************************************************************* //

Create this file in the system directory and type below command in the terminal :
Code:

faceSet
But this idea doesn't support interior faces because OpenFOAM doesn't know interior faces as a boundary face...
I think this utility exists in all versions of OpenFoam.

best regards,
Sasan.

dogan April 2, 2013 05:21

Hi Sasan,
thank youz very much for your answer. I don't know why, but unfortunately i couldn't mabage to do it with faceSetDict. it may not be the right way but i tried something else, and it worked. i copied the points file in constant, to the rotor file in constant>sets. i know it souds so wrong, but it worked.

thanks and regards
Dogan


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