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/)
-   -   Using Matrix calulations (https://www.cfd-online.com/Forums/openfoam-programming-development/115206-using-matrix-calulations.html)

Jane L March 26, 2013 03:49

Using Matrix calulations
 
Hi Foamers!

I have a short and very simple question but I didn't find out how to solve it:
For calculations with a moving mesh I would like to transform some vectors in the file gen6DoF with rotation matrices.

What is the syntax for using matrices in that file? I think I need to use #include "Matrix.H" but I don't know how to define a simple 3x3 matrix.

Would be happy if someone can give me a hint!

Thanks!

fumiya March 26, 2013 07:40

You might want to take a look at the following files:

https://github.com/OpenFOAM/OpenFOAM...simpleMatrix.C
https://github.com/OpenFOAM/OpenFOAM.../Test-Matrix.C

Hope this helps,
Fumiya


All times are GMT -4. The time now is 16:22.