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

Code to read in results on a BlockMeshcreated mesh as structured arrays

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2005, 19:57
Default I'm working on combining some
  #1
brooksmoses
Guest
 
Posts: n/a
I'm working on combining some OpenFOAM flow solutions with some other computational processing that I've already written, and right now am looking at how to get the data from one program to the next.

Essentially, I've created a structured mesh (either polar or cartesian) using BlockMesh, and then performed a flow solution on that mesh using a slight variant of icoFoam.

What I'd now like to do is load this into another program as 3-dimensional arrays of mesh x, y, and z positions of the cell corners, and more 3-dimensional arrays of the variable values (velocity, pressure, etc.) at the cell centers.

I'd really prefer to have these routines in Fortran, since that's what the rest of my code is in, but I'd be willing to work with C++ routines (and write a conversion program that writes out the data to another file that I can read easily in Fortran) if something already exists.

Thus, my question: Does anyone have any bits of code that they could share with me that will do part of this, or something like it? Or any suggestions for things that I should look out for, or good places to start?

I certainly don't have any problem doing this myself if I need to, but I'd much rather not reinvent any wheels I don't need to!

Thanks much!
  Reply With Quote

Reply


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
Mesh data to be read by Fortan code seckin Main CFD Forum 8 December 7, 2022 00:58
Question about Converting Vector Arrays to Regular Arrays xiao OpenFOAM Running, Solving & CFD 0 September 3, 2008 22:30
which code can read CFX-turbogrid mesh files h6h6 CFX 0 October 16, 2003 03:19
How to Read Structured Grid in Fluent5? caihu Main CFD Forum 1 October 19, 1999 23:26
3D DNS code in C with large arrays. S.Sri Govind Main CFD Forum 3 July 23, 1999 13:09


All times are GMT -4. The time now is 17:56.