CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to obtain the inverse of a SquareMatrix? (https://www.cfd-online.com/Forums/openfoam-programming-development/242920-how-obtain-inverse-squarematrix.html)

buaad635 May 19, 2022 05:09

How to obtain the inverse of a SquareMatrix?
 
Dear fomers,

I need to solve a linear equation in a codedFixedValue boundary, Ax=b, and the matrix A is a 19×19 SquareMatrix, and b is defined as a 19×1 RectangularMatrix. So I want to obtain the solution of x through x=inv(A) & b. However, i found no inv() function for SquareMatrix.

Is anyone can help?

Thanks a lot.

HPE May 19, 2022 16:51

https://www.openfoam.com/documentati...db3c7ea8b165b9


All times are GMT -4. The time now is 10:39.