LAPACK in openFOAM
Hi everyone
does anyone know how to use lapack++ and BLAS libraries in openfoam? |
Yes.
It can be as simple (in the case of uBLAS) as including the relevant header files in your source code and compiling. |
Quote:
as I know,LAPACK needs BLAS and both of them are compiled seperately and make their own libraries.and i dont know how to use these libraries. |
It is as simple als you have to compile the LaPack++ library on your Workstation and than include the headerfiles like
Code:
#include "lafnames.h" greets Jim |
Hi,
Sorry, my question might be stupid, but why do you want to use Lapack? (LAPACK — Linear Algebra PACKage), is it because the funtion you need OpenFOAM currently does not have it, or is it not as efficient as Lapack is? Thanks |
Quote:
Greets Jim |
Quote:
I forgot about Lapack and used "NumericalRecipies in C++" algorithms for my work |
There is an implementation of SVD in OF, so you can save yourself the trouble with that one at least.
|
Quote:
Yeah I saw SVD in OF2.0 |
Oh, I see.
Have you compared the code, Numerical Receipt good or Lapack++'s good? Or they are same for your case? |
Im looking for solving the eigenvalue and eigenvector, I am not sure OF has it or not? Anyone in the know?
|
If anyone is still having trouble using LAPACK functions in OpenFOAM, I have put together a quick example application that demonstrates how to do it. I sure don't understand all of the intricacies, but it works! Send me a message with your e-mail address and I'll be sure to get it off to you.
|
Quote:
|
All times are GMT -4. The time now is 07:10. |