CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to look at the coefficients from fvMatrix (https://www.cfd-online.com/Forums/openfoam-solving/58565-how-look-coefficients-fvmatrix.html)

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!
Marco

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:

template<class>
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,
Marco


All times are GMT -4. The time now is 17:50.