|
[Sponsors] |
December 23, 2018, 10:37 |
fvm::div() Function
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 51 |
Hi all,
just a brief question. Analyzing the fvm::div() functions in the inside the fvm namespace, we can see that in the last instance, we have: Code:
template< class Type> tmp< fvMatrix< Type>> div ( const surfaceScalarField& flux, const GeometricField<Type, fvPatchField, volMesh>& vf, const word& name ) { return fv::convectionScheme<Type>::New ( vf.mesh(), flux, vf.mesh().divScheme(name) )().fvmDiv(flux, vf); } However, the fv.mesh().divScheme(name) should return an ITstream. The New() function of the convectionScheme class however takes an Istream. The problem I have right now, I cannot find the conversion of the ITstream and Istream anywhere.
Thanks in advance.
__________________
Keep foaming, Tobias Holzmann |
|
December 23, 2018, 12:48 |
|
#2 |
Senior Member
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 21 |
Hi
Simple. ITstream is derived from Istream that's why you don't need any explicit conversion function, conversion is done implicitly. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] RefineMesh Error and Foam warning | jiahui_93 | OpenFOAM Meshing & Mesh Conversion | 4 | March 3, 2018 11:32 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 09:56 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 06:42 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 06:59 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |