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

trouble using meshTools

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2016, 12:25
Default trouble using meshTools
  #1
New Member
 
Join Date: Apr 2011
Posts: 13
Rep Power: 15
D.R. is on a distinguished road
Hello All,
I am trying to find the shared face between two given cells(who are neighbors), and i wanted to use the function getSharedFace() however, it does not compile and i have tried many different iterations. Does anyone know how to declare/use this function?

Foam::label Foam::meshTools::getSharedFace ( const primitiveMesh& mesh, const label cell0I, const label cell1I )
is the function call in meshTools.C

I have written it into the code as,
label faceI = Foam::meshTools::getSharedFace(primMesh(), celli, n_celli);

and this error comes out,
error: ‘Foam::meshTools’ has not been declared,
however i have included src/meshTools into the make directory, and when i try to add it into this file it gives the error for #include "meshTools/meshTools.H",

/usr/local/OpenFOAM-2.1.1/OpenFOAM-2.1.1/src/meshTools/meshTools/meshTools.H:48: error: ‘namespace’ definition is not allowed here

or for #include "meshTools.H"

error: meshTools.H: No such file or directory

however none of it seems to fix the problem, any thoughts?
D.R. is offline   Reply With Quote

Reply

Tags
coding, meshtools.h, openfoam, openfoam 2.1.1


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
Trouble with sampleDict syntax for OpenFOAM 2.3.1 rawdoggity OpenFOAM Post-Processing 1 February 1, 2015 06:24
Trouble with big domain of study, johnnyp FLUENT 3 May 16, 2013 00:19
[ICEM] trouble with mesh quality from ICEM in CFX Solver escher25 ANSYS Meshing & Geometry 0 February 28, 2011 08:38
[GAMBIT] Trouble meshing complex VOF geometry RPJones ANSYS Meshing & Geometry 2 February 14, 2011 19:54
OpenFOAM-1.5-dev compilation: OSspecific trouble gwierink OpenFOAM Installation 1 September 24, 2009 10:35


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