cfMesh Installation with OpenFOAM 6?
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 |
Deb
Hi
There is dibian version , not need for compiling and setting envir. |
cfmesh is included in OPENFOAM 1806.
|
Installation error with OpenFOAM 6
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 |
Hi,
did you solve the error? I am also getting the same error. Please let me know the procedure. Thank you. |
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
|
cfMesh installation in OpenFOAM 6
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 |
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 |
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 |
Quote:
|
2 Attachment(s)
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 |
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:
|
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. |
It looks like wyldckat's instructions work for compiling cfMesh against OpenFOAM 7 as well :-)
|
1 Attachment(s)
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 |
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 |
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 |
Quote:
Krao |
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))) |
Quote:
Try this I have just compiled on OpenFOAM 7 Quote:
|
All times are GMT -4. The time now is 04:01. |