CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] Fluent case to openfoam mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2012, 13:03
Default Fluent case to openfoam mesh
  #1
Member
 
Mat
Join Date: Jan 2012
Posts: 60
Rep Power: 14
Mat_fr is on a distinguished road
Dear all,

I have a tricky problem to expose :

I would like to perform OF simulations starting from FLUENT data. However, I only have the .cas (also .dat) file. Indeed, the mesh was modified inside FLUENT (refinement, adaptation of cell size, etc), then the .msh file doesn't match with the simulation results.

Here, I have two possibilities :
* recover the .msh file from one of the ANSYS softwares
* convert directly the .cas file in OpenFOAM mesh.
I tried both of them without success, even after a long web search about peolple who have met similar problems.

As it is the relevant location of the thread, I will talk here about the second possibility.
I'm converting directly the .cas file in OpenFOAM mesh with "fluent3DMeshToFoam". Because I red that it is possible to convert directly a .cas file (instead of a .msh one)
The .cas file is written in ASCII (I tried both ASCII and binary), and I get this error :

----------------------------------------------------------------------------
Create time

Dimension of grid: 3
Number of cells: 10454687
Number of faces: 22499392
Number of points: 2260909
CellGroup: 54 start: 0 end: 9559828 type: 1
CellGroup: 3 start: 9559829 end: 10454686 type: 32
FaceGroup: 55 start: 0 end: 19676980. Reading uniform faces...done.
FaceGroup: 56 start: 19676981 end: 19717405. Reading uniform faces...done.
FaceGroup: 57 start: 19717406 end: 19757954. Reading uniform faces...done.
FaceGroup: 58 start: 19757955 end: 19809500. Reading uniform faces...done.
FaceGroup: 59 start: 19809501 end: 19811801. Reading uniform faces...done.
FaceGroup: 60 start: 19811802 end: 19812018. Reading uniform faces...done.

***

FaceGroup: 28 start: 20430232 end: 20436680. Reading uniform faces...done.
FaceGroup: 4 start: 20436681 end: 22499391. Reading uniform faces...done.
PointGroup: 1 start: 0 end: 2260908. Reading points...done.
Zone: 54 name: fluid type: fluid. Reading zone data...done.
Zone: 2 name: pump_inlets:002 type: mass-flow-inlet. Reading zone data...done.
Zone: 55 name: int_fluid type: interior. Reading zone data...done.

***

Zone: 77 name: tubes type: wall. Reading zone data...done.

FINISHED LEXING



--> FOAM FATAL ERROR:
3 not found in table. Valid entries:
25
(
2
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
)


From function HashTable<T, Key, Hash>:perator[](const Key&)
in file /root/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude/HashTableI.H at line 117.

FOAM exiting
----------------------------------------------------------------------------

I suppose it is due to the modifications of the mesh in FLUENT.
Maybe you can help me ?

I'm asking for the first possibility (recover the .msh file from one of the ANSYS software) in the corresponding part of the forum : http://www.cfd-online.com/Forums/ans...r-msh-cas.html

Best,

Mat

Last edited by Mat_fr; August 21, 2012 at 04:58.
Mat_fr is offline   Reply With Quote

Old   August 28, 2012, 07:51
Default
  #2
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
you cannot get your .msh file back from .cas, since you have hanging nodes, as you described here:
http://www.cfd-online.com/Forums/ans...r-msh-cas.html
I assume there were a tpoly conversion (>> maybe that could explained what you mentioned: "the .msh file doesn't match with the simulation results.")
If you still have the .msh file, try to convert the msh file with tpoly utility (fluent)

Else I am not familiar with .cas import into OF, but more with .msh.
Did you try the command fluentMeshToFoam instead of fluent3DMeshToFoam?
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 29, 2012, 05:04
Default
  #3
Member
 
Mat
Join Date: Jan 2012
Posts: 60
Rep Power: 14
Mat_fr is on a distinguished road
Hello Max,

Thank you for your answer !
Yes I still have the initial mesh, but I cannot use it (with or without convertion). Indeed, as the mesh was modified afterwards inside Fluent, it is no more the grid corresponding to my .cas and .dat files.

I also tried fluentMeshToFoam instead of fluent3DMeshToFoam with the .cas file, and then I get another error :


--------------------------------------------------------------------------------------------------------
***
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
Found unknown block in zone
Found end of section in unknown



FINISHED LEXING


dimension of grid: 3
Creating shapes for 3-D cells


--> FOAM FATAL ERROR:
Cannot find match for face 2.
Model: tet model face: 3(0 1 3) Mesh faces:
4
(
3(2 1 0)
3(1 42034 0)
3(1 221021 221023)
3(221021 2 152462)
)
Matched points: 4(42034 2 1 0)

From function create3DCellShape(const label cellIndex, const labelList& faceLabels, const labelListList& faces, const labelList& owner, const labelList& neighbour, const label fluentCellModelID)
in file create3DCellShape.C at line 280.

FOAM aborting
--------------------------------------------------------------------------------------------------------

Thanks for your help !

Mat
Mat_fr is offline   Reply With Quote

Old   August 29, 2012, 05:24
Default
  #4
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
ah ok if there were mesh refinment and/or mesh adaptation, then you cannot get your mesh back.
did you see this thread? http://www.cfd-online.com/Forums/ope...-openfoam.html
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 29, 2012, 06:24
Default
  #5
Member
 
Mat
Join Date: Jan 2012
Posts: 60
Rep Power: 14
Mat_fr is on a distinguished road
Yep I saw it, and indeed we have the same error message.
However, this foamer solved his problem by modifying the .msh file that I don't have. I was looking for a line in the .cas file which may correspond to :
(45 (10 wall from-mask-1-to-zmax-wall 1) ())
but I didn't find anything.
Mat_fr is offline   Reply With Quote

Old   August 29, 2012, 07:09
Default
  #6
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
ok
why do you want to restart from fluent data?
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 29, 2012, 08:26
Default
  #7
Member
 
Mat
Join Date: Jan 2012
Posts: 60
Rep Power: 14
Mat_fr is on a distinguished road
I have converged results in Fluent of a steady flow simulation in a complex geometry, and I want to transport lagrangian particles in OF on the flow field calculated with Fluent. (I know that Fluent also proposes discrete phase modelling, but I would like to use the OF tools)
Mat_fr is offline   Reply With Quote

Old   August 29, 2012, 08:55
Default
  #8
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
Maybe you will be faster if you restart from OF?
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 29, 2012, 09:10
Default
  #9
Member
 
Mat
Join Date: Jan 2012
Posts: 60
Rep Power: 14
Mat_fr is on a distinguished road
At the end, It's what I think also
Mat_fr is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] OpenFoam Mesh to Fluent Mesh in parallel case DominicTNC OpenFOAM Meshing & Mesh Conversion 3 November 22, 2017 10:19
[Commercial meshers] Problem encountered in converting Fluent mesh to OpenFOAM Mesh sathya123 OpenFOAM Meshing & Mesh Conversion 2 November 22, 2015 04:22
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 23:56
OpenFoam 2D mesh to 2D fluent lordvon OpenFOAM 0 November 8, 2010 14:53


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