CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] fluent3DMeshToFoam (https://www.cfd-online.com/Forums/openfoam-meshing/74737-fluent3dmeshtofoam.html)

bego April 7, 2010 12:15

fluent3DMeshToFoam
 
Hello,
I am new working with OpenFOAM, and I want convert a fluent mesh into openfoam mesh, but I find this mistake:

Header: "TGrid 3D 5.0.6"
Dimension of grid: 3
Number of points: 335136
--> FOAM Warning : Found unknown block of type: "11"
on line 7
Number of faces: 2132021
Number of cells: 925081
--> FOAM Warning : Found unknown block of type: "3010"
on line 10


Do not understand characters:
on line 11

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

FOAM exiting

Can somebody help me?

Thanks

forsumit April 7, 2010 14:38

Hello,

Why don't you just use fluentMeshToFoam, For me this works just fine.

Hope this helps,
Sumit

bego April 8, 2010 04:03

Hello forsumit,
I try this with fluentMeshToFoam, but I find this mistake:
Create time

Reading header: "TGrid 3D 5.0.6"
Found unknown block:(4
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: 335136

1 (0 1 33c 0number of faces: 2132021
Number of cells: 925081
Found unknown block:(3010
Embedded blocks in comment or unknown: (
Found end of section in unknown:)
Embedded blocks in comment or unknown:
(
�Found end of section in unknown:��



...

The terminal is not responding.
The mesh is made in Tgrid how a .msh file, I not know if that affects.
I want to use pisoFoam and I create a directory case, with their respective subdirectories 0, constant and system. At 0 directory I paste the files from the tutorials pisofoam (epsilon, k, nut, nuTilda, p,R,U), at constant directory I created a directory called polymesh, and I copy system files pisoFoam (controlDict, fvSchemes, fvSolution). First I want see the mesh and convert it to openFoam, then I will change the parameters for my case. I don't know if I have to do something before to convert the mesh as a boundary file.

Thanks!

naveen April 8, 2010 04:14

fluent3DMeshToFoam
 
hi bego,

Can you tell me the format you r getting after exporting in TGrig. fluentMeshToFoam works only for .msh files and .cas files format. If you are getting .msh format you can easily convert fluentMeshToFoam.

bego April 8, 2010 05:32

hi naveen,
The Tgrid file is .msh. I have fluent file, but this not have extension, this is in ASCII format, I have to put the extension.msh?
FluentTomesh putting in the terminal, after giving the error waits, I can not add a new order.

naveen April 8, 2010 06:03

fluent3DMeshToFoam
 
hi bego,

Which version of OpenFOAM you are using.If you r using 1.5 go to tat folder and type fluentMeshToFoam extension.msh.

bego April 8, 2010 06:49

Hi naveen, the version is 1.6

josp April 8, 2010 06:56

Can you post the mesh here? Or perhaps a simpler test-mesh that behaves the same?

naveen April 8, 2010 07:05

fluent3DMeshToFoam
 
hi bego,

If u r using 1.6 go to that folder where you have kept the mesh file and type in the terminal fluentMeshToFoam extension.msh.

bego April 8, 2010 07:36

Hi naveen
I make this, I copy the Tgrid file into the polymesh directory, because in other directory I had a mistake, and I have now this other mistake:
fluentMeshToFoam: file "extension.msh" not found

From function fluentToFoam::main(int argc, char *argv[])
in file fluentMeshToFoam.L at line 895.

FOAM exiting

Do you think that I have every directories that I need to run fluentMeshToFoam?
Why the fluent mesh file not have an extension if I write it in ASCII?

bego April 8, 2010 07:43

Hi naveen,
If I put fluent file (without extension) in polymesh directory, I have the next error:

Create time



: file "extension.msh" not found

From function fluent3DMeshToFoam
in file fluent3DMeshToFoam.L at line 810.

FOAM exiting

naveen April 8, 2010 07:53

fluent3DMeshToFoam
 
hi bego,

Dont copy the TGrid file into the polymesh folder

FOLLOW THESE STEPS:

1) create a new case where ever u want, it should contain 3 folders like 0, constant and system folders.

2) place the TGrid mesh file into that directory (not in polymesh) .

3) now that directory should contain 4 folders like 0,constant, system and your mesh file.

4) now go to that directory where u hav created the through terminal and type fluentMeshToFoam extension.msh (extension means name of ur mesh file).

Still you are facing problem in conversion, send me your mesh file to my email id (naveenmtech07@gmail.com) . I wil convert that into OpenFOAM format and get back to u with full content.

bego April 12, 2010 04:42

Hi naveen,
I try this, but I have the same mistake, I can't send you the mesh, because my tutor don't like send it.
fluent3DMeshToFoam has this mistake:
From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 747.

But fluentMeshToFoam has the next mistake:

Reading header: "TGrid 3D 5.0.6"
Found unknown block:(4
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: 335136

1 (0 1 33c 0number of faces: 2132021
Number of cells: 925081
Found unknown block: (3010
Embedded blocks in comment or unknown: (
Found end of section in unknown: )
Embedded blocks in comment or unknown:
(
?Found end of section in 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: (
\
?????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:
Embedded blocks in comment or unknown: (
\
??????Embedded blocks in comment or unknown:
Embedded blocks in comment or unknown: (
\
??Embedded blocks in comment or unknown:
Embedded blocks in comment or 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: "
?@?????Found end of section in unknown: "
?@????@????@?Embedded blocks in comment or unknown: ?
,@???@??Found end of section in 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: ?
,@ ?? ;
??? ;
??? ;
??Embedded blocks in comment or unknown:
Embedded blocks in comment or unknown: (
??Embedded blocks in comment or unknown:
Embedded blocks in comment or unknown: (
???? ;

...
The mistake continuous and the terminal don't allow me to introduce more sentences

naveen April 12, 2010 05:00

fluent3DMeshToFoam
 
hi bego,

In the text format what you have got in Tgrid, at the first line change Tgrid into fluent and follow the instructions what i mentioned previously.

naveen

bego April 12, 2010 05:05

Hi naveen,
thanks, I go to try it

bego April 19, 2010 04:04

hello,
I have other problem with fluent file case. When I put in the terminal fluent3DMeshToFoam FILE.cas I have the next mistake:

Create time

Dimension of grid: 3
Number of cells: 942529
Number of faces: 2186935
Number of points: 347809
--> FOAM Warning : Found unknown block of type: "2012"
on line 2960
--> FOAM Warning : Found unknown block of type: "2012"
on line 2963
--> FOAM Warning : Found unknown block of type: "2012"
on line 2966
--> FOAM Warning : Found unknown block of type: "2058"
on line 2969


Do not understand characters:
on line 2970

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

FOAM exiting


With fluentMeshToFoam I have a more big mistake, Can someone help me?

Thanks

naveen April 19, 2010 04:24

fluent3DMeshToFoam
 
hi bego,

Can you send me your mesh file. I can convert that into foam format.

bego April 19, 2010 04:46

Thanks naveen, but my teacher project don't want that other people has the mesh. She knows another teacher who knows OpenFOAM in Zaragoza, first we try to get out there.

Thank you very much for everything

farhagim May 19, 2010 13:02

Hi Neveen,

I have a problem in converting the fluent3dmesh to OF1.6. I Copied the Msh file into my case directory and type fluentMeshToFoam extension.msh, but i got this error. can you help me?

*---------------------------------------------------------------------------*\
| ========= | |
| \\ / 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 8by15by1.75-.05mm.msh
Date : May 19 2010
Time : 12:51:56
Host : mehran-desktop
PID : 2889
Case : /home/mehran/OpenFOAM/mehran-1.6/run/test
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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

Dimension of grid: 3
Number of points: 1744596
Reading points
number of faces: 5104100
Reading mixed faces
Reading mixed faces
Reading mixed faces
Reading mixed faces
Reading mixed faces


FINISHED LEXING


#0 Foam::error::printStack(Foam::Ostream&) in "/home/mehran/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/mehran/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted:
#3 main in "/home/mehran/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/fluentMeshToFoam"
#4 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#5 _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122
Segmentation fault

Thanks,

Mehran
Quote:

Originally Posted by naveen (Post 255203)
hi bego,

Can you send me your mesh file. I can convert that into foam format.


grandgo November 30, 2010 06:12

view the new mesh
 
hello!

one stupid question (newbie):

i've just converted my .msh file into an ASCII format file for OpenFoam with the command "fluent3DMeshToFoam". everything fine. but now i would like to view this converted mesh via paraFoam and i don't know what to do. i have no blockMeshDict file so i cannot use blockMesh....

could someone please help me?

thanks


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