CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

EigenValues-EigenVector for a SquareMatrix

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By mAlletto

LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2021, 13:30
Default EigenValues-EigenVector for a SquareMatrix
New Member
Ste07's Avatar
Stefano Riva
Join Date: Dec 2020
Location: Milano
Posts: 4
Rep Power: 3
Ste07 is on a distinguished road
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
Ste07 is offline   Reply With Quote

Old   October 5, 2021, 14:29
Senior Member
Domenico Lahaye
Join Date: Dec 2013
Posts: 365
Blog Entries: 1
Rep Power: 11
dlahaye is on a distinguished road
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 and the references cited.

Good luck, Domenico.
dlahaye is offline   Reply With Quote

Old   October 6, 2021, 09:28
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 543
Rep Power: 10
mAlletto is on a distinguished road
In the com version there are classes to compute eigenvalues and vectors

Maybe it is of help
dlahaye likes this.
mAlletto is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
eigenValues of volTensorField xuegy OpenFOAM Programming & Development 8 February 26, 2021 17:46
Floating Point Exception with complex eigenvalues gaolbert OpenFOAM Programming & Development 0 July 20, 2017 06:37
complex eigenvalues detected for tensor thegauravonline OpenFOAM Pre-Processing 3 January 14, 2017 06:18
Problem with complex eigenvalues detected for symmTensor tbao OpenFOAM 3 November 3, 2016 10:24
magnitudes of eigenvalues VS stiffness atit Main CFD Forum 1 July 28, 2000 13:14

All times are GMT -4. The time now is 02:35.