|
[Sponsors] |
Linear Algebra Package for general sparse matrices |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17 ![]() |
I am programming a particle based method for flow problems. It uses linked list data structure. It solves a poisson equation and since the particles can have arbitrary positions, the matrix need not be banded. So far I have been using BiCGSTAB which I programmed myself. Since the data structure is linked list, I find my code inefficient. I am considering temporarily writing to arrays to solve the poisson equations and also use a Linear Algebra package. I would like to know what Linear Algebra package may be apt. I searched through LAPACK and similar websites and they mention that they exclude general sparse matrices in their features. Considering this, please suggest me some package that would be easy to use and doesn't have restrictions. I program in C and would like to know about packages that are in C.
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 17 ![]() |
I use PETSc in my code and I have been happy with it. It has many solver options and is pretty straightforward to use.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Join Date: Jan 2013
Posts: 3
Rep Power: 13 ![]() |
I have used both, Petsc and Trilinos, petsc is easier to install. On the other hand I know trilinos has some features to handle dense matrices.
With respect to petsc, here there is a thread about it, in some other website http://scicomp.stackexchange.com/que...dense-matrices Anyway, how did you get a dense matrix if you are solving a poisson equation? I recommend you to first try with petsc and if it is not good enough, make an extra effort and install trilinos. regards, I. |
|
![]() |
![]() |
![]() |
Tags |
bicgstab, lapack, linear algebra, poisson equation, solver |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A turbulent test case for rhoCentralFoam | immortality | OpenFOAM Running, Solving & CFD | 13 | April 20, 2014 06:32 |
Extend Project 1.6-ext Binary Release for Mac OS X | hjasak | OpenFOAM Announcements from Other Sources | 26 | November 5, 2013 16:50 |
Problem? with Installation of OpenFOAM 2.1.0 on to Ubuntu 10.4.4 VirtualBox | Stubby | OpenFOAM Installation | 8 | March 5, 2012 15:12 |
solution diverges when linear upwind interpolation scheme is used | subash | OpenFOAM | 0 | May 29, 2010 01:23 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |