|
[Sponsors] |
October 16, 2014, 09:13 |
const word& name
|
#1 |
New Member
Andrea
Join Date: Sep 2014
Posts: 17
Rep Power: 12 |
Hi Foamers,
i would like to know what is the meaning of "const word& name". For example, it is used in fvmDiv.H, at the beginning of the file: namespace fvm { template<class Type> tmp<fvMatrix<Type> > div ( const surfaceScalarField&, const GeometricField<Type, fvPatchField, volMesh>&, const word& name ); Does anybody could help me? Regards, Andrea |
|
October 16, 2014, 10:08 |
|
#2 |
Senior Member
|
Hi,
well, if you take a look at fvmDiv.C, you'll see the usage of this name: 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); } Code:
template<class Type> tmp<fvMatrix<Type> > div ( const surfaceScalarField& flux, const GeometricField<Type, fvPatchField, volMesh>& vf ) { return fvm::div(flux, vf, "div("+flux.name()+','+vf.name()+')'); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 05:28 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 02:47 |
Wall bounded values and streamlines | Ruli | OpenFOAM Post-Processing | 5 | February 2, 2014 17:45 |
[snappyHexMesh] Error in SnappyHexMesh | gooya_kabir | OpenFOAM Meshing & Mesh Conversion | 2 | October 23, 2013 05:41 |
LiftDrag coefficient in LES | fabian_korn | OpenFOAM Post-Processing | 1 | September 22, 2008 03:34 |