CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   FoamDataToFluent (https://www.cfd-online.com/Forums/openfoam-post-processing/61340-foamdatatofluent.html)

maritozzo October 6, 2005 05:41

Someone can tell me what i nee
 
Someone can tell me what i need to specify in the foamDataTofluent controlDict..
Please Help

hjasak October 6, 2005 06:27

There is an example dictionary
 
There is an example dictionary shipped with the application and this should be the case for ALL such dictionaries. Have a look at:

OpenFOAM-1.2/applications/utilities/postProcessing/dataConversion/foamDataToFlue nt

There, you will find the example dictionary: foamDataToFluentDict, a list of fluent unit numbers that are given in the converter and the complete source code.

Hrv

nfoxley May 10, 2006 10:40

Hi, I have used the templat
 
Hi,

I have used the template suggested above but I still only get the mesh for t=0. I am using OF v1.2, will v1.3 be any different?

Thanks, Natalie

hjasak May 10, 2006 11:13

It still works in OpenFOAM-1.3
 
It still works in OpenFOAM-1.3 as it did in 1.2 - I have just tested it:

1) edit system/controlDict and set

startFrom latestTime;

2) run:

foamMeshToFluent /home/hjasak/OpenFOAM/hjasak-1.3/run/test cavity

3) run:

foamDataToFluent /home/hjasak/OpenFOAM/hjasak-1.3/run/test cavity

4) look at the data:

cd /home/hjasak/OpenFOAM/hjasak-1.3/run/test/cavity/fluentInterface
fluent 3d

and load the case and data.

Hrv

nfoxley May 10, 2006 12:19

Hi again, I have done what
 
Hi again,

I have done what you suggested above. I can now get the log file to say that it is writing at the the latest time, but the resulting data is nonsense as it is just zeros, which is not in agreement with the output for paraFoam, EnSight or VTK for the same case. I have tried on 3 different cases and the result is always the same. Also, is there no way to write data at every timestap as there is for the other post processors?

Thanks,
Natalie.

hjasak May 10, 2006 13:12

Hi Natalie, (copy of E-mail)
 
Hi Natalie, (copy of E-mail)

I have packed and attached the case - could you please try this one to see if your installation works.

As for multiple steps, you can easily change the code: just take the contents of the foamDataToFluent and put it all into a time loop. Additionally, dump every set of results into a separate file and all should be well on the Fluent side.

If you need help with this, please give me a shout and I'll help.

Regards,

Hrv

nfoxley May 11, 2006 13:03

Hi, Thank you for the abov
 
Hi,

Thank you for the above... that reads into fluent fine and I can reproduce the results...2nd time around. I seem to have a problem where running foamDataToFluent sometimes overwrites my data with something similar to (but not the same as) the conditions at t=0. I have not been able to isolate under which circumstances it does this and when it doesn't. I have found that using the backup files I can resave my data and try again, then it usually works. Why is this the case?

I'll try your suggestion for attempting multiple steps in the next few days,

Thanks again,
Natalie.

vivekcfd February 22, 2007 07:03

Hi I am facing exactly the sa
 
Hi
I am facing exactly the same problem. I am trying to convert the cavity case with foamDataTofluent, however, the output file contains field value 0 everywhere. Hrv could you pls let me know, how to overcome this problem? I want to convert Foam data to Fluent.

thanks
Vivek

hjasak February 22, 2007 08:57

Have a look at your controlDic
 
Have a look at your controlDict: does it by any chance say:

startFrom startTime;
startTime 0;


If you've got zeros, it is likely that you are converting startTime instead of latestTime or similar, which actually contains the results.

Give me a sign,

Hrv

vivekcfd February 23, 2007 02:09

my controlDict says: startF
 
my controlDict says:

startFrom firstTime;
startTime 0;

I think you are right, the problem is that I am getting file corresponding to startTime, i.e. 0.

Could you please let me know how to solve the problem?

thanks

hjasak February 23, 2007 02:28

Do you have any results? What
 
Do you have any results? What is the time directory you wish to use? Put that number under startTime.

Alternatively, do startFrom latestTime; which should do the trick.

Hrv

robinp September 5, 2007 11:16

I'm also getting the problem w
 
I'm also getting the problem with foamDataToFluent writing a load of zeros instead of the data I've created. I've checked the data previously with paraFOAM, so I know it's there, but the act of running foamDataToFluent overwrites the data with zeros before converting it to the Fluent mesh. I've played around with the start time, and as a result have managed to erase my data at several time steps. Has anyone managed to sort out this problem yet?

robinP

hjasak September 5, 2007 11:23

Heya, At the beginning of f
 
Heya,

At the beginning of foamDataToFluent.C it says:

Info<< "Time = " << runTime.timeName() << nl << endl;

