CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to look at the coefficients from fvMatrix

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2008, 12:23
Default Hi All, I'm trying to look at
  #1
New Member
 
Marco Schneider
Join Date: Mar 2009
Posts: 2
Rep Power: 0
marco7 is on a distinguished road
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
marco7 is offline   Reply With Quote

Old   September 10, 2008, 13:52
Default From the fvMatrix.H file, it l
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
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;
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   September 11, 2008, 04:58
Default Hi Sandeep, it worked. Grea
  #3
New Member
 
Marco Schneider
Join Date: Mar 2009
Posts: 2
Rep Power: 0
marco7 is on a distinguished road
Hi Sandeep,

it worked. Great!

Thanks for your help.

Best regards,
Marco
marco7 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert from GeometricField to fvMatrix waynezw0618 OpenFOAM Running, Solving & CFD 2 January 8, 2021 17:35
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 15:38
Question about the fvmatrix and Laplacian operator liuhuafei OpenFOAM Running, Solving & CFD 6 October 3, 2009 07:58
Assembling a fvMatrix for a preconditioner srinath OpenFOAM Running, Solving & CFD 0 July 30, 2008 08:23
FvMatrix A D whats the difference hjasak OpenFOAM Running, Solving & CFD 0 June 20, 2007 07:12


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