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 07: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 07:46

Did you look here?

src » finiteVolume » fvMatrices » fvMatrix

There are a lot of options for output I think.

 srodrb July 31, 2012 06: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 15: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.

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