CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   How to extract Differential Equations Matrix Coeff (

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

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


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.

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:)

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

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