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

Using Matrix calulations

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

Like Tree2Likes
  • 2 Post By fumiya

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2013, 04:49
Default Using Matrix calulations
  #1
New Member
 
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 13
Jane L is on a distinguished road
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!
Jane L is offline   Reply With Quote

Old   March 26, 2013, 08:40
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
fumiya is on a distinguished road
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
randolph and Kummi like this.
fumiya is offline   Reply With Quote

Reply

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
inverse of a matrix or solution of implicit equation romant OpenFOAM Programming & Development 4 August 6, 2013 10:02
more equation in block matrix system yhaomin2007 OpenFOAM 1 September 6, 2012 09:33
Force can not converge colopolo CFX 13 October 4, 2011 23:03
OpenFOAM version 1.6 details lakeat OpenFOAM Running, Solving & CFD 42 August 26, 2009 22:47
Elemtary matrix to CSR global matrix xueying Main CFD Forum 2 September 24, 2002 10:44


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