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

matrix creation and accessing (writing/reading) of different matrixelements

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2014, 09:12
Default matrix creation and accessing (writing/reading) of different matrixelements
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
hi,

I have a sourceterm consisting of matrices and matrixoperations beetween them.

Therefore I have searched about what OpenFOAM is capable of regarding matrices and found:

http://foam.sourceforge.net/docs/cpp...9.html#details

http://openfoamwiki.net/index.php/Op...es_in_OpenFOAM

http://openfoamwiki.net/index.php/Op...x_coefficients

My questions are:

1. Does OpenFOAM provide all the necessary functions for matrix-operations (+,-,*,:, matrix transpose...)?

2. Can someone please give me a brief example how to create a desired matrix and access the different elements for writing and reading (returning)?

greetings
maybee
maybee 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



All times are GMT -4. The time now is 04:23.