Therefore, the code should tell you which time-step it is using to read. Could you check that the numbers in the fields for that time are correct and that this is what you are actually trying to convert.

The second issue is the contents of foamDataToFluentDict: this gives you the Fluent field code for each named field you are trying to convert. Do you have that/does it make sense? You could also manually check the resulting .cas file to see if there are numbers in there to establish if it is the converter causeing trouble or the subsequent read into Fluent.

Hrv

robinp September 6, 2007 12:40

The program was accessing the
 
The program was accessing the correct timestep, where there was data before I ran it, but it was overwritten with zeros by the time it finished. That said, I reran my case to replace the data and it did work today, despite me making no discernable changes. This seems to be the same problem reported by Natalie Foxley on May 11, 2006, above. I'm using Xfoam to run foamDataToFluent so the foamDataToFluentDict is the one set up on the fly by the GUI. I'm just using the defaults, but they're the same as in the user guide.

Robin

lhcamilo December 23, 2008 05:41

I have followed the instructio
 
I have followed the instructions above to export foam files into fluent format, though mostly it works (I am able to get the .dat files for each time step), I can't seem to find the .cas file(s) inside the "fluentInterface" folder.


any tips?

thanks in advance

leo

fra76 December 23, 2008 07:38

foamDataToFluent, as the name
 
foamDataToFluent, as the name says, exports only the data files.
You need to run foamMeshToFluent as well.

Francesco

lhcamilo December 23, 2008 08:25

thank for the reply, though fo
 
thank for the reply, though foamMeshToFluent did produce a .msh file, it seems I still need a .cas file to read it into Tecplot.

I have already tried, to import foam cases first into tecplot using the foamToTechplot tool but that cannot handle the polyhedrals that are generated by snappy , then the Ensight one (breaks Tecplot 360 2008, I have already contacted the support and I am waiting their response.).

any further help is greatly appreciated

regards

leo

fra76 December 23, 2008 12:02

If you have access to fluent,
 
If you have access to fluent, just load the .msh and save it as .cas.
Otherwise you could try to rename the .msh in .cas and cross your fingers! The main difference between the two is the boundary conditions sections, only present in the .cas file. The mesh is the same in both files.
I don't know Tecplot at all, so this is all I can suggest you.

Francesco

khalid1059 September 28, 2009 01:15

Quote:

Originally Posted by maritozzo (Post 199327)
Someone can tell me what i need to specify in the foamDataTofluent controlDict..
Please Help

