|
[Sponsors] |
December 16, 2014, 13:21 |
OF templates < >
|
#1 |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 13 |
Dear Foamers,
I try to decipher following code snippet, representative for advanced usage of templating in OF (e.g. fvcGrad.H): Code:
template<class Type> 64 tmp 65 < 66 GeometricField 67 <typename outerProduct<vector, Type>::type, fvPatchField, volMesh> 68 > grad 69 ( 70 const tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >& 71 ); - outerProduct<vector, Type>::type - fvPatchField - volMesh Whereas I have no glue if that is correct or completely wrong. I can't understand outerProduct<vector, Type>::type, especially the double colon irritates me. Could somebody help? Ayla |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] ccm26ToFoam --> checkMesh --> too many errors | kornickel | OpenFOAM Meshing & Mesh Conversion | 0 | August 16, 2013 04:37 |
Fluid travels: Zone 1 --> Zone 2 --> Zone 3. How can I modify diffusivity in each??? | ANT | FLUENT | 1 | August 1, 2012 07:55 |
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? | will.logie | OpenFOAM Programming & Development | 1 | February 16, 2011 20:52 |
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? | will.logie | OpenFOAM | 0 | December 16, 2010 07:08 |
CAD -> gMsh -> enGrid -> OpenFOAM Problem | AlGates | OpenFOAM | 7 | August 6, 2010 12:46 |