CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

internalField of a volField & geoMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By toboto
  • 2 Post By olesen
  • 1 Post By Michael@UW

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 10, 2016, 13:25
Default internalField of a volField & geoMesh
  #1
New Member
 
toboto
Join Date: Jun 2016
Posts: 20
Rep Power: 9
toboto is on a distinguished road
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 }
Also I made a small test to get some attribute of those two fields as follows:
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;
and the output was
Code:
58539
58539
N4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEEE
N4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEEE
I.e. the same type and the same size. Also if I print them I get the same values where U.internalField() also contain the boundary information.

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.
toboto is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 20:52.