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

Transforming results to OpenFOAM format

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

Like Tree2Likes
  • 2 Post By mbeaudoin

Reply
 
LinkBack Thread Tools Display Modes
Old   May 2, 2013, 10:25
Default Transforming results to OpenFOAM format
  #1
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 7
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, 10:37
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: can not complie fluentDataToFoam in OF2.1.1

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, 11:13
Default
  #3
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 7
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, 11:25
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
I guess you didn't read carefully that whole thread...
Check this post, which is referenced on the first thread I had mentioned: Problem with fluentDataToFoam (from OF 1.6 ex) in OF 2.1.1 post #4
wyldckat is offline   Reply With Quote

Old   May 2, 2013, 11:40
Default
  #5
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 7
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, 13:06
Default
  #6
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 330
Rep Power: 13
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, 03:54
Default
  #7
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 7
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, 12:25
Default
  #8
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 330
Rep Power: 13
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!
mbeaudoin is offline   Reply With Quote

Reply

Thread Tools
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 On
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 06:55
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 09:33
File format for import meshes in OpenFoam t42 OpenFOAM Meshing Format & General Technical 5 August 1, 2007 08:45
Transforming results in rotating reference frame Mark Render CD-adapco 0 November 27, 2002 05:49


All times are GMT -4. The time now is 22:54.