|
[Sponsors] |
April 18, 2016, 06:40 |
Fluent data to foam
|
#1 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
Hello Foamers
Can you provide the detailed procedure for converting fluentdata to foam for further processing in OpenFOAM |
|
November 22, 2016, 06:10 |
|
#2 |
New Member
Volker
Join Date: Aug 2014
Location: Germany
Posts: 16
Rep Power: 12 |
Hi,
here is a tutorial based example: http://www.cfd-online.com/Forums/ope...tml#post412947 if you are interested in the complete story read: http://www.cfd-online.com/Forums/ope...am-format.html if you need something that compiles and runs with OF version 4 try the zipfile Last edited by volker1; November 23, 2016 at 04:17. Reason: removed <tmp> in code |
|
August 21, 2018, 14:05 |
|
#3 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Quote:
|
||
August 22, 2018, 02:52 |
|
#4 |
New Member
Volker
Join Date: Aug 2014
Location: Germany
Posts: 16
Rep Power: 12 |
Hi,
for me it at least compiled with exactly the same warnings for version 4.1, 5.0 and 6.0. Did not verify the executables however. Note that this converter was not designed for the current binary FLUENT format but for the ASCII output files of earlier versions! |
|
August 22, 2018, 09:05 |
|
#5 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Quote:
Have you ever used this tool?! Did you notice any changes in the velocity field when compared to the results obtained by Fluent? I did the tutorial recommended by Bruno (cavity) ... and there was a disparity of results. |
||
August 23, 2018, 03:01 |
|
#6 |
New Member
Volker
Join Date: Aug 2014
Location: Germany
Posts: 16
Rep Power: 12 |
Hi,
I do not work with FLUENT but I considered to work with FLUENT results from others as background fields. So I am sorry I cannot help on the FLUENT side at all. As fluentDataToFoam is a converter my test was first to convert a few OF cases (including the cavity tutorial) to FLUENT with the reverse converter foamDataToFluent that should be part of OF4.1. Then back to OF with fluentDataToFoam. Then I compared the original and twice converted data and found it identical. This is what good converters should do, right? BTW, the same procedure with the CGNS format converters will result in some smearing of data due to a node vs. cell center issue. If you have a (considerable) disparity of results between OF and FLUENT calculation results of the cavity case (I assume that's what you did and compared?) it probably comes from the calculation. Use identical models and properties data and moreover fixed, equal time steps for both. I remember that I found small differences already for different OF versions with basically the same input files. |
|
August 24, 2018, 14:15 |
|
#7 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
I ran the tutorial described by Bruno (cavity), on the link shared by you. When converting the Fluent field to OF (still in the cavity tutorial), I noticed that the results did not look alike, based on the analysis done in ParaView ... I believe that maybe I could have done something wrong in the tutorial procedure.
I also do not work with Fluent, but I want to import a turbulent field for OF analysis. Here's my utility compilation log, kindly ask me to judge whether the build was correct: https://paste.ubuntu.com/p/kMWrWZNGrM/ Is the field distortion problem related to these Warnings? Do you know the solution for them?! |
|
August 28, 2018, 04:01 |
|
#8 |
New Member
Volker
Join Date: Aug 2014
Location: Germany
Posts: 16
Rep Power: 12 |
Hi,
I do not understand some things here: - How is your FLUENT result related to the cavity tutorial? Why should it look alike? - Where does it come from at all if you do not work with FLUENT? Or did you also just try to convert the cavity tutorial from OF to FLUENT and back and this did not work properly? As I wrote above that worked for me in spite of the warnings. Your warnings seem the same warnings that I got. There are two FLUENT to OF mesh converters: fluent3DMeshToFoam and fluentMeshToFoam. The cavity tutorial is 2D, so maybe this is an issue, too. Just try both and see what happens. |
|
August 28, 2018, 15:05 |
|
#9 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Quote:
My intention is to bring a turbulent field obtained in Fluent to OF ... but for this, I need to ensure that the tool works. |
||
August 29, 2018, 04:46 |
|
#10 |
New Member
Volker
Join Date: Aug 2014
Location: Germany
Posts: 16
Rep Power: 12 |
Hi
I tried it out again by download of my zipfile, compilation with V5.0 and application on the V5.0 cavity case for time 0.1. For the tutorial I just did "Allrun" and then picked up everything I need for conversion elsewhere. With regard to the instructions by Bruno in the link there is a slight change (already for V4.1): postProcess -func "components(U)" replaces: foamCalc components U Guess you found this out yourself to come that far at all. My findings are: The tools works perfect ("diff" reports no changes) for the internal fields of U und p. However foamDataToFluent writes numeric values into the boundary fields instead of "zeroGradient" or whatever. But I suppose this is the best foamDataToFluent could do. I did however not check if this numeric data of boundary fields in the fluent *.dat files is reasonable and properly transferred to OF by fluentDataToFoam. I noticed that pressure dimensions are wrong after re-conversion to OF. Probably an easy fix in the converter source or just edit the "p" files. So I confirm again the FLUENT converters basically work fine for the internal fields also in V5.0. So the converters should not cause a data distortion problem after converting twice. BTW, if you look at the frontAndBack patch in paraView, I agree that p and U look distorted so the boundary fields are obviously not treated properly. Maybe this is your issue? If you only check "internalMesh" in "Mesh Parts" in ParaView things look much better! |
|
August 29, 2018, 09:48 |
|
#11 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Quote:
I would like to point out that I am not criticizing the application, but rather questioning whether you have had problems similar to mine... |
||
September 1, 2018, 07:57 |
|
#12 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
I performed new tests using my Fluent exported data and worked perfectly.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
Fluent crash on writing data file after thousand iterations | Chuck87 | FLUENT | 0 | September 2, 2015 17:17 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |