CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Dumping matrices from OpenFOAM

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

Like Tree4Likes
  • 1 Post By kawechel
  • 3 Post By j-avdeev

LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2013, 08:25
Default Dumping matrices from OpenFOAM
New Member
Join Date: Feb 2013
Posts: 6
Rep Power: 11
kawechel is on a distinguished road
Hello -

I would like to dump matrices from an OpenFOAM solver run (in something like Matrix Market, Harwell-Boeing or COO formats), so that I can use them as input for a new, stand-alone solver. The idea is to compare the performance of this new solver directly with those already available in OpenFOAM (and on a problem that I am currently using OpenFOAM for), without the need to integrate it.

Does anyone know how I can do this? Some other CFD applications that I have used in the past have options such as "dump_matrix" or similar, but I have not found anything similar for OpenFOAM.

Any help with this would be greatly appreciated.

Elius likes this.
kawechel is offline   Reply With Quote

Old   August 8, 2013, 09:49
New Member
Join Date: Feb 2013
Posts: 6
Rep Power: 11
kawechel is on a distinguished road
In response to my own post:

after a lot of trawling through forum posts, I found a way to dump matrices using gdbOF. I have tried the approach with the simple scalarTransportFoam example, and I can indeed export the matrix in Octave/Matlab readable format.

kawechel is offline   Reply With Quote

Old   February 1, 2014, 12:52
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 69
Blog Entries: 1
Rep Power: 20
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev

Iliya Marchevsky made lab work - simple example (on basis of icoFoam solver source code), which shows way how you can save matrices from OF to text file.
Probably, this example useless in current state and for using you have to modify it - for example, now it saves matrices as dense and for mesh 1000x1000 elements you can run out of memory.

Hope will helpful for someone.

Evgeniy Avdeev.
Attached Files
File Type: zip (16.4 KB, 203 views)
wyldckat, sharonyue and Alee reza like this.
j-avdeev is offline   Reply With Quote

Old   March 7, 2014, 23:52
Senior Member
santiagomarquezd's Avatar
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 22
santiagomarquezd will become famous soon enough
Hi, you can do it at debug time using gdbOF.

Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
santiagomarquezd is offline   Reply With Quote


matrix, solver

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
OpenFOAM - Validation of Results Ahmed OpenFOAM Running, Solving & CFD 10 May 13, 2018 19:28
ESI-OpenCFD Releases OpenFOAM v2.2.0 opencfd OpenFOAM Announcements from ESI-OpenCFD 13 March 30, 2013 17:52
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x wyldckat OpenFOAM Bugs 18 October 21, 2010 06:51
openfoam 1.5-dev on opensuse10.3-64bit anon_c OpenFOAM 2 December 4, 2009 01:33
Issues with OpenFoam sanjibdsharma OpenFOAM 0 August 14, 2009 09:41

All times are GMT -4. The time now is 16:31.