CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to store a p matrix in Matrix Market (.mtx) format?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2020, 11:17
Default How to store a p matrix in Matrix Market (.mtx) format?
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
Hello,


I need a pressure "p" matrix of an external flow case with 1-2 million cells in Matrix Market (.mtx) format for solver development.


Is there a tool that allows to store a pressure matrix of a particular timestep in the Matrix Market (.mtx) format?


Klaus
klausb is offline   Reply With Quote

Old   November 19, 2020, 16:53
Default
  #2
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16
Santiago is on a distinguished road
Quote:
Originally Posted by klausb View Post
Hello,


I need a pressure "p" matrix of an external flow case with 1-2 million cells in Matrix Market (.mtx) format for solver development.


Is there a tool that allows to store a pressure matrix of a particular timestep in the Matrix Market (.mtx) format?


Klaus
no idea what matrix market is, but you can convert the csr matrix produced by fvMatrix<> to the simpleMatrix<> class. That class follows the classical indicial i,j form
Santiago is offline   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
save to variable filename inside loop FrankR Fluent UDF and Scheme Programming 5 January 30, 2019 12:16
[Discretizer] Installing Discretizer umassche OpenFOAM Community Contributions 26 January 25, 2017 06:33
[General] Paraview data format conversion from vtk to parallel prog data format. odho ParaView 0 September 20, 2016 08:01
extracting velocity field from 0/U file into matrix format eaglemckenna OpenFOAM Post-Processing 3 November 5, 2014 12:29
Parallel algorithm to convert dense to sparse (CRS) matrix format Italo Main CFD Forum 0 December 19, 2011 04:01


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