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

How to look at the coefficients from fvMatrix

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 10, 2008, 11: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, 12:52
Default From the fvMatrix.H file, it l
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 368
Rep Power: 14
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, 03: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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 14:55.