CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Using Matrix calulations (

Jane L March 26, 2013 04: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!


fumiya March 26, 2013 08:40

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

Hope this helps,

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