CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] cfMesh Installation with OpenFOAM 6?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2018, 19:17
Default cfMesh Installation with OpenFOAM 6?
  #1
New Member
 
Join Date: May 2018
Posts: 4
Rep Power: 3
Braedan is on a distinguished road
I am currently trying to install cfMesh unto my linux computer as i know cfMesh is really useful. I downloaded v1.1.1 but when i tried to source the bashrc file in the cfMesh directory there was an error, as it tried to reference to OpenFoam2.3.0 while i have openfoam6 currently installed (bashrc referenced to /opt/OpenFOAM-2.3.0 while what there is /opt/openfoam6). So i uninstalled it and went to install the newer version cfMesh-v.1.1.2. Although there is no installer but rather only a zipped file containing the tutorials/commands etc.
So i was wondering if anyone can help me compile the cfMesh code into openfoam6.
Any help is appreciated, Thank you
Ps. I am still relatively new at using linux as well as openfoam.
I have currently solved the problem. There was an error sourcing the correct libraries.
~Braedan

Last edited by Braedan; July 13, 2018 at 18:08.
Braedan is offline   Reply With Quote

Old   July 13, 2018, 06:48
Default Deb
  #2
New Member
 
Oliva
Join Date: Mar 2018
Posts: 3
Rep Power: 3
Oliva is on a distinguished road
Hi


There is dibian version , not need for compiling and setting envir.
Oliva is offline   Reply With Quote

Old   July 24, 2018, 13:52
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 892
Rep Power: 24
olesen will become famous soon enough
cfmesh is included in OPENFOAM 1806.
olesen is offline   Reply With Quote

Old   July 27, 2018, 04:55
Default Installation error with OpenFOAM 6
  #4
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 123
Rep Power: 3
yambanshee is on a distinguished road
hi there!


I'm trying to install cfMesh on ubuntu 18.04 and openFOAM 6.0, however I persistently get an error in the process. My knowledge on linex in general is not good enough to know how to begin to troubleshoot, so I would greatly appreciate some advice.
Below is some of my log file from trying the install

Code:
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/checkMeshDict/checkMeshDict.C -o Make/linux64GccDPInt32Opt/utilities/checkMeshDict/checkMeshDict.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/containers/Lists/pointFieldPMG.C -o Make/linux64GccDPInt32Opt/utilities/containers/Lists/pointFieldPMG.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/containers/Lists/faceListPMG.C -o Make/linux64GccDPInt32Opt/utilities/containers/Lists/faceListPMG.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/containers/VRWGraph/VRWGraph.C -o Make/linux64GccDPInt32Opt/utilities/containers/VRWGraph/VRWGraph.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/containers/VRWGraph/VRWGraphSMPModifier.C -o Make/linux64GccDPInt32Opt/utilities/containers/VRWGraph/VRWGraphSMPModifier.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/containers/VRWGraphList/VRWGraphList.C -o Make/linux64GccDPInt32Opt/utilities/containers/VRWGraphList/VRWGraphList.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/containers/Graphs/cellIOGraph.C -o Make/linux64GccDPInt32Opt/utilities/containers/Graphs/cellIOGraph.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/containers/Graphs/faceIOGraph.C -o Make/linux64GccDPInt32Opt/utilities/containers/Graphs/faceIOGraph.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/meshes/polyMeshGen/polyMeshGen.C -o Make/linux64GccDPInt32Opt/utilities/meshes/polyMeshGen/polyMeshGen.o
/opt/openfoam6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/utilities/meshes/polyMeshGen/polyMeshGen.o' failed
wmake executables
wmake cartesian2DMesh
make[1]: Entering directory '/home/zander/Downloads/cfMesh-v1.1.2/executables/cartesian2DMesh'
Making dependency list for source file cartesian2DMesh.C
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -I/opt/openfoam6/src/finiteVolume/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c cartesian2DMesh.C -o Make/linux64GccDPInt32Opt/cartesian2DMesh.o
/opt/openfoam6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/cartesian2DMesh.o' failed
make[1]: Leaving directory '/home/zander/Downloads/cfMesh-v1.1.2/executables/cartesian2DMesh'
/opt/openfoam6/wmake/makefiles/apps:39: recipe for target 'cartesian2DMesh' failed
wmake utilities
wmake checkSurfaceMesh
make[1]: Entering directory '/home/zander/Downloads/cfMesh-v1.1.2/utilities/checkSurfaceMesh'
Making dependency list for source file checkSurfaceMesh.C
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -I/opt/openfoam6/src/finiteVolume/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c checkSurfaceMesh.C -o Make/linux64GccDPInt32Opt/checkSurfaceMesh.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam6/src/triSurface/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -I/opt/openfoam6/src/finiteVolume/lnInclude -I/opt/openfoam6/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/checkSurfaceMesh.o -L/opt/openfoam6/platforms/linux64GccDPInt32Opt/lib \
    -lmeshTools -ltriSurface -lfiniteVolume -ledgeMesh -L/home/zander/OpenFOAM/zander-6/platforms/linux64GccDPInt32Opt/lib -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/zander/OpenFOAM/zander-6/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh
/opt/openfoam6/wmake/makefiles/general:140: recipe for target '/home/zander/OpenFOAM/zander-6/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh' failed
make[1]: Leaving directory '/home/zander/Downloads/cfMesh-v1.1.2/utilities/checkSurfaceMesh'
/opt/openfoam6/wmake/makefiles/apps:39: recipe for target 'checkSurfaceMesh' failed
EDIT: Managed to install V1.1

Last edited by yambanshee; August 1, 2018 at 07:35.
yambanshee is offline   Reply With Quote

Old   October 23, 2018, 05:24
Default
  #5
New Member
 
Metikurke
Join Date: May 2017
Posts: 21
Rep Power: 4
Metikurke is on a distinguished road
Hi,



did you solve the error? I am also getting the same error. Please let me know the procedure. Thank you.
Metikurke is offline   Reply With Quote

Old   October 29, 2018, 09:50
Default
  #6
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 123
Rep Power: 3
yambanshee is on a distinguished road
I did, by changing many of the source files to work with newer versions of openFoam. Unfortunately, this was months ago and I cannot remember what or how I changed them
yambanshee is offline   Reply With Quote

Old   December 18, 2018, 08:22
Default cfMesh installation in OpenFOAM 6
  #7
New Member
 
stockzahn's Avatar
 
Join Date: Oct 2018
Location: France
Posts: 15
Rep Power: 3
stockzahn is on a distinguished road
Dear all,


I would like to get cfMesh running in combination with OF6. I searched for this special issue, but I couldn't find any solution. I tried to build it from source (v1.1.2), but when compiling there are two/three errors:


1) In OF6 the folder edgeMesh in the src-directory doesn't exist anymore, it seems, that the respective files are now in the meshTools/lnInclude-folder. I tried to chnage that in the Make files of cfMesh, so the error message disappeared, but I don't know if this helped or was even necessary, since there are additional errors.


2 + 3) The actual compiler errors seem to have their origin in the polyMeshGen.H and polyMeshGen.C-file. It says that 'metaDict_' and 'IODictionary' were not declared in this scope and that the constructor does not not have these field names.


Does anyone know if and how this can be fixed or if it is even possible to use cfMesh with OF6 or if I try to do something impossible?


Thanks,
stockzahn
stockzahn is offline   Reply With Quote

Old   December 23, 2018, 20:33
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,943
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

Merry Christmas! I am re-gifting cfMesh for OpenFOAM 5 and 6 to everyone this year

This to say that I've revised/revamped the wiki page for cfMesh at openfoamwiki.net: https://openfoamwiki.net/index.php/E...ilities/cfMesh

And that there you will now find instructions regarding:
  1. Where you can find cfMesh, its source code and in which OpenFOAM/foam-extend versions is already present and how to build it from source code if not present by default.
    • So much so that there are actually two sets of instructions on how to install cfMesh with OpenFOAM 5 and 6!
  2. Where you you can find the tutorials.
  3. Where you can find the User Guide.
Best regards,
Bruno
Tobi, JonW, emjay and 3 others like this.
__________________
wyldckat is offline   Reply With Quote

Old   January 1, 2019, 20:34
Default
  #9
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 11
rob3rt 0ng is on a distinguished road
Hi All,


Happy new year!


I have similar aforementioned compilation problems both with the original version using of4x, as well as the links provided by Bruno for of5x and of6x.


Solutions will be appreciated.


Regards
Robert
rob3rt 0ng is offline   Reply With Quote

Old   January 2, 2019, 20:27
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,943
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by rob3rt 0ng View Post
I have similar aforementioned compilation problems both with the original version using of4x, as well as the links provided by Bruno for of5x and of6x.
Quick answer: I need concrete information about what exact error messages you are getting.
wyldckat is offline   Reply With Quote

Old   January 3, 2019, 18:42
Default
  #11
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 11
rob3rt 0ng is on a distinguished road
Hi Bruno,

Please find attached make log files for the compilation of cfMesh in both 4x and 5x.

I tried to follow both the steps in 2.1.1 and 2.1.2 provided here (https://openfoamwiki.net/index.php/E...ilities/cfMesh), but both gives me a similar error message.

Please let me know if you need more info.

Regards
Robert
Attached Files
File Type: txt logMake_cfMeshv112_of4x.txt (93.6 KB, 10 views)
File Type: txt logMake_cfMesh_of5x.txt (6.4 KB, 13 views)
rob3rt 0ng is offline   Reply With Quote

Old   January 4, 2019, 19:34
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,943
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer @Robert: OK, now I can see the problems... so there are two possible origins of problems here:
  1. GCC 7 is being used, which is one possible origin of this problem.
  2. Another one is that 64-bit labels ("WM_LABEL_SIZE=64" is defined) are being used in your builds of OpenFOAM 4.x and 5.x.
So my question to you is this: Are you really planning on running OpenFOAM with meshes that have more than 2147483648 cells/faces/vertices?
It's something around 100 to 200 million cells, which requires from 100 to 300GB of RAM, depending on the mesh complexity...



The reason for this question is because:
  1. You should be able to compile cfMesh without problems with OpenFOAM 4.x and 5.x if compiled with 32-bit labels.
  2. Which means that you would be able to use cfMesh right away if this were the case.
In the meantime, I'll try to look into this in more detail. With luck, this is already solved on OpenFOAM.com and I can backport the fixes from there...
Tobi and mwaqas like this.
wyldckat is offline   Reply With Quote

Old   January 6, 2019, 17:33
Default
  #13
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 11
rob3rt 0ng is on a distinguished road
Thanks, Bruno, for taking a look at it.



I may need to run 100 million cells case at some point, but not regularly.


Do I need to recompile FOAM with 32 bit and certain gcc version? Please let me know if you find the fixes.
rob3rt 0ng is offline   Reply With Quote

Old   July 29, 2019, 02:28
Default
  #14
New Member
 
Quinn Reynolds
Join Date: Jun 2014
Posts: 7
Rep Power: 7
kittychunk is on a distinguished road
It looks like wyldckat's instructions work for compiling cfMesh against OpenFOAM 7 as well :-)
wyldckat likes this.
kittychunk is offline   Reply With Quote

Old   August 6, 2019, 11:20
Default
  #15
New Member
 
Join Date: May 2012
Posts: 3
Rep Power: 9
dossante is on a distinguished road
OlŽa Bruno,


I'm having trouble installing cfMesh with OpenFOAM 6 if compiled with 64-bit labels.

I have pasted in the contents of the log.Allwmake file.

Any help would be greatly appreciated.



Thank you,
Manuel
Attached Files
File Type: zip logs_make.zip (2.3 KB, 2 views)
dossante is offline   Reply With Quote

Old   August 7, 2019, 08:07
Default
  #16
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 121
Rep Power: 3
Krao is on a distinguished road
Quote:
Originally Posted by dossante View Post
OlŽa Bruno,


I'm having trouble installing cfMesh with OpenFOAM 6 if compiled with 64-bit labels.

I have pasted in the contents of the log.Allwmake file.

Any help would be greatly appreciated.



Thank you,
Manuel
Hi Manuel

I had exactly the same issue while installing and I followed the instructions provided by Bruno in comment 8 of this thread. That has sufficient information.

Krao
Krao is offline   Reply With Quote

Old   August 7, 2019, 08:20
Default
  #17
New Member
 
Join Date: May 2012
Posts: 3
Rep Power: 9
dossante is on a distinguished road
yeap I also followed his instructions, but unfortunately no luck during compilation, it fails
I assume the prbl is the 64-bit labels ("WM_LABEL_SIZE=64" is defined) since I used this option for building OF6, see post#12
dossante is offline   Reply With Quote

Old   August 7, 2019, 09:14
Default
  #18
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 121
Rep Power: 3
Krao is on a distinguished road
Quote:
Originally Posted by dossante View Post
yeap I also followed his instructions, but unfortunately no luck during compilation, it fails
I assume the prbl is the 64-bit labels ("WM_LABEL_SIZE=64" is defined) since I used this option for building OF6, see post#12
Can you share your edited files as described in post 8, maybe something missing there and people here may help you to fix it.

Krao
Krao is offline   Reply With Quote

Old   August 7, 2019, 10:18
Default
  #19
New Member
 
Join Date: May 2012
Posts: 3
Rep Power: 9
dossante is on a distinguished road
hmm, I have followed the official repository steps , only made changes to the meshLibrary options file .. is there something I missed???



this is my 'meshLibrary/Make/options' file:



--snip
Code:
ifeq (Gcc,$(findstring Gcc,$(WM_COMPILER)))
    OMP_FLAGS = -DUSE_OMP -fopenmp
else
    OMP_FLAGS =
endif

ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
    ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
        CFMESH_MACROS = -DNoSizeType
        LIBS =
    else
        CFMESH_MACROS =
        LIBS =
    endif
endif

# Use the same macro for OpenFOAM.com and OpenFOAM.org
CFMESH_MACROS += -DOpenCFDSpecific

ifeq ($(WM_PROJECT), foam)
    VER := $(shell expr `echo $(WM_PROJECT_VERSION)` \>= 3.2)
    ifeq ($(VER), 1)
        CFMESH_MACROS = -DExtendSpecific -std=c++11
        LIBS = -lmeshTools -ledgeMesh
    else
        CFMESH_MACROS =
    endif
endif

EXE_INC = \
    $(OMP_FLAGS) $(CFMESH_MACROS) \
    -I$(LIB_SRC)/triSurface/lnInclude \
    -I$(LIB_SRC)/surfMesh/lnInclude \
    -I$(LIB_SRC)/meshTools/edgeMesh/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude

LIB_LIBS = $(LIBS)
--snap
dossante is offline   Reply With Quote

Old   August 7, 2019, 11:23
Default
  #20
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 121
Rep Power: 3
Krao is on a distinguished road
Quote:
Originally Posted by dossante View Post
hmm, I have followed the official repository steps , only made changes to the meshLibrary options file .. is there something I missed???



this is my 'meshLibrary/Make/options' file:



--snip
Code:
ifeq (Gcc,$(findstring Gcc,$(WM_COMPILER)))
    OMP_FLAGS = -DUSE_OMP -fopenmp
else
    OMP_FLAGS =
endif

ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
    ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
        CFMESH_MACROS = -DNoSizeType
        LIBS =
    else
        CFMESH_MACROS =
        LIBS =
    endif
endif

# Use the same macro for OpenFOAM.com and OpenFOAM.org
CFMESH_MACROS += -DOpenCFDSpecific

ifeq ($(WM_PROJECT), foam)
    VER := $(shell expr `echo $(WM_PROJECT_VERSION)` \>= 3.2)
    ifeq ($(VER), 1)
        CFMESH_MACROS = -DExtendSpecific -std=c++11
        LIBS = -lmeshTools -ledgeMesh
    else
        CFMESH_MACROS =
    endif
endif

EXE_INC = \
    $(OMP_FLAGS) $(CFMESH_MACROS) \
    -I$(LIB_SRC)/triSurface/lnInclude \
    -I$(LIB_SRC)/surfMesh/lnInclude \
    -I$(LIB_SRC)/meshTools/edgeMesh/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude

LIB_LIBS = $(LIBS)
--snap

Try this I have just compiled on OpenFOAM 7

Quote:
ifeq (Gcc,$(findstring Gcc,$(WM_COMPILER)))
OMP_FLAGS = -DUSE_OMP -fopenmp
else
OMP_FLAGS =
endif

ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
CFMESH_MACROS = -DNoSizeType
LIBS =
else
CFMESH_MACROS =
LIBS =
endif
endif

ifeq (v, $(findstring v, $(WM_PROJECT_VERSION)))
CFMESH_MACROS += -DOpenCFDSpecific
endif

ifeq ($(WM_PROJECT), foam)
VER := $(shell expr `echo $(WM_PROJECT_VERSION)` \>= 3.2)
ifeq ($(VER), 1)
CFMESH_MACROS = -DExtendSpecific -std=c++11
LIBS = -lmeshTools -ledgeMesh
else
CFMESH_MACROS =
endif
endif

EXE_INC = \
$(OMP_FLAGS) $(CFMESH_MACROS) \
-I$(LIB_SRC)/triSurface/lnInclude \
-I$(LIB_SRC)/surfMesh/lnInclude \
-I$(LIB_SRC)/edgeMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

LIB_LIBS = $(LIBS)
I followed the instructions in post 8 once again and installed cfMesh on my 64bit machine. There was no problem. I think they have made some changes to the make file already, as you can see in my post. Try it once, good luck.
Krao is offline   Reply With Quote

Reply

Tags
cfmesh, installation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 9 March 30, 2017 06:19
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19
[Discussion] Restructuring the Installation page at openfoamwiki.net wyldckat OpenFOAM Installation 16 November 2, 2013 12:43
Trouble shooting about OpenFOAM installation in Ubuntu 12.04 Nait OpenFOAM Installation 2 December 12, 2012 11:20
Installation of OpenFOAM 1.7.1 to OprnSUSE 11.2 superfxfund OpenFOAM Installation 3 November 11, 2010 03:15


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