CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Mesh Utilities (https://www.cfd-online.com/Forums/openfoam-meshing-utilities/)
-   -   compiling gmshFoam Error en make (https://www.cfd-online.com/Forums/openfoam-meshing-utilities/61536-compiling-gmshfoam-error-en-make.html)

blo August 27, 2008 14:01

Hi foamers, I'm trying to c
 
Hi foamers,

I'm trying to compiile gmshFoam and i get an error on ./Allwmake.

I began like this :

$ cd $WM_PROJECT_USER_DIR/applications/utilities
$ tar -zxf gmshFoam-YYYYMMDD.tar.gz
$ ln -s gmshFoam-YYYYMMDD gmshFoam <<--- Necessary for gmshFoam to be recognized by FoamX
$ cd gmshFoam


then ./Allwmake and I get this :



... (several lines)
/home/blo/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/polyMesh.H:254: note: candidates are: Foam::polyMesh::polyMesh(const Foam::IOobject&, const Foam::pointField&, const Foam::cellShapeList&, const Foam::faceListList&, const Foam::wordList&, const Foam::wordList&, const Foam::word&, const Foam::word&, const Foam::wordList&, bool)
/home/blo/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/polyMesh.H:239: note: Foam::polyMesh::polyMesh(const Foam::IOobject&, const Foam::pointField&, const Foam::faceList&, const Foam::cellList&, bool)
/home/blo/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/polyMesh.H:227: note: Foam::polyMesh::polyMesh(const Foam::IOobject&, const Foam::pointField&, const Foam::faceList&, const Foam::labelList&, const Foam::labelList&, bool)
/home/blo/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/polyMesh.H:215: note: Foam::polyMesh::polyMesh(const Foam::IOobject&)
/home/blo/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/polyMesh.H:162: note: Foam::polyMesh::polyMesh(const Foam::polyMesh&)
polyMeshConversion/polyMeshConversion.C: In member function 'Foam::polyMeshConversion* Foam::polyMeshConversion::renumberedMesh(Foam::lab el) const':
polyMeshConversion/polyMeshConversion.C:231: error: 'allFaces' was not declared in this scope
polyMeshConversion/polyMeshConversion.C:264: error: 'allPoints' was not declared in this scope
make: *** [Make/linux64GccDPOpt/polyMeshConversion.o] Error 1


Any idea ?

7islands August 28, 2008 08:20

Hi blo blo, Sorry but it'll t
 
Hi blo blo,
Sorry but it'll take a while until I can have a look into the issue. Meanwhile you can try the genuine gmshToFoam.

Takuya

blo August 29, 2008 08:01

Hi, thanks for the answer. Wha
 
Hi, thanks for the answer. What do you mean by 'genuine gmshToFoam' ?

Best regards.

7islands August 29, 2008 11:01

Type "gmshToFoam -help" on you
 
Type "gmshToFoam -help" on your console, or have a look at the user guide.

T

lucacolla April 5, 2009 05:55

Hello everyone,

I've got exactly the same 'Error 1' as blo listed.
I am used to the genuine gmshToFoam, but with it I'm not able to set more than one patch without getting my hands into the text file.
I think that gmsh2ToFoam should have solved this problem, right?

Thank you so very much for your support, guys.

Luca

7islands April 5, 2009 07:54

Hi Luca,
Did you try the SVN-version? If not can you get the version with
svn co https://of-interfaces.svn.sourceforg...trunk/gmshFoamand see if it works?

7islands April 5, 2009 07:58

Uh the board truncates the address. Trying again:
Code:

svn co https://of-interfaces.svn.sourceforge.net/svnroot/of-interfaces/trunk/gmshFoam

shangzung October 5, 2009 11:37

Hello!

I am getting this problem, too. Does someone know why this occurs?

Greets

7islands October 6, 2009 01:26

shangzung, which problem are you referring to?

T

shangzung October 6, 2009 10:12

Hi! I meant the:

"polyMeshConversion/polyMeshConversion.C:231: error: 'allFaces' was not declared in this scope
polyMeshConversion/polyMeshConversion.C:264: error: 'allPoints' was not declared in this scope
make: *** [Make/linux64GccDPOpt/polyMeshConversion.o] Error 1
"

By the way, I am trying to install the gmsh2ToFoam into my USER OpenFoam directory (where originally only the folder "tutorials" exist and I had to create the folders "application/utilities..." Does this play a role?

7islands October 6, 2009 11:27

So, my comment on another thread was
Quote:

Originally Posted by 7islands (Post 231628)
Yes I always have successes in installing gmsh2ToFoam on both of OF 1.6 and 1.6.x. I asked on another thread which problem you are referring to, because I can't think of a reason that you are having the problem as long as you checked out the sources from the SVN repository I already mentioned on another thread. Which version of gmshFoam are you trying to compile?

Takuya

shangzung October 8, 2009 05:18

Hello 7islands!

I somehow cannot install SVN (don't have the rights to install apr which seems to be needed for SVN).

Could you upload the actual SVN of gmsh2ToFoam into a tar file?


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