|
[Sponsors] |
Problem with fluentDataToFoam (from OF 1.6 ex) in OF 2.1.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 10, 2013, 08:35 |
Problem with fluentDataToFoam (from OF 1.6 ex) in OF 2.1.1
|
#1 |
New Member
DDB
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
Hi all,
I followed the instructions in this thread to overcome the compilation problems http://www.cfd-online.com/Forums/ope...of2-1-1-a.html I have already generated the OF mesh using fluent3DMeshToFoam. However, when I run fluentDataToFoam I get the error: Code:
--> FOAM FATAL IO ERROR: cannot find file file: /home/.../constant/polyMesh/zoneToPatchName at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 73. FOAM exiting Any help gratefully received! |
|
March 10, 2013, 08:39 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi DDB,
Can you create a simple test case and share it so that I (or anyone else) can try to replicate the same error!? Best regards, Bruno
__________________
|
|
March 10, 2013, 10:02 |
|
#3 |
New Member
DDB
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
I'd love to, but I don't have access to fluent anymore :-(
I did some cases at uni a few years ago & now I want to work on them in OF, but I am not at uni now and I certainly cannot afford the fluent fees! |
|
March 10, 2013, 11:42 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi DDB,
Very well, then lets reverse engineer this thing. First I'm going to use the tutorial "incompressible/icoFoam/cavity" as basis for creating the simple Fluent dataset:
Now for converting stuff back from Fluent to OpenFOAM:
A few notes of caution:
Bruno
__________________
|
|
March 10, 2013, 14:42 |
|
#5 |
New Member
DDB
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
Bruno, you are an OF guru! Thank you so much!
I had no issues at all with the cavity problem, following the steps as you outlined, however I ran into some issues with my old fluent files. The msh file is easier to find info for the zoneToPatchName than the cas file, but searching for "(39 (" found the stuff ok. (For my reference when I come back to this, change the number in the zoneToPatchName to correspond to the number of patches! 13 is not unique!) I have changed the startTime in system/controlDict, but the data only writes to the 0 folder (whereas following your example there was no issue in writing to whatever folder I chose). I haven't had a chance to look at the boundary conditions yet, but your help so far has been amazing, thank you :-) |
|
March 21, 2013, 06:20 |
|
#6 | |
Senior Member
Join Date: Nov 2012
Posts: 171
Rep Power: 14 |
Hello Bruno,
Your procedures listed are veru useful. I did the fluentDataToFoam but the following error: Create time Machine config: 600012484888 Grid size: nCells = 5984008 nFaces = 12248025 nPoints = 1156110 00Grid size: nCells = 1 nFaces = 25 nPoints = 1 --> FOAM FATAL IO ERROR: wrong token type - expected int, found on line 1 the punctuation token '(' file: IStringStream.sourceFile at line 1. From function operator>>(Istream&, int&) in file primitives/ints/int/intIO.C at line 68. FOAM exiting Does it mean the format of the dat files are not correct? Quote:
|
||
March 24, 2013, 13:13 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi hz283,
Follow my example with the tutorial case and then compare the file formats. I say this because I can't figure out what's wrong just from your error message So you'll have to compare the files yourself! Best regards, Bruno
__________________
|
|
March 24, 2013, 14:15 |
|
#8 |
Senior Member
Join Date: Nov 2012
Posts: 171
Rep Power: 14 |
Hi Bruno,
Thank you so much for your continuous help. best H |
|
October 6, 2013, 12:09 |
|
#9 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hi Bruno,
From all this i just have one question for you I'm not that familiar with openFOAM so that being said in the foamDatatoFluentDict how do you know what value corresponds to what like u have entered p 1; Ux 111; Uy 112; Uz 113; i want to know the values for objects such as k, alpha, p_mean, u_mean and all such objects and their corresponding number where is the dictionary with the list of values and i dunno where is "fluentDataToFoam.L" been searching all inside open foam Best Regards, Hasan K.J. |
|
October 6, 2013, 12:16 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Hasan,
Good question! I was going to say that I didn't know, but then I did a quick search and found this: https://github.com/OpenFOAM/OpenFOAM...nitNumbers.txt Best regards, Bruno
__________________
|
|
October 6, 2013, 12:35 |
|
#11 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hi Bruno,
Thanks for the reply, clearly i have to improve my searching skills coz i have been searching for quite some time now u saved me a lot of time. So in the link u sent me it comes like XF_RF_DATA_NULL=0, XF_RF_DATA_NULL_M1=0, XF_RF_DATA_NULL_M2=0, XF_RF_DATA_NULL_MEAN=0, XF_RF_DATA_NULL_RMS=0, XF_RF_DATA_PRESSURE=1, so the nomenclature we put doesnot matter only the number maters or we need to put the nomenclature that will be there on the "0" file ? Thanks a lot for your time Regards, Hasan K.J |
|
October 14, 2013, 16:30 |
Thanks for sharing... :) :) :)
|
#12 | |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Quote:
That helped me a lot i have been playing with it for the past few days and i am not still able to figure which of the those numbers go for pMean, PMean2Prime, UMean and UMean2Prime. atleast for pMean and PMean2Prime i can guess XF_RF_DATA_PRESSURE_MEAN=400, XF_RF_DATA_PRESSURE_RMS=401, but for UMean and UMean2Prime (openFOAM has only one file) could it be XF_RF_DATA_X_VELOCITY_MEAN=402, XF_RF_DATA_X_VELOCITY_RMS=403, XF_RF_DATA_Y_VELOCITY_MEAN=404, XF_RF_DATA_Y_VELOCITY_RMS=405, XF_RF_DATA_Z_VELOCITY_MEAN=406, XF_RF_DATA_Z_VELOCITY_RMS=407, i tired but no luck, any wise suggestions Kind Regards, Hasan K.J |
||
October 14, 2013, 17:33 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Hasan,
I don't have access to Fluent, therefore I have absolutely no idea Given that Fluent uses such a coded way of distinguishing fields, my guess is that there are no such fields in Fluent. My suggestion if that you run a simple example case in Fluent and try to generate those fields. Then save the case in ASCII format and then try to figure out where those fields are defined in the file and which code is used by Fluent. Good luck! Best regards, Bruno
__________________
|
|
October 14, 2013, 17:49 |
|
#14 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hey Bruno,
Perfect i did that when i had some trouble importing data to CFDPost, but i dunno why it dint strike me now Thanks a lot for the suggestion Kind Regards, Hasan K.J |
|
February 3, 2014, 10:16 |
|
#15 |
New Member
Saeed Salehi
Join Date: Aug 2010
Posts: 27
Rep Power: 16 |
Dear Bruno,
First Thanks for your helps. I did follow your example step by step and it works fine. But when i try to do my own case i get this ------------------------------------------------------------------------------------------------------ Machine config: 600012444888 Grid size: nCells = 1594250 nFaces = 4842786 nPoints = 1654892 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\00Grid size: nCells = 1 nFaces = 2 nPoints = 1 E�s���俟h --> FOAM FATAL IO ERROR: Attempt to get back from bad stream file: IStringStream.sourceFile at line 0. From function void Istream::getBack(token&) in file db/IOstreams/IOstreams/Istream.C at line 56. FOAM exiting ------------------------------------------------------------------------------------------------------ What do you think the problem is. Just so you know i am using Ansys Fluent 14.5. Does "fluentDataToFoam" support newer version of fluent files? Thanks, Cheers. |
|
February 4, 2014, 15:35 |
|
#16 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Saeed,
Quote:
But I believe that the problem is related to the export option you're using, namely that you cannot use the binary export mode, you must use the ASCII (text) mode. Best regards, Bruno
__________________
|
||
February 10, 2014, 08:30 |
|
#17 |
New Member
Saeed Salehi
Join Date: Aug 2010
Posts: 27
Rep Power: 16 |
Dear Bruno,
Thanks for your guidance. I'm gonna give it a try. Best Regards, |
|
March 26, 2015, 05:44 |
|
#18 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
Dear everybody,
I type fluentDataToFoam name.dat and I also have the following error: --> FOAM FATAL IO ERROR: wrong token type - expected int, found on line 1 the punctuation token '(' file: IStringStream.sourceFile at line 1. From function operator>>(Istream&, int&) in file primitives/ints/int/intIO.C at line 68 Has anyone solved it? |
|
March 28, 2015, 16:50 |
|
#19 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Isabel,
After re-reading most of the posts above, I have to ask you this: is your Fluent data file in ASCII or in binary format? Because fluentDataToFoam can only handle ASCII format. Best regards, Bruno
__________________
|
|
April 9, 2015, 08:54 |
|
#20 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
Dear Bruno,
Thank you very much. I have disabled the option "write binary files" when I write the Fluent data and now I can execute fluentMeshToFoam and fluentDataToFoam. Nevertheless, when I open the results in ParaView these are different from the original Fluent ones. I am working with a 3D simulation. Does anybody know what happens? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Problem Importing Geometry ProE to CFX | fatb0y | CFX | 3 | January 14, 2012 20:42 |
Solve single but higher order equation by OF 1.6 suffering Problem | alundilong | OpenFOAM Programming & Development | 0 | December 23, 2010 14:53 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |