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

help:fluent3DMeshToFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 9, 2009, 03:55
Default help:fluent3DMeshToFoam
  #1
Member
 
任芸
Join Date: Jun 2009
Posts: 75
Rep Power: 8
renyun0511 is on a distinguished road
hi all,
I'm trying to import a mesh that was generated in Gambit(in order to compare OpenFOAM with Fluent),i use the system:OpenSuse10.3,the versionf-1.5.
I'm afraid that i have some problem with the convertion of mesh,would you please give me some advice?
the step i used ware:
1).i exported a .msh file case from Gambit-2.2,then copied it under the mixerVessel2D of MRFSimpleFOAM folder:
2).ry@linux-pw3p:~/OpenFOAM/ry-1.5/tutorials/MRFSimpleFoam/voim/mixerVessel2D> dos2unix msh/voim2.msh
3).ry@linux-pw3p:~/OpenFOAM/ry-1.5/tutorials/MRFSimpleFoam/voim/mixerVessel2D> fluent3DMeshToFoam msh/voim2.msh
but I have the following error message when converting fluent 3d mesh using fluent3DMeshToFoam:

Dimension of grid: 3
Number of points: 80727
PointGroup: 1 start: 0 end: 80726. Reading points...done.
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
Number of cells: 385309
CellGroup: 2 start: 0 end: 278416 type: 1
CellGroup: 3 start: 278417 end: 385308 type: 1
Zone: 2 name: rotor type: fluid. Reading zone data...done.
Zone: 3 name: stator type: fluid. Reading zone data...done.
Zone: 4 name: wall type: wall. Reading zone data...done.
Zone: 5 name: interface.4 type: interface. Reading zone data...done.
Zone: 6 name: interface.3 type: interface. Reading zone data...done.
Zone: 7 name: pressure_outlet.2 type: pressure-outlet. Reading zone data...done.
Zone: 8 name: inlet type: velocity-inlet. Reading zone data...done.
Zone: 10 name: default-interior type: interior. Reading zone data...done.

FINISHED LEXING

--> FOAM Warning :
From function boundBox::boundBox(const pointField& points)
in file meshes/boundBox/boundBox.C at line 52
Cannot find bounding box for zero sized pointField, returning zero
Creating cellZone 0 name: fluid type: fluid
#0 Foam::error:rintStack(Foam:stream&) in "/home/ry/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/ry/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted: [0xffffe420]
#3 Foam:olyTopoChange::getFaceOrder(int, Foam::List<int> const&, Foam::List<int> const&, Foam::List<int>&, Foam::List<int>&, Foam::List<int>&) const in "/home/ry/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so"
#4 Foam:lyTopoChange::compact(bool, bool, int&, Foam::List<int>&, Foam::List<int>&) in "/home/ry/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so"
...
#7 main in "/home/ry/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/fluent3DMeshToFoam"
#8 __libc_start_main in "/lib/libc.so.6"
#9 __gxx_personality_v0 in "/home/ry/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/fluent3DMeshToFoam"
段错误
what can i do ?
thanks in advance!
regards,
jennifer
renyun0511 is offline   Reply With Quote

Old   November 4, 2009, 08:12
Default
  #2
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 568
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Jennifer,

You don't need to 'dos2unix' the mesh file.
Just use 'fluentMeshToFoam' on the mesh file exported from Gambit.

Hope it helps,
Philip
bigphil is offline   Reply With Quote

Old   November 4, 2009, 21:03
Default
  #3
Member
 
任芸
Join Date: Jun 2009
Posts: 75
Rep Power: 8
renyun0511 is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Hi Jennifer,

You don't need to 'dos2unix' the mesh file.
Just use 'fluentMeshToFoam' on the mesh file exported from Gambit.

Hope it helps,
Philip
Thanks! Is there any difference beteewn FluentMeshToFoam and Fluent3DMeshToFoam?
renyun0511 is offline   Reply With Quote

Old   November 5, 2009, 06:36
Default
  #4
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 568
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Jennifer,

There must be a difference between 'fluentMeshToFoam' and 'fluent3DMeshToFoam', but I don't know what it is.

I usually use 'fluentMeshToFoam' and it works fine for 3D geometry, or I use 'gambitToFoam'. 'gambitToFoam' takes a Gambit neutral mesh type '.neu' and converts it to OpenFOAM, so that works too.

