CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [cfMesh] cfMesh-v1.1.1 (https://www.cfd-online.com/Forums/openfoam-community-contributions/160757-cfmesh-v1-1-1-a.html)

tlugaric December 23, 2015 08:57

Hi Ahmad!

Glad to hear you like our cfMesh mesher.
From your log I can see that it is complaining about missing "zlib.h" header file, so the "wmakeLnInclude" command does not do what it is supposed to.
You should install the zlib development package and try again. I don't know which Linux distro you are using, on Ubuntu you would type: "sudo apt-get install zlib1g-dev" for example.

As for the .run file, please tell me the name of the installer file, as well as which linux version you are using, so I can try to reproduce your problem.
If you asked the installer to install cfMesh source, it instals the OpenFOAM source as well, because cfMesh source relies on some parts of OpenFOAM.
After installing cfMesh, did you try to run it from your default terminal, or did you use the shortcuts placed on you deskop? If you try to launch it from your terminal, you need to source the installed cfMesh environment first (source [cfMesh_install_dir]/OpenFOAM-2.3.0/etc/bashrc) before you can use cfMesh.

Let me know if this helps

a_habib December 23, 2015 10:08

Hi Tomislav,
First of all, I'm using ubuntu 12 and I didn't take care to look at my desktop,
I tried the .run version and used the desktop shortcut and it worked.
Then I un-installed it and installed zlib.h as you suggested and then compiled the source version and it is working now.
Thanks a lot, and yes it is a great mesher. its easy and provides us several types of meshes. but I think tha the documentation still a little bit insufficient.
Keep up the good work.
P.S. my name is ahmad :)

tlugaric December 23, 2015 10:55

Hi Ahmad!

I am sorry for mistaking your name, I was reading an older post and got the names confused. I edited the post.

We have some more materials on our website cfmesh.com, and we will be providing some video tutorials in the near future. Feel free to check it out.

crixman June 11, 2016 04:12

Hi,
I installed foam-mesh for OF2.2.2. and foam-extend 3.1 and 3.2 without problems.
I am instead experiencing a problem with OF3.0.x - I got the following error - have to tested the installation for OF3.0.x or are you working now on that?

Code:

g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/triSurface/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/edgeMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude  -fPIC -c utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C -o Make/linux64GccDPInt64Opt/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o
In file included from lnInclude/DynList.H:233:0,
                from lnInclude/VRWGraph.H:42,
                from lnInclude/meshSubset.H:40,
                from lnInclude/polyMeshGenPoints.H:42,
                from lnInclude/polyMeshGenFaces.H:40,
                from lnInclude/polyMeshGenCells.H:40,
                from lnInclude/polyMeshGen.H:39,
                from utilities/meshes/polyMeshGenModifier/polyMeshGenModifier.H:40,
                from utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C:28:
lnInclude/DynListI.H: In instantiation of ‘Foam::DynList<T, staticSize>::DynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16l]’:
lnInclude/helperFunctionsTopologyManipulationI.H:491:34:  required from here
lnInclude/DynListI.H:136:21: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
    setSize(l.size());
                    ^
lnInclude/DynListI.H:138:32: error: subscripted value is neither array nor pointer
        this->operator[](i) = l[i];
                                ^
lnInclude/DynListI.H: In instantiation of ‘Foam::DynList<T, staticSize>::DynList(const ListType&) [with ListType = int; T = Foam::Vector2D<double>; long int staticSize = 6l]’:
lnInclude/helperFunctionsGeometryQueriesI.H:1059:37:  required from here
lnInclude/DynListI.H:136:21: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
    setSize(l.size());
                    ^
lnInclude/DynListI.H:138:32: error: subscripted value is neither array nor pointer
        this->operator[](i) = l[i];
                                ^