Hi a m a new OpenFOAM user. can u plzz tell me in detail How OpenFOAM data is conveted to Fluent as a single Fluent.dat file. I tried the command foamDataToFluent but as a result i got plenty of files for fluent for each time step for transient case. Now i dont know how to read them in fluent.:eek:Bcz in fluent only a single .dat file is to be needed for reading but here are plenty of .dat files.I m in a fix plzz resolve my problem:(:(

gschaider September 28, 2009 12:30

Quote:

Originally Posted by khalid1059 (Post 230662)
Hi a m a new OpenFOAM user. can u plzz tell me in detail How OpenFOAM data is conveted to Fluent as a single Fluent.dat file. I tried the command foamDataToFluent but as a result i got plenty of files for fluent for each time step for transient case. Now i dont know how to read them in fluent.:eek:Bcz in fluent only a single .dat file is to be needed for reading but here are plenty of .dat files.I m in a fix plzz resolve my problem:(:(

The last time I worked with Fluent (admittedly some time ago) it wrote a .dat-file for every time-step (maybe this changed with the newest versions). So this sounds more like a Fluent problem and I guess the Fluent-support will be happy to help you with this

khalid1059 September 28, 2009 21:52

Thanx gschaider
 
Thanx gschaider for the quick reply i found the solution to my problem:)

khalid1059 September 28, 2009 21:57

Thanx Bernhard Gschaider for quick reply. i got u and corrected this error. One more problem i m facing is now is that "when i uses foamMeshToFluent and foamDataToFluent then get .msh and .dat files. BUT WHEN I LOAD THESE FILES RESPECTIVELY IN FLUENT 6.3.26 I M NOT ABLE TO SEE RESULTS THOUGH THESE FILES HAVE BEEN SUCCESSFULLY LOADED " ALSO IN .MSH FILES obtained by foamMeshToFluent didnt include boundary conditions. i m transferring data for dieselFoam case.plz help me out

khalid1059 September 28, 2009 22:33

:confused:Hi hrv i m using dieselFoam tutorial on OF-1.5 and i wanna view the results on Fluent (I already have seen them on paraFoam)...now problem i m facing is that AFTER GETTING .msh and .dat files BY using foamMeshToFluent and foamDataToFluent WHEN I LOAD THESE FILES RESPECTIVELY IN FLUENT 6.3.26 I M NOT ABLE TO SEE RESULTS THOUGH THESE FILES HAVE BEEN SUCCESSFULLY LOADED. :o:o:oWhether additional parameters i must set to post process my case in fluent brfore loadinf it to Fluent?/?. I tried k epsilon model bedore loading .dat file on Fluent but still i didnt get results..Diesel Foam uses Euler Lagrange approach.... "

I ALSO noticd that in .MSH FILE obtained by foamMeshToFluent didnt include boundary conditions.I already have saved .msh file as .cas files but still no boundary conditions are set in (Define---->Boundary conditions). :mad::mad::mad::mad:
i m doing MS process Engineering from islamabad and i am interested to post process OF results on different tools.....plz help me out

PrzemekPL December 11, 2009 07:17

Hallo,

Importing results into Fluent seems to work fine but did anyone manage to do it in CFX-postproceossor?

So far I've managed to read in mesh in CFX-Pre but no success in CFX-post.

thanks,
Przemek

whyingwang December 12, 2012 22:09

hello
Here I recently tried foamDataToFluent & foamMeshToFluent.But my fluent can not read them.It told me there is not a case file.
It didn't generate any case file.
Can you tell me why?
Thanks.

zaynah04 January 3, 2013 01:19

dear everyone..

i have followed the instructions given here for the viewing of an openfoam in fluent..

I have also saved the .msh file as case in my fluent and i have finally run my .dat file..

i have my whole system red colour in display->contour->velcity.
Quote:

read_thread_data_section: invalid thread id 18.
Skipping data sub-section 2 for thread 1. Wrong size (3 != 2)
Skipping data sub-section 2 for thread 10. Wrong size (3 != 2)
read_thread_data_section: invalid thread id 11.
Skipping data sub-section 2 for thread 12. Wrong size (3 != 2)
read_thread_data_section: invalid thread id 13.
In my .dat case in fluent i notice the above.

2- why does i have a lot of .dat files? Am i not supposed to have found only 1?

i would be really grateful to anyone who answer my queries

regards
zaynah

dogan January 22, 2013 12:03

Hi everyone,

i've tried to use the command "foamDataToFluent" as described in here, and i got ".dat" files for each time step of my simulation. Afterwards, i wanted to load the last step of ".dat" files to CFX5, but i got an warning message as follows:

" Note that for files other than CFX-Solver Results, global ranges are calculated for the used variables and the currently loaded timestep only. As more timesteps are loaded, global variable ranges are adjusted dynamically. Tip: To avoid dynamic range updates, you can use local variable ranges, or turn on pre-calculation of global ranges for all timesteps and all variables in : Edit>Options>CFD-Post>Files"

once i click on OK after this warning message, then i got the error message as follows :

"SEVERE
Operation failed. (System exception: Invalid fluent case file) "

So i am thinking of that the reason of this error message is the version i use in OpenFoam or in CFX. i am using OpenFOAM 2.1.x, and CFX14.0. so my question is, does anyone of you managed to do the conversion with those mentioned versions of O.F and CFX? or do you have any idea what the mistake may be?
thanks

HHOS July 31, 2013 04:38

Cannot define the timeSteps I want to import
 
Hello;

I am able to export the data (I use openFoam 2.2.0), but I cannot export just the last timeStep, it always transform every single timeStep.

OK, I could delete all the data I don't need, but the point is that it doesn't do what it is supposed to do... I have changed the ControldDict file, changing the startFrom to latestTime:
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 10000;
deltaT 1.0;
writeControl timeStep;
writeInterval 1000;
purgeWrite 0;
writeFormat ascii;
writePrecision 10;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
graphFormat raw;
runTimeModifiable true;
I have tried also setting the startTime to 10000, but it anyway exported every timestep.

Any clue??

Thank you very much!

kmpang February 25, 2014 04:31

Quote:

Originally Posted by dogan (Post 403353)
Hi everyone,

i've tried to use the command "foamDataToFluent" as described in here, and i got ".dat" files for each time step of my simulation. Afterwards, i wanted to load the last step of ".dat" files to CFX5, but i got an warning message as follows:

" Note that for files other than CFX-Solver Results, global ranges are calculated for the used variables and the currently loaded timestep only. As more timesteps are loaded, global variable ranges are adjusted dynamically. Tip: To avoid dynamic range updates, you can use local variable ranges, or turn on pre-calculation of global ranges for all timesteps and all variables in : Edit>Options>CFD-Post>Files"

once i click on OK after this warning message, then i got the error message as follows :

"SEVERE
Operation failed. (System exception: Invalid fluent case file) "

So i am thinking of that the reason of this error message is the version i use in OpenFoam or in CFX. i am using OpenFOAM 2.1.x, and CFX14.0. so my question is, does anyone of you managed to do the conversion with those mentioned versions of O.F and CFX? or do you have any idea what the mistake may be?
thanks

Hi Dogan,

Did you manage to solve the problem? I could open my .cas and .dat in Fluent but I am facing the same problems that you wrote.

Please advise. Many thanks.

Best regards,
Pang

Blanco November 3, 2014 11:25

Quote:

Originally Posted by dogan (Post 403353)
Hi everyone,

i've tried to use the command "foamDataToFluent" as described in here, and i got ".dat" files for each time step of my simulation. Afterwards, i wanted to load the last step of ".dat" files to CFX5, but i got an warning message as follows:

...

So i am thinking of that the reason of this error message is the version i use in OpenFoam or in CFX. i am using OpenFOAM 2.1.x, and CFX14.0. so my question is, does anyone of you managed to do the conversion with those mentioned versions of O.F and CFX? or do you have any idea what the mistake may be?
thanks

Hello dogan,
have you finally found an answer to your question? I am facing the same problem, I'm trying to import .dat in CFD-Post (CFX post-processor) without positive results. I get the same error you reported...I can successfully import the mesh but just the mesh without scalars...

Any suggestion?

Regards,

Andrea

Blobs April 3, 2015 06:20

Importing .dat in windows Fluent
 
Hi all,

I have (as far as I can tell) successfully used the foamMeshToFluent and foamDataToFluent command. More precisely I made my mesh in Ansys Mesh Modeler and saved it in ASCII format and successfully imported it to OpenFOAM (with the fluentMeshToFoam utility). This is what I have done step by step:

-Model mesh in Ansys mesh modeller, save in ASCII format.
-Import mesh in OpenFOAM (fluentMeshToFoam utility).
-Performed a seemingly successful K-Epsilon RNG simulation within the HelyxOS environment.
-Checked results in paraView (Looks pretty realistic).

Now I want to post-process my results on Win7 with Ansys CFD Post or Fluent (since that utility is available). Here is what I have tried so far:

-Export the .dat file with foamDataToFluent and exported the mesh with foamMeshToFluent to get the .msh mesh file.

Opening the .msh file in Fluent(Win7, different machine) works, I can see the mesh and it looks fine. All faces (inlet, outlet, symmetry) are defined and I set Fluent to K-Epsilon RNG so it has the correct variables available. Now when I try to import the .dat file Fluent gives the follow error:

''Warning: case and data files are inconsistent zone 10[xxxx,xxxx] data [xxxx,xxxxx]"

This error is repeated for all zones in the mesh.

Hope you guys can help! Thanks in Advance,

Joris

Howard May 11, 2016 13:03

Dear Robinp, I'm also using XiFoam and would like to convert the results to Fluent. My problem is that if I only convert the T,U,P there is no problem but when I add one species, the fluent will have problem in reading the .dat file. Do your have any idea on this problem? Thank you!

masoudsh June 27, 2016 17:31

Hi Joris

I have your problem too.
do you solve it?
please someone help me.

kk415 May 14, 2018 02:40

hi Foamers

I am using foamDataToFluent for postProcessing. It works well and the last few message from terminal I can show as:

Time = 98
Converting field p
Converting field T
Converting field U

Time = 99
Converting field p
Converting field T
Converting field U

Time = 100
Converting field p
Converting field T
Converting field U

End

But when I load this data file in Fluent I can't get contour of temperature nor the wall heat flux. What could be the possible reason!!!

rarnaunot December 14, 2020 12:33

Same problem
 
Hi foamers,

It is an old thread but I have the same problems as you.

Quote:

Originally Posted by dogan (Post 403353)
Hi everyone,

i've tried to use the command "foamDataToFluent" as described in here, and i got ".dat" files for each time step of my simulation. Afterwards, i wanted to load the last step of ".dat" files to CFX5, but i got an warning message as follows:

" Note that for files other than CFX-Solver Results, global ranges are calculated for the used variables and the currently loaded timestep only. As more timesteps are loaded, global variable ranges are adjusted dynamically. Tip: To avoid dynamic range updates, you can use local variable ranges, or turn on pre-calculation of global ranges for all timesteps and all variables in : Edit>Options>CFD-Post>Files"

once i click on OK after this warning message, then i got the error message as follows :

"SEVERE
Operation failed. (System exception: Invalid fluent case file) "

So i am thinking of that the reason of this error message is the version i use in OpenFoam or in CFX. i am using OpenFOAM 2.1.x, and CFX14.0. so my question is, does anyone of you managed to do the conversion with those mentioned versions of O.F and CFX? or do you have any idea what the mistake may be?
thanks

I did the mesh and simulation and I would like to openthe mesh and data in CFD-Post. I did the foamMeshToFluent and foamDataToFluent .. I can see the mesh in CFX Post but I was not able to import the data results :(

I saved the .cas with the .msh but still unable to import the data results. Could be worng the name of the files with the time? Any guess?

Thanks,


All times are GMT -4. The time now is 02:07.