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

fluent3DMeshToFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 21, 2013, 05:46
Default fluent3DMeshToFoam
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
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.
sasanghomi is offline   Reply With Quote

Old   March 21, 2013, 07:41
Default
  #2
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 235
Rep Power: 9
olivierG is on a distinguished road
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
olivierG is offline   Reply With Quote

Old   March 21, 2013, 11:27
Default
  #3
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Dear Olivier ,

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

Thanks,
Sasan.
sasanghomi is offline   Reply With Quote

Old   March 21, 2013, 11:37
Default
  #4
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 235
Rep Power: 9
olivierG is on a distinguished road
hello,

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

regards,
olivier
olivierG is offline   Reply With Quote

Old   March 21, 2013, 13:22
Default
  #5
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
I want to have a Sets file including faces of all boundaries....for 3D mesh...
How can I do this action??

thanks,
Sasan.
sasanghomi is offline   Reply With Quote

Old   March 22, 2013, 02:26
Default
  #6
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
I got it....
patchToFace can do this action...

Sasan.
sasanghomi is offline   Reply With Quote

Old   March 26, 2013, 12:42
Default
  #7
Member
 
Dogan
Join Date: Nov 2012
Location: Bochum/Germany
Posts: 42
Rep Power: 4
dogan is on a distinguished road
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
dogan is offline   Reply With Quote

Old   March 26, 2013, 15:00
Default
  #8
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
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.
sasanghomi is offline   Reply With Quote

Old   April 2, 2013, 05:21
Default
  #9
Member
 
Dogan
Join Date: Nov 2012
Location: Bochum/Germany
Posts: 42
Rep Power: 4
dogan is on a distinguished road
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
dogan 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
Difference between fluentMeshToFoam and Fluent3DMeshToFoam thekay OpenFOAM 5 January 18, 2013 12:00
Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 1 December 12, 2012 11:38
OpenFOAM command from inside MATLAB sega OpenFOAM Post-Processing 18 September 25, 2012 07:35
Fluent3DMeshToFoam simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 05:20
having problems with fluent3DMeshToFoam stevek OpenFOAM Mesh Utilities 0 May 7, 2010 07:29


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