|
[Sponsors] |
October 2, 2021, 12:30 |
EigenValues-EigenVector for a SquareMatrix
|
#1 |
New Member
Stefano Riva
Join Date: Dec 2020
Location: Milano
Posts: 4
Rep Power: 5 |
Good morning everyone,
I'm pretty new to OpenFOAM and I am writing some code lines in an application. At some point a matrix is generated as a scalarSquareMatrix and I have the necessity to find its eigenvalues and eigenvectors. Is there a way to do this? (I am using the OpenFOAM6 version). Thanks in advance |
|
October 5, 2021, 13:29 |
|
#2 |
Senior Member
|
This is not trivial as OpenFoam does not implement eigenvalues / eigenvector decompositions for its sparse matrices.
In a first approach it might be (?) easier to dump OpenFoam matrices to file, read them into Matlab, Python, Julia or whatever you prefer, and use tools that these packages provide. Some background info is here https://www.linkedin.com/pulse/openf...omenico-lahaye and the references cited. Good luck, Domenico. |
|
October 6, 2021, 08:28 |
|
#3 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15 |
In the com version there are classes to compute eigenvalues and vectors https://www.openfoam.com/documentati...x.html#details
Maybe it is of help |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
eigenValues of volTensorField | xuegy | OpenFOAM Programming & Development | 8 | February 26, 2021 16:46 |
Floating Point Exception with complex eigenvalues | gaolbert | OpenFOAM Programming & Development | 0 | July 20, 2017 05:37 |
complex eigenvalues detected for tensor | thegauravonline | OpenFOAM Pre-Processing | 3 | January 14, 2017 05:18 |
Problem with complex eigenvalues detected for symmTensor | tbao | OpenFOAM | 3 | November 3, 2016 09:24 |
magnitudes of eigenvalues VS stiffness | atit | Main CFD Forum | 1 | July 28, 2000 12:14 |