|
[Sponsors] |
November 10, 2016, 13:25 |
internalField of a volField & geoMesh
|
#1 |
New Member
toboto
Join Date: Jun 2016
Posts: 20
Rep Power: 9 |
Dear All,
I have some questions and I would appreciate if someone help me. Q1: I am a little bit confused about the difference between volField and it's associated internalField. I can't see any difference although many claims that there is (I think that should be the case). In the GeometricField.H we can find the definition of the interalField as Code:
39 Foam::GeometricField<Type, PatchField, GeoMesh>::Internal& 40 Foam::GeometricField<Type, PatchField, GeoMesh>:: 41 internalField() const 42 { 43 return *this; 44 } Code:
volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info << U.size() << endl; Info <<U.internalField().size() << endl; Info << typeid(U).name() << endl; Info << typeid(U.internalField()).name() << endl; Code:
58539 58539 N4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEEE N4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEEE So may someone elaborate a little bit on the difference between them. Q2: where does GeoMesh class reside in the mesh heirarchy in OpenFoam or simply what is the relation between GeoMesh and fvMesh. I tried to find that by looking into the cpp docs but I caouldn't figure out. Q3: What is the difference/relation between GeometricField and DimensionedField? Best regards. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with if statement | CHARLES | OpenFOAM Programming & Development | 17 | August 22, 2021 03:14 |
Elementwise multiplication operator | johndeas | OpenFOAM Running, Solving & CFD | 3 | March 9, 2019 13:03 |
adding compressible option to ptot | immortality | OpenFOAM Programming & Development | 13 | June 15, 2015 15:00 |
Sampling rhoFlux in electrostaticFoam | sverdoold | OpenFOAM Post-Processing | 14 | November 16, 2010 16:19 |
A stupid question | luckyluke | OpenFOAM Running, Solving & CFD | 14 | August 13, 2007 04:25 |