Problems converting a Fluent case file
Hello,
I have been trying to convert a Fluent .cas file (saved in ASCII) for use in OpenFOAM 2.1.1. The mesh has been adapted in Fluent and has hanging nodes, so there is no mesh file. I'm not sure if this is the problem. The first error message when converting the case file is usually something like: Code:
--> FOAM FATAL ERROR: Code:
--> FOAM FATAL ERROR: Code:
(39 (14 interior default-interior 1)( Code:
(39 (14 interior default-interior 1)( Code:
Checking topology... Code:
(39 (15 interior default-interior 1)( Code:
Zipping mesh to remove hanging nodes |
A work-around
Hello again,
I'm still not sure why the error occurs however this work-around appears to have fixed it. Going with the extra zone (bananas) from above: Code:
(39 (15 interior bananas 1)( Code:
Creating cellZone 0 name: fluid type: fluid Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Then, further down the file, I find my new zone: Code:
bananas Now checkMesh gives an "OK" result - which is a sight for sore eyes after spending many, many hours trying to get around this issue. This mesh has been run in a simulation with icoFoam without issues, so I think it's okay. The next test will be trying the same work-around out on the larger mesh with double adaption and seeing if the same process works. I'm still curious why fluent3DMeshToFoam needs an extra zone to run. If I get time I will have a look through the source code to try and understand what I'm doing wrong. Any thoughts on this would be appreciated. |
Greetings Martin,
I only managed to give a quick read to your posts. I think you can find part of the answer here: http://www.cfd-online.com/Forums/ope...tml#post412947 - post #4 I think the missing part of the answer is due to Fluent's format: it uses fixed codes for each field and mesh type. This would explain why it required you to add the 15th code. Best regards, Bruno |
Could you please tell how to save Fluent .cas files in ASCII format ?
|
It probably depends on the version of fluent.
In v14.5 it's simple: File menu > Write > Case ... then in the Select File dialogue box uncheck the box labelled Write Binary Files. The file saved will be in ASCII format and about twice the size of the binary file. When you open a binary file something like this will appear in the log: Code:
248908 hexahedral cells, zone 1, binary. For other versions of Fluent and for queries off the topic of this thread (converting case files) you'd be better served searching the forums or starting a new thread. |
McFly,
Thanks, it worked. I'm using Fluent v13. As you pointed out, the file size is much higher in ASCII format. |
Just to follow up on my above post.
Firstly, thank you Bruno for your response - I haven't had time to look into it further yet, but maybe someone else will when they have the same problem. Secondly, two weeks ago I tried the same work-around with a mesh of almost 7M cells and it seems to have worked without issues (the mesh was then decomposed and ran on 256 processors fine) so this is a viable solution for now. Thanks, McFly |
Hello!
Just one question that might be stupid, but I am completely new with OpenFOAM... When you transform the mesh using a .cas file instead of a .msh file, you get the whole case set up into OpenFoam? or just the mesh, as if it was a simple .msh file? I ask this, because what I now do is to import the .msh file and then set up the case with HelyxOS, so I don't need to go through so many code files. Thank you :) |
OpenFoam is not capable of interpreting fluent case setups. So if you manage to load the .cas-file, I guess you will only have the mesh (but I have to admit, I wouldn't know how you would convert the .cas-file in openfoam).
Cheers, L |
OK, then... So the good way to do things is to transform just the .msh file...
I get no problems with that... :) |
Hello,
As Lieven said, you are only converting the mesh information. The software can extract a mesh from a case file. This is useful in certain circumstances, such as my case given above. Regards, McFly |
Problem with exporting .msh file in to OpenFOAM
Create time
Dimension of grid: 3 Number of points: 7900 Number of faces: 71723 Number of cells: 33649 --> FOAM Warning : Found unknown block of type: "3010" on line 14 --> FOAM FATAL ERROR: Do not understand characters: [ on line 15 From function fluentMeshToFoam::lexer in file fluent3DMeshToFoam.L at line 754. FOAM exiting Can anyone look in to my problem? I am facing while meshing .msh file in to OpenFOAM. The error shows as the above. |
Quick answer: Use an online search engine to look for the following line:
Code:
site:www.cfd-online.com fluent mesh block 3010 |
All times are GMT -4. The time now is 15:24. |