CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Post-processing OpenFoam Results in Fluent using FoamDataToFluent

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2025, 06:28
Exclamation Post-processing OpenFoam Results in Fluent using FoamDataToFluent
  #1
Member
 
Mohsin
Join Date: Jul 2023
Posts: 30
Rep Power: 5
Mohsin1 is on a distinguished road
When I export OpenFOAM results to Fluent using FoamDataToFluent, the pressure contours don’t match those in ParaView, even for a standard case like the elbow benchmark. Why does this discrepancy occur, and how can I ensure consistent pressure visualization between the two?
Mohsin1 is offline   Reply With Quote

Old   July 28, 2025, 07:41
Default
  #2
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 599
Rep Power: 21
JBeilke is on a distinguished road
How different are they? Can you post 2 pictures? During the export we might have to choose between cell based values and vertex/node based values.
JBeilke is offline   Reply With Quote

Old   July 28, 2025, 08:51
Default
  #3
Member
 
Mohsin
Join Date: Jul 2023
Posts: 30
Rep Power: 5
Mohsin1 is on a distinguished road
Quote:
Originally Posted by JBeilke View Post
How different are they? Can you post 2 pictures? During the export we might have to choose between cell based values and vertex/node based values.

I have attached the pictures as well as the case. Velocity contours are exactly same. But pressure are not. The pressure p (which i think is kinametic pressure in openfoam) when opened in paraview does not match with any of the pressure (static pressure, dynamic pressure, total pressure etc) in fluent. How can I ensure consistent pressure visualization between the two (paraview and fluent, just like velocity contours)?
Attached Images
File Type: jpg paraview.jpg (80.6 KB, 5 views)
File Type: jpg fluent.jpg (110.3 KB, 5 views)
Attached Files
File Type: zip elbow.zip (124.5 KB, 1 views)
Mohsin1 is offline   Reply With Quote

Old   July 28, 2025, 10:46
Default
  #4
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 599
Rep Power: 21
JBeilke is on a distinguished road
Your fluent pressure is zero everywhere. So something went wrong.


The pressure for incompressible cases in OpenFOAM is p/rho and not the pressure itself.
JBeilke is offline   Reply With Quote

Old   July 28, 2025, 11:19
Default
  #5
Member
 
Mohsin
Join Date: Jul 2023
Posts: 30
Rep Power: 5
Mohsin1 is on a distinguished road
Quote:
Originally Posted by JBeilke View Post
Your fluent pressure is zero everywhere. So something went wrong.


The pressure for incompressible cases in OpenFOAM is p/rho and not the pressure itself.

Yes static pressure is zero in fluent. I don't know how foamDataToFluent converts the p/rho to pressure in fluent. Is there a way to see the static pressure or p/rho in fluent?
Mohsin1 is offline   Reply With Quote

Old   July 28, 2025, 16:00
Default
  #6
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 599
Rep Power: 21
JBeilke is on a distinguished road
What's your boundary type for "frontAndBackPlanes" in Fluent. You should specify it as symmetry or slip-wall. When you define it as pressureOutlet, your resulting pressure will be zero.
JBeilke is offline   Reply With Quote

Old   July 29, 2025, 02:29
Default
  #7
Member
 
Mohsin
Join Date: Jul 2023
Posts: 30
Rep Power: 5
Mohsin1 is on a distinguished road
Quote:
Originally Posted by JBeilke View Post
What's your boundary type for "frontAndBackPlanes" in Fluent. You should specify it as symmetry or slip-wall. When you define it as pressureOutlet, your resulting pressure will be zero.
Setup:

I'm using the standard elbow tutorial case from OpenFOAM without any modifications.

My goal is to verify if foamDataToFluent correctly exports the mesh and data for CFD results comparison in Fluent (for another simulation).

Problem:

The frontAndBackPlanes boundary in OpenFOAM is defined as type empty, but when exported to Fluent, it appears as a pressureOutlet.

Attempted Fixes:

1. Manually changing it to symmetry in Fluent did not resolve the issue.

2. Modified the OpenFOAM boundary files (p, U, and boundary) to set frontAndBackPlanes as symmetry, then re-exported using foamMeshToFluent and foamDataToFluent.

Result: Fluent now correctly recognizes it as symmetry, but the static pressure remains zero.

Request:

Could you please review the attached ZIP file from my previous replies and help identify the issue? Any guidance would be greatly appreciated.
Mohsin1 is offline   Reply With Quote

Old   July 29, 2025, 02:37
Default
  #8
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 599
Rep Power: 21
JBeilke is on a distinguished road
I already read your elbow.msh into StarCCM+ and found that frontAndBack are defined as pressure-outlet. Thats why I suspected something wrong there.

So your problem is the Fluent setup and has nothing to do with OpenFOAM or with the postprocessing.

It should be easy to change the boundary type within FLUENT. There is no need to change the mesh in OF and do a reexport.

Please check within Fluent, if there is a "pressure" variable. Usually you have "pressure" , "absolute-pressure" ...
JBeilke is offline   Reply With Quote

Old   July 29, 2025, 03:16
Default
  #9
Member
 
Mohsin
Join Date: Jul 2023
Posts: 30
Rep Power: 5
Mohsin1 is on a distinguished road
Quote:
Originally Posted by JBeilke View Post
I already read your elbow.msh into StarCCM+ and found that frontAndBack are defined as pressure-outlet. Thats why I suspected something wrong there.

So your problem is the Fluent setup and has nothing to do with OpenFOAM or with the postprocessing.

It should be easy to change the boundary type within FLUENT. There is no need to change the mesh in OF and do a reexport.

Please check within Fluent, if there is a "pressure" variable. Usually you have "pressure" , "absolute-pressure" ...
Even after modifying the boundary type in Fluent, the issue of zero static pressure remains unresolved. Although Fluent offers various pressure types, none of them match the pressure values observed in ParaView (OpenFOAM) or correspond to a multiple of the fluid density (ρ).
Attached Images
File Type: png Screenshot (3).png (31.9 KB, 3 views)
Mohsin1 is offline   Reply With Quote

Reply

Tags
fluent, openfoam, paraview, postprocessing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
Comparison between OpenFoam and Fluent results chku24 OpenFOAM Running, Solving & CFD 2 January 19, 2020 20:52
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04


All times are GMT -4. The time now is 00:08.