|
[Sponsors] |
August 6, 2013, 08:25 |
Dumping matrices from OpenFOAM
|
#1 |
New Member
Join Date: Feb 2013
Posts: 6
Rep Power: 13 |
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. thanks, Kawechel |
|
August 8, 2013, 09:49 |
|
#2 |
New Member
Join Date: Feb 2013
Posts: 6
Rep Power: 13 |
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 |
|
February 1, 2014, 12:52 |
|
#3 |
Member
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 69
Blog Entries: 1
Rep Power: 21 |
Hello,
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. Regards, Evgeniy Avdeev. |
|
March 7, 2014, 23:52 |
|
#4 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24 |
Hi, you can do it at debug time using gdbOF.
Regards
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D. 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. http://www.cimec.org.ar |
|
Tags |
matrix, solver |
|
|
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 |