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

Transforming results to OpenFOAM format

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

Like Tree3Likes
  • 2 Post By mbeaudoin
  • 1 Post By mbeaudoin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2013, 11:25
Default Transforming results to OpenFOAM format
  #1
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 16
astein is on a distinguished road
Dear Foamers,

do you know any option to transform results (e.g. from CFX, CGNS, Tecplot) to the OpenFOAM format?
I'd like to postprocess some results with OpenFOAM tools, however I could not find a way to transform the results.

Running cgnsToFoam converts the mesh, but the not the results themselvers.

Any help is welcome, thanks a lot in advance!
astein is offline   Reply With Quote

Old   May 2, 2013, 11:37
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings astein,

Since that's rarely used, there are very few ways to convert results from other applications to OpenFOAM.

The only one I know about is fluentDataToFoam and it's part of Extend's variant OpenFOAM 1.6-ext: http://www.cfd-online.com/Forums/ope...of2-1-1-a.html

And don't forget that you already need to have the mesh ready on the OpenFOAM case, otherwise there is no mesh to place the results inside it...

And the big question is: if you have Tecplot, why do you want to use OpenFOAM for post-processing data?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 2, 2013, 12:13
Default
  #3
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 16
astein is on a distinguished road
Thanks for your fast answerand the hint to fluentDataToFoam!
With "postprocessing", I meant stuff like doing further compuations on the mesh based on given results. I have those methods available in OpenFOAM, but would like to run them on CFX results.

Regarding fluentDataToFoam, I just gave it a try: I imported the .res file in Fluent and saved as a .cas - is that correct? (I tried both, binary and ASCII)

starting fluentDataToFoam in a correct Foam case with
"fluentDataToFoam testcase2.cas" for the ASCII-dat,
starts working, but stops with:
#################################
--> 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 39.

FOAM exiting
#################################

Any hints for this problem or other ideas to transform the results?
astein is offline   Reply With Quote

Old   May 2, 2013, 12:25
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
I guess you didn't read carefully that whole thread...
Check this post, which is referenced on the first thread I had mentioned: http://www.cfd-online.com/Forums/ope...tml#post412947 post #4
wyldckat is offline   Reply With Quote

Old   May 2, 2013, 12:40
Default
  #5
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 16
astein is on a distinguished road
Thanks again for your fast reply!

I'm trying to use the utility in a working 1.6-ext, having fluentDataToFoam compiled correctly - therefore I wouldn't expect any problems on this side.

I guess, my major problem is to convert the given results from CFX->fluent. I don't really know the fluent files, by I am not sure my .cas-file contains the results at all.
Do you know a procedure to obtain a fluent result file from a .res?

Regards!
astein is offline   Reply With Quote

Old   May 2, 2013, 14:06
Default
  #6
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
> Running cgnsToFoam converts the mesh, but the not the results themselvers.

Nope.

cgnsToFoam will convert the mesh AND the solution fields. This is why we wrote this utility in the first place...

cgnsToFoam -help

Martin

Quote:
Originally Posted by astein View Post
Dear Foamers,

do you know any option to transform results (e.g. from CFX, CGNS, Tecplot) to the OpenFOAM format?
I'd like to postprocess some results with OpenFOAM tools, however I could not find a way to transform the results.

Running cgnsToFoam converts the mesh, but the not the results themselvers.

Any help is welcome, thanks a lot in advance!
wyldckat and astein like this.
mbeaudoin is offline   Reply With Quote

Old   May 3, 2013, 04:54
Default
  #7
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 16
astein is on a distinguished road
Martin - thanks for that small but important hint :-)

The tool however ignores some of the (scalar) quantities I'd like to take over, because it doesn't know them. I couldn't find an option to convert the quantites anyway - did I overlook such an option? The alternative is to dig in the source code an add addtional quantites, right? Or do you even have a special version for this issue?

Regards & thanks a lot!
astein is offline   Reply With Quote

Old   May 3, 2013, 13:25
Default
  #8
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
> The tool however ignores some of the (scalar) quantities I'd like to take over, because it doesn't know them

The tool has no "knowledge" of specific fields. No quantity (scalar) names are hardcoded either.

cgnsToFoam just scans for solutions stored in the CGNS file, and convert them to OpenFOAM.

Just make sure your CGNS solutions are stored at the nodes (vertex) of the mesh, and not at the face centers or cell centers. You might have to tweak the configuration of your CGNS exporter for that.

Martin

Quote:
Originally Posted by astein View Post
Martin - thanks for that small but important hint :-)

The tool however ignores some of the (scalar) quantities I'd like to take over, because it doesn't know them. I couldn't find an option to convert the quantites anyway - did I overlook such an option? The alternative is to dig in the source code an add addtional quantites, right? Or do you even have a special version for this issue?

Regards & thanks a lot!
randolph likes this.
mbeaudoin is offline   Reply With Quote

Reply

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
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 10:33
[Technical] File format for import meshes in OpenFoam t42 OpenFOAM Meshing & Mesh Conversion 5 August 1, 2007 09:45
Transforming results in rotating reference frame Mark Render Siemens 0 November 27, 2002 05:49


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