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

EigenValues-EigenVector for a SquareMatrix

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mAlletto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2021, 12:30
Default EigenValues-EigenVector for a SquareMatrix
  #1
New Member
 
Ste07's Avatar
 
Stefano Riva
Join Date: Dec 2020
Location: Milano
Posts: 4
Rep Power: 5
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, 13:29
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
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 https://www.linkedin.com/pulse/openf...omenico-lahaye and the references cited.

Good luck, Domenico.
dlahaye is offline   Reply With Quote

Old   October 6, 2021, 08:28
Default
  #3
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
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
dlahaye likes this.
mAlletto 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
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


All times are GMT -4. The time now is 20:24.