make: *** [Make/linux64GccDPInt64Opt/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o] Error 1
make[1]: Entering directory `/home/chris/cfMesh-v1.1.1/executables/cartesian2DMesh'
Making dependency list for source file cartesian2DMesh.C
make[1]: Leaving directory `/home/chris/cfMesh-v1.1.1/executables/cartesian2DMesh'
make[1]: Entering directory `/home/chris/cfMesh-v1.1.1/executables/cartesian2DMesh'
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/triSurface/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/meshTools/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/finiteVolume/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude  -fPIC -c cartesian2DMesh.C -o Make/linux64GccDPInt64Opt/cartesian2DMesh.o
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/triSurface/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/meshTools/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/finiteVolume/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt64Opt/cartesian2DMesh.o -L/home/chris/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt64Opt/lib \
        -lmeshTools -ltriSurface -lfiniteVolume -ledgeMesh -L/home/chris/OpenFOAM/chris-3.0.x/platforms/linux64GccDPInt64Opt/lib -lmeshLibrary -lOpenFOAM -ldl  \
        -lm -o /home/chris/OpenFOAM/chris-3.0.x/platforms/linux64GccDPInt64Opt/bin/cartesian2DMesh
/usr/bin/ld: cannot find -lmeshLibrary
collect2: error: ld returned 1 exit status
make[1]: *** [/home/chris/OpenFOAM/chris-3.0.x/platforms/linux64GccDPInt64Opt/bin/cartesian2DMesh] Error 1
make[1]: Leaving directory `/home/chris/cfMesh-v1.1.1/executables/cartesian2DMesh'
make: *** [cartesian2DMesh] Error 2


tlugaric June 11, 2016 06:19

Hi crixman

Our cfMesh installer is tested with OpenFOAM 2.3.x, and is not guaranteed to work with OpenFOAM 3.0.x. We are working on an installer for OpenFOAM 3.0.x.

kittychunk July 22, 2016 02:58

Quote:

Originally Posted by tlugaric (Post 604387)
Hi crixman

Our cfMesh installer is tested with OpenFOAM 2.3.x, and is not guaranteed to work with OpenFOAM 3.0.x. We are working on an installer for OpenFOAM 3.0.x.

...and one for OpenFOAM 4.0 as well, I hope :)

franjo_j July 22, 2016 06:50

Hi kittychunk, we have updated the development branch in the repository at Sourceforge it now compiles with OpenFOAM 4.0 - you can give it a try and let us know if you notice any problems.

kittychunk July 22, 2016 08:11

Thank you very much Franjo - the development branch compiled fine with OpenFOAM 4.0.

ashim August 3, 2016 23:10

Hi Dr. Franjo Juretic,

I am trying to compile cfMesh (development brach ) for OpenFOAM -dev version in Ubuntu 14.10 and REHL 7.0. But I could not compile it yet. I am getting errors mostly related to the mesh library file DynListI.H. Would please have a look into it.

Thanks,

Ali

GDTech September 27, 2016 06:24

Dear Ali,

recent changes in dynamic list have been pushed to OpenFoam-dev.

The solution is to replace
Code:

this->UList<T>::operator=(
by
Code:

this->shallowCopy(
on lines 42, 55 and 67 in DynListI.H

Best regards

ashim September 27, 2016 22:28

Hi Laurent Fitschy,

Thank you very much for you time. The problem is fixed in other way. When I was cloning the code, somehow I was getting older version. But when I have downloaded it as a snapshots and compile it, it works perfectly.

Regards

Ali

elmo555 November 28, 2017 07:24

I'm trying to build the latest cfMesh (cfMesh-v1.1.2) with the latest OpenFOAM release (OpenFOAM-v1706), but some files seem to have changed, to the compilation fails:

Code:

In file included from ../../meshLibrary/lnInclude/triSurf.H:41:0,
                from checkSurfaceMesh.C:32:
../../meshLibrary/lnInclude/triSurfFacets.H:42:39: fatal error: geometricSurfacePatchList.H: No such file or directory
 #include "geometricSurfacePatchList.H"

What's the latest known version of cfMesh and OpenFOAM that compile? Any help is appreciated!


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