|
[Sponsors] |
How to look at the coefficients from fvMatrix |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 10, 2008, 12:23 |
Hi All,
I'm trying to look at
|
#1 |
New Member
Marco Schneider
Join Date: Mar 2009
Posts: 2
Rep Power: 0 |
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 |
|
September 10, 2008, 13:52 |
From the fvMatrix.H file, it l
|
#2 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
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; |
|
September 11, 2008, 04:58 |
Hi Sandeep,
it worked. Grea
|
#3 |
New Member
Marco Schneider
Join Date: Mar 2009
Posts: 2
Rep Power: 0 |
Hi Sandeep,
it worked. Great! Thanks for your help. Best regards, Marco |
|
|
|
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 |