But you must define your boundary patches in Gambit prior to exporting, then you can change their type once they are in OpenFOAM in the './constant/polyMesh/boundary' file.


Philip
bigphil is offline   Reply With Quote

Old   May 20, 2010, 12:39
Default
  #5
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Jennifer,

There must be a difference between 'fluentMeshToFoam' and 'fluent3DMeshToFoam', but I don't know what it is.

I usually use 'fluentMeshToFoam' and it works fine for 3D geometry, or I use 'gambitToFoam'. 'gambitToFoam' takes a Gambit neutral mesh type '.neu' and converts it to OpenFOAM, so that works too.

But you must define your boundary patches in Gambit prior to exporting, then you can change their type once they are in OpenFOAM in the './constant/polyMesh/boundary' file.


Philip
I guess fluent3DMeshtoFoam wworks better for tetrahedral elements..... as for me fluentMeshtoFoam was not working however other worked prity well........!!!
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"
vishal is offline   Reply With Quote

Old   May 21, 2010, 06:22
Default
  #6
Member
 
任芸
Join Date: Jun 2009
Posts: 75
Rep Power: 8
renyun0511 is on a distinguished road
hi vishal,
thank you for your reply,and i have resoled the problem. and i still thank you very much.
the problem is my error mesh file,after i changed it .and it works OK!
renyun0511 is offline   Reply With Quote

Old   May 31, 2010, 16:10
Default
  #7
Member
 
Join Date: Nov 2009
Posts: 48
Rep Power: 7
farhagim is on a distinguished road
Hello guys,

I have very simple question. I dont know how to convert the values for the mesh to meter after importing from fluent. as far as i know, for the mesh which is created by OF, we have to do it in blockmeshdic. but how can we convert it to meter or.. when we import the mesh from fluent???


Thanks,

Mehran
Quote:
Originally Posted by renyun0511 View Post
hi vishal,
thank you for your reply,and i have resoled the problem. and i still thank you very much.
the problem is my error mesh file,after i changed it .and it works OK!
farhagim is offline   Reply With Quote

Old   June 1, 2010, 05:29
Default
  #8
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 568
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Mehran,

The mesh can be scaled when converting with fluentMeshToFoam using the scale option.

ie
fluentMeshToFoam YOURMESH.msh -scale 1000

where 1000 is the scaling factor in this example, and YOURMESH.msh is your mesh.


Or
if you already have your mesh in OpenFOAM, the transformPoints command can be used to scale the mesh:

transformPoints -scale "(1000 1000 1000)"

this command allows the mesh to be scaled differently in the x, y and z directions.


Hope it helps,
Philip C
bigphil is offline   Reply With Quote

Old   June 1, 2010, 19:51
Default
  #9
Member
 
任芸
Join Date: Jun 2009
Posts: 75
Rep Power: 8
renyun0511 is on a distinguished road
Quote:
Originally Posted by farhagim View Post
Hello guys,

I have very simple question. I dont know how to convert the values for the mesh to meter after importing from fluent. as far as i know, for the mesh which is created by OF, we have to do it in blockmeshdic. but how can we convert it to meter or.. when we import the mesh from fluent???


Thanks,

Mehran
hi Mehran
you just input"transformPoints -scale "(0.001 0.001 0.001)""under your root case,then you can see the value which in the file boudary/polymesh/sets/points convert into meter
Good luck
jennifer
renyun0511 is offline   Reply With Quote

Old   June 2, 2010, 12:54
Default
  #10
Member
 
Join Date: Nov 2009
Posts: 48
Rep Power: 7
farhagim is on a distinguished road
Thanks Philip &Jennifer

Quote:
Originally Posted by renyun0511 View Post
hi Mehran
you just input"transformPoints -scale "(0.001 0.001 0.001)""under your root case,then you can see the value which in the file boudary/polymesh/sets/points convert into meter
Good luck
jennifer
farhagim is offline   Reply With Quote

Old   July 29, 2010, 05:31
Default
  #11
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
Hi,

i am trying to convert a mesh using following and i am facing following error fo both Fluent3DMeshToFoam and FluentMeshToFoam do some know what can be the remidy......!!!

transsolar@linux-u5tz:~/OpenFOAM/run/meshFiles/cavity> fluent3DMeshToFoam WK_Modell_Konf_mit_Hochhaus_endg_Druckbohrungen_me shed_1-05~3.msh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-53b7f692aa41
Exec : fluent3DMeshToFoam WK_Modell_Konf_mit_Hochhaus_endg_Druckbohrungen_me shed_1-05~3.msh
Date : Jul 29 2010
Time : 11:28:44
Host : linux-u5tz
PID : 4493
Case : /home/transsolar/OpenFOAM/run/meshFiles/cavity
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Header: "TGrid 3D 5.0.6"
Dimension of grid: 3
Number of points: 1907883
Number of faces: 9120079
Number of cells: 3616970
--> FOAM Warning : Found unknown block of type: "3010"
on line 9


Do not understand characters:
on line 10

From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 747.

FOAM exiting

transsolar@linux-u5tz:~/OpenFOAM/run/meshFiles/cavity>

================================================== ==============

transsolar@linux-u5tz:~/OpenFOAM/run/meshFiles/cavity> fluentMeshToFoam WK_Modell_Konf_mit_Hochhaus_endg_Druckbohrungen_me shed_1-05~3.msh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-53b7f692aa41
Exec : fluentMeshToFoam WK_Modell_Konf_mit_Hochhaus_endg_Druckbohrungen_me shed_1-05~3.msh
Date : Jul 29 2010
Time : 11:31:31
Host : linux-u5tz
PID : 4517
Case : /home/transsolar/OpenFOAM/run/meshFiles/cavity
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Reading header: "TGrid 3D 5.0.6"
Found unknown block4
Embedded blocks in comment or unknown: (
Found end of section in unknown
Found end of section in unknown
Dimension of grid: 3
Number of points: 1907883

number of faces: 9120079
Number of cells: 3616970
Found unknown block3010
Embedded blocks in comment or unknown: (
Found end of section in unknown
Embedded blocks in comment or unknown:
(
���Embedded blocks in comment or unknown
�@�ۆ�Embedded blocks in comment or unknown:@�
Found end of section in unknown:�
�����@��@��▒Embedded blocks in comment or unknown:@�
���,@�}��@]��Found end of section in unknown:�
(�+�
@��Embedded blocks in comment or unknown:��
Embedded blocks in comment or unknown:��
��Found end of section in unknown:$
,@Embedded blocks in comment or unknown:��
Found end of section in unknown:�
@��@Embedded blocks in comment or unknown:�


Illegal hex digit: '�'

file: IStringStream.sourceFile at line 0.

From function readHexLabel(ISstream&)
in file db/IOstreams/Sstreams/readHexLabel.C at line 54.

FOAM exiting




please help me in this regard......... thanks in advance
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"
vishal is offline   Reply With Quote

Old   July 29, 2010, 05:44
Default
  #12
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 568
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Vishal,


Was your ".msh" file created in fluent/gambit?

I notice
Quote:
Originally Posted by vishal View Post
Header: "TGrid 3D 5.0.6"
which looks to me that your mesh was created in TGrid and is in some TGrid format,
hence fluentMeshToFoam will not work.

If your mesh was created in TGrid, then maybe TGrid can export as a fluent mesh or a gambit mesh, I have not used TGrid so I don't know.

Best Regards,
Philip
bigphil is offline   Reply With Quote

Old   July 29, 2010, 05:55
Default
  #13
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
Quote:
Originally Posted by bigphil View Post
I notice
which looks to me that your mesh was created in TGrid and is in some TGrid format,
hence fluentMeshToFoam will not work.
Fluent3DMeshToFoam works with msh-Files saved in TGrid 5.0.6 - definitely.
You should use file -> write case in TGrid and check "Save as Polyhedra" and uncheck "save as binary" so you will get a ASCII msh-File (even though it might have the ending .cas) with polyhedral cells. This will work with fluent3DMeshToFoam. I guess you did not save it in ASCII format.

Regards Bastian
bastil is offline   Reply With Quote

Old   July 29, 2010, 06:03
Default
  #14
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 568
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by bastil View Post
Fluent3DMeshToFoam works with msh-Files saved in TGrid 5.0.6 - definitely.
Sorry, I didn't realise, thanks for correcting me.

Philip
bigphil is offline   Reply With Quote

Old   August 5, 2010, 04:23
Default
  #15
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
Thanks,

for your valuable inputs......!!!

@Bastil and Bigphil: - It worked as bastil told....!!!
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"

Last edited by vishal; August 5, 2010 at 06:43.
vishal 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



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