|
[Sponsors] |
April 20, 2011, 14:40 |
icoBlockedCellFoam
|
#1 |
Senior Member
|
Here you can find an example how to manipulate matrices in OpenFOAM.
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at |
|
April 21, 2011, 04:53 |
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Hi,
isn't this similar to what setValues can do? http://foam.sourceforge.net/docs/cpp...rce.php#l00386 Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
April 21, 2011, 05:00 |
|
#3 |
Senior Member
|
At this point it is the same, but will have further extension. Thank you for comment)
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at |
|
April 21, 2011, 05:51 |
|
#4 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Interesting. I have been hacking on that a bit myself in the past, since setValues does not take care of .A(), for some unknown reason :-)
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
May 1, 2011, 18:53 |
|
#5 |
New Member
lazio
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
Thanks Dr. Alexander for your useful program, it helped me understand the method of blocking cells from the solver. I am eagerly awaiting the extension! Perhaps multiple region based blocking...
Alberto, could you please elaborate on "does not take care of .A()"? I am currently using setValues on internal velocity fields and would like to know of these implications I was under the impression that setValues does work on the coefficient matrix A, for the cells under question being set to the identity matrix. |
|
May 1, 2011, 19:23 |
|
#6 | |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
||
May 2, 2011, 05:09 |
|
#7 | |
New Member
lazio
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
Quote:
|
||
Tags |
matrix operations |
|
|