CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   How to look at the coefficients from fvMatrix (

marco7 September 10, 2008 11:23

Hi All, I'm trying to look at
Hi All,
I'm trying to look at the coefficients from fvMatrix. Is there an easy way to print or look at them.
So far I figured out that fvMatrix is derived from lduMatrix and the adressing is in fvMesh but I found no method to ouput the coefficients.

For a GeometricField I can construct a object with an IOobject which is really nice. Can I do something similar for fvMatrix?
Thanks in advance!

deepsterblue September 10, 2008 12:52

From the fvMatrix.H file, it l
From the fvMatrix.H file, it looks like the Ostream operator is overloaded to handle output:

Ostream& operator<<(ostream&>& fvm)
os <<>(fvm) << nl
<< fvm.dimensions_ << nl
<< fvm.source_ << nl
<< fvm.internalCoeffs_ << nl
<< fvm.boundaryCoeffs_ << endl;

os.check("Ostream& operator<<(ostream&,>&");

return os;

Try using Info << yourFvMatrix << endl;

marco7 September 11, 2008 03:58

Hi Sandeep, it worked. Grea
Hi Sandeep,

it worked. Great!

Thanks for your help.

Best regards,

All times are GMT -4. The time now is 09:28.