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/)
-   -   How to extract Differential Equations Matrix Coeff (https://www.cfd-online.com/Forums/openfoam-programming-development/104108-how-extract-differential-equations-matrix-coeff.html)

srodrb July 3, 2012 08:13

How to extract Differential Equations Matrix Coeff
 
Hello Foamers!

I'm pretty new in OpenFoam world, but not in CFD. I've spent 3-4 months working with OP so I have the generals although my field are mathematics, not aerodynamics.

I'm working on differential equations systems acceleration using hybrid methods (CPU-GPU) for my thesis.

My question is:

How can I get an output of OP with the coefficients matrix (the matrix which OpenFoam solves later)?

Thank you.

PD: - I will publish the results and the source under GNU license.
- Sorry about my english

stevenvanharen July 6, 2012 08:46

Did you look here?

src » finiteVolume » fvMatrices » fvMatrix

There are a lot of options for output I think.

srodrb July 31, 2012 07:22

Thanks for your help.

I'm still trying to find the way. This link helped me, so perhaps it could be useful for someone. :D

http://188.40.164.115/wordpress/?p=39#comment-44

santiagomarquezd August 1, 2012 16:27

Samuel, if you want to extract these values at debugging time and many other debug hacks you have gdbOF

http://openfoamwiki.net/index.php/Contrib_gdbOF

Regards

srodrb October 30, 2012 04:14

Coeff. Matrix. It's correct?
 
Hello again!

I've been working with other stuff for some time so I've come back with OpenFOAM.

I've write out the matrix coefficients in a file for the cavity (2D) tutorial solved with icoFoam.

http://farm9.staticflickr.com/8191/8...4486b119af.jpg

Note that coeff. [1][1] is on the left bottom

My question is, it is correct the addressing? Are there additional terms out of diagonals? (Wiki' figure is different from mine but I'm not sure if that would be extendible for 2D cases or only for 3D ones... :confused:)

http://farm9.staticflickr.com/8464/8...260f5fef55.jpg


I'm reading some post of addressing... Thank you in advance.

shizuka August 12, 2022 10:59

I see it's an old post, all the links are not available after 10 years...

is there anyone happen to have some new links to this question? Thank you in advance.

dlahaye August 12, 2022 13:19

This link https://openfoamwiki.net/index.php/Contrib_gdbOF
still works. Let us know how it goes. Good luck.

shizuka August 13, 2022 05:51

Hi dlahaye, you are right, i overlooked this link on #4, thank you!


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