|
[Sponsors] |
[cfMesh] cfMesh Installation with OpenFOAM 6? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2018, 19:17 |
cfMesh Installation with OpenFOAM 6?
|
#1 |
New Member
Join Date: May 2018
Posts: 4
Rep Power: 8 |
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. |
|
July 13, 2018, 06:48 |
Deb
|
#2 |
New Member
Oliva
Join Date: Mar 2018
Posts: 4
Rep Power: 8 |
Hi
There is dibian version , not need for compiling and setting envir. |
|
July 24, 2018, 13:52 |
|
#3 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
cfmesh is included in OPENFOAM 1806.
|
|
July 27, 2018, 04:55 |
Installation error with OpenFOAM 6
|
#4 |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8 |
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 Last edited by yambanshee; August 1, 2018 at 07:35. |
|
October 23, 2018, 05:24 |
|
#5 |
New Member
Metikurke
Join Date: May 2017
Posts: 21
Rep Power: 9 |
Hi,
did you solve the error? I am also getting the same error. Please let me know the procedure. Thank you. |
|
October 29, 2018, 09:50 |
|
#6 |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8 |
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
|
|
December 18, 2018, 08:22 |
cfMesh installation in OpenFOAM 6
|
#7 |
Member
Join Date: Oct 2018
Location: France
Posts: 34
Rep Power: 8 |
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 |
|
December 23, 2018, 20:33 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
Bruno
__________________
|
|
January 1, 2019, 20:34 |
|
#9 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
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 |
|
January 3, 2019, 18:42 |
|
#11 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
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 |
|
January 4, 2019, 19:34 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @Robert: OK, now I can see the problems... so there are two possible origins of problems here:
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:
|
|
January 6, 2019, 17:33 |
|
#13 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
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. |
|
July 29, 2019, 02:28 |
|
#14 |
New Member
Quinn Reynolds
Join Date: Jun 2014
Posts: 7
Rep Power: 12 |
It looks like wyldckat's instructions work for compiling cfMesh against OpenFOAM 7 as well :-)
|
|
August 6, 2019, 11:20 |
|
#15 |
New Member
Join Date: May 2012
Posts: 3
Rep Power: 14 |
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 |
|
August 7, 2019, 08:07 |
|
#16 | |
Senior Member
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 8 |
Quote:
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 |
||
August 7, 2019, 08:20 |
|
#17 |
New Member
Join Date: May 2012
Posts: 3
Rep Power: 14 |
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 |
|
August 7, 2019, 09:14 |
|
#18 | |
Senior Member
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 8 |
Quote:
Krao |
||
August 7, 2019, 10:18 |
|
#19 |
New Member
Join Date: May 2012
Posts: 3
Rep Power: 14 |
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) |
|
August 7, 2019, 11:23 |
|
#20 | ||
Senior Member
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 8 |
Quote:
Try this I have just compiled on OpenFOAM 7 Quote:
|
|||
Tags |
cfmesh, installation |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
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 |