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 Community New Posts Updated Threads Search

Like Tree15Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2019, 20:20
Default
  #21
New Member
 
Marc
Join Date: Oct 2019
Posts: 1
Rep Power: 0
marccfd is on a distinguished road
Quote:
Originally Posted by Krao View Post
Try this I have just compiled on OpenFOAM 7



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.
Hi,

I just followed the Wiki instructions. After running into an error I tried your change to the option File and ran it again.
I still get this error message
Code:
wmake libso meshLibrary
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    wmakeLnInclude error: base directory /opt/openfoam7/src/edgeMesh/ does not exist
wmakeLnInclude: linking include files to ./lnInclude
All on Ubuntu 18.04.3 LTS and OpenFoam 7

Does anyone know how to tell cf Mesh that the EdgeMesh is not in src anymore?
marccfd is offline   Reply With Quote

Old   November 1, 2019, 06:45
Default
  #22
Member
 
Bruno Lebon
Join Date: Dec 2012
Posts: 33
Rep Power: 14
blebon is on a distinguished road
edgeMesh is in src/meshTools, so change line 35 to
Quote:
-I$(LIB_SRC)/meshTools/edgeMesh/lnInclude \
to get rid of the error.
kcavatar likes this.
blebon is offline   Reply With Quote

Old   December 22, 2019, 10:09
Default
  #23
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
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



Works also for OpenFOAM 7 and the latest -dev Line of the Foundation version.
wyldckat likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 27, 2019, 16:45
Default
  #24
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
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
@Tobi: Many thanks! I've updated the wiki page accordingly.
wyldckat is offline   Reply With Quote

Old   March 28, 2020, 09:29
Default
  #25
New Member
 
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 13
snowygrouch is on a distinguished road
Quote:
Originally Posted by blebon View Post
edgeMesh is in src/meshTools, so change line 35 to

to get rid of the error.
Dont think this works because InInclude isnt in the edgemesh folder.

The wikipage instructions dont for for me in Ubuntu 18.04 and Of7 on either fork.

still showing compilation erros after wmake because there is no InInclude in edgemesh,
and it tries to create it, and fails.
__________________
Calum Douglas
Director
Scorpion Dynamics Ltd
Email: calum.douglas@scorpion-dynamics.com
Web: www.scorpion-dynamics.com
snowygrouch is offline   Reply With Quote

Old   July 19, 2020, 16:54
Default
  #26
New Member
 
P
Join Date: Jul 2020
Posts: 1
Rep Power: 0
known_by_some is on a distinguished road
I'd also be curious if anyone has successfully compiled cfMesh with OF7. I'm using Ubuntu 20.04 and WSL.

Like snowygrouch said, there is no InInclude in edgemesh - I edited the various paths to fix the other issues as noted in previous comments, but the lack of InInclude in edgemesh seems to be a deal breaker. Am I missing something?

I've been using the included cfMesh as apart of the latest v2006 release, but it seems to have issues with tetMesh and pMesh and I'd like to compile cfMesh myself to see if that resolves it.
known_by_some is offline   Reply With Quote

Old   July 31, 2020, 16:02
Default
  #27
New Member
 
Join Date: Jul 2020
Posts: 1
Rep Power: 0
iskionrocks is on a distinguished road
I was able to get it to work in OpenFOAM7 by just removing the line referring to edgeMesh as below. I'm not sure if this will have consequences later but I was able to successfully mesh a simple case I am working on right now.

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

LIB_LIBS = $(LIBS)
iskionrocks is offline   Reply With Quote

Old   August 6, 2020, 17:47
Default
  #28
Member
 
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9
Malkocoglu is on a distinguished road
I also tried to compile cfMesh in both versions (OpenFOAM-dev and OpenFOAM-8) by applying suggestions mentioned in this thread (for example, posts #20, #22 and #27) and another thread on this issue (Compiling cfMesh with OpenFOAM 4.x). However, I was not able to compile and I encountered with errors. I attached log file generated during compilation attempt (please see attachment named "log_Allwmake.txt"). So, I am the new one that joined to the crowd. If someone has a solution on this problem, I would be very thankful.

Thanks in advance.
Attached Files
File Type: txt log_Allwmake.txt (17.4 KB, 18 views)

Last edited by Malkocoglu; August 6, 2020 at 19:11.
Malkocoglu is offline   Reply With Quote

Old   September 12, 2020, 10:07
Default
  #29
Member
 
giovanni
Join Date: Sep 2017
Posts: 50
Rep Power: 9
gian93 is on a distinguished road
I experienced the same issue on of7 and ubuntu 18.04.
I've modified the file "meshLibrary/Make/options" to point correctly at
HTML Code:
-I$(LIB_SRC)/meshTools/edgeMesh/lnInclude \
Anyway it does not solve the second set of errors . These are the errors related to lnInclude

HTML Code:
lnInclude/DynListI.H: In instantiation of ‘Foam::DynList<T, staticSize>::DynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16]’:
lnInclude/helperFunctionsTopologyManipulationI.H:491:34:   required from here
lnInclude/DynListI.H:195:15: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
     setSize(l.size());
             ~~^~~~
lnInclude/DynListI.H:197: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 = 6]’:
lnInclude/helperFunctionsGeometryQueriesI.H:1059:37:   required from here
lnInclude/DynListI.H:195:15: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
     setSize(l.size());
             ~~^~~~
lnInclude/DynListI.H:197:32: error: subscripted value is neither array nor pointer
         this->operator[](i) = l[i];
                               ~^
please someone that is more skilled than me can have a look into?
thanks
gian93 is offline   Reply With Quote

Old   September 12, 2020, 10:29
Default
  #30
Member
 
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9
Malkocoglu is on a distinguished road
Hi gian93,

I overcame this problem by compiling OpenFOAM with WM_LABEL_SIZE=32 option as Bruno (a.k.a wyldckat , former forum moderator) mentioned in another thread. This way, I was able to compile and run cfMesh successfully in OpenFOAM v7 & Ubuntu 20.04.1 LTS.

Hope that it helps, regards,
Malkocoglu

Quote:
Originally Posted by gian93 View Post
I experienced the same issue on of7 and ubuntu 18.04.
I've modified the file "meshLibrary/Make/options" to point correctly at
HTML Code:
-I$(LIB_SRC)/meshTools/edgeMesh/lnInclude \
Anyway it does not solve the second set of errors . These are the errors related to lnInclude

HTML Code:
lnInclude/DynListI.H: In instantiation of ‘Foam::DynList<T, staticSize>::DynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16]’:
lnInclude/helperFunctionsTopologyManipulationI.H:491:34:   required from here
lnInclude/DynListI.H:195:15: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
     setSize(l.size());
             ~~^~~~
lnInclude/DynListI.H:197: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 = 6]’:
lnInclude/helperFunctionsGeometryQueriesI.H:1059:37:   required from here
lnInclude/DynListI.H:195:15: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
     setSize(l.size());
             ~~^~~~
lnInclude/DynListI.H:197:32: error: subscripted value is neither array nor pointer
         this->operator[](i) = l[i];
                               ~^
please someone that is more skilled than me can have a look into?
thanks
Malkocoglu is offline   Reply With Quote

Old   September 13, 2020, 01:44
Default
  #31
Member
 
giovanni
Join Date: Sep 2017
Posts: 50
Rep Power: 9
gian93 is on a distinguished road
Quote:
Originally Posted by Malkocoglu View Post
Hi gian93,

I overcame this problem by compiling OpenFOAM with WM_LABEL_SIZE=32 option as Bruno (a.k.a wyldckat , former forum moderator) mentioned in another thread. This way, I was able to compile and run cfMesh successfully in OpenFOAM v7 & Ubuntu 20.04.1 LTS.

Hope that it helps, regards,
Malkocoglu

thank you!.. I also tried to build OpenFOAM with WM_LABEL_SIZE=32 and now cfMesh succesfully works.
gian93 is offline   Reply With Quote

Old   October 20, 2020, 17:17
Default
  #32
New Member
 
Joseph Urich
Join Date: Mar 2009
Location: Pittsburgh, PA
Posts: 21
Rep Power: 17
jurich is on a distinguished road
Hello All,

I have built and run cfMesh successfully in OpenFOAM v7 & v8 using the instructions above & wiki from Bruno (wyldkat). I used WM_LABEL_SIZE=32 and
Code:
-I$(LIB_SRC)/meshTools/edgeMesh/lnInclude \
from the replies above.

In addition I was able to build and run under the current -dev branch by adding this line:

Code:
#include "OSspecific.H"
to these source files:

HTML Code:
/meshLibrary/utilities/checkMeshDict/checkMeshDict.C
/meshLibrary/utilities/dataConversion/foamToFPMA/writeMeshFPMA.C
/meshLibrary/utilities/meshes/polyMeshGen/polyMeshGen.C
jurich is offline   Reply With Quote

Old   December 24, 2020, 08:50
Exclamation cartesianMesh : command not found
  #33
New Member
 
Anusha
Join Date: Dec 2020
Posts: 6
Rep Power: 5
Anushaa is on a distinguished road
Hello,

I am using OpenFOAM 6 and in its modules cfMesh is included.But when I wanted use commands like " surfaceFeatureEdges" and "cartesianMesh" it said its not found.

Please let me know how to proceed.
Anushaa is offline   Reply With Quote

Old   December 29, 2020, 07:46
Default Wm_label_size
  #34
Member
 
Join Date: Feb 2018
Posts: 58
Rep Power: 8
Kahnbein.Kai is on a distinguished road
Hello,
sorry to interrupt, i would like to install cfmesh with OF v8.


I changed the line 35 in the options file but still get an error while compiling.



ops, i forgot to post my error:
Code:
wmake libso meshLibrary
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    mkdir: das Verzeichnis »/opt/openfoam8/src/meshTools/edgeMesh//lnInclude“ kann nicht angelegt werden: Keine Berechtigung
wmakeLnInclude error: failed to create include directory /opt/openfoam8/src/meshTools/edgeMesh//lnInclude
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/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/surfMesh/lnInclude -I/opt/openfoam8/src/meshTools/edgeMesh/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/meshes/polyMeshGen/polyMeshGen.C -o Make/linux64GccDPInt32Opt/utilities/meshes/polyMeshGen/polyMeshGen.o
In file included from lnInclude/meshSubset.H:162,
                 from utilities/meshes/polyMeshGen/polyMeshGenPoints.H:45,
                 from utilities/meshes/polyMeshGen/polyMeshGenFaces.H:40,
                 from utilities/meshes/polyMeshGen/polyMeshGenCells.H:40,
                 from utilities/meshes/polyMeshGen/polyMeshGen.H:39,
                 from utilities/meshes/polyMeshGen/polyMeshGen.C:28:
lnInclude/meshSubsetI.H: In member function ‘bool Foam::meshSubset::operator==(const Foam::meshSubset&) const’:
lnInclude/meshSubsetI.H:173:18: warning: self-comparison always evaluates to false [-Wtautological-compare]
  173 |     if( ms.type_ != ms.type_ )
      |         ~~~~~~~~ ^~ ~~~~~~~~
In file included from utilities/meshes/polyMeshGen/polyMeshGen.C:28:
utilities/meshes/polyMeshGen/polyMeshGen.H: At global scope:
utilities/meshes/polyMeshGen/polyMeshGen.H:52:9: error: ‘IOdictionary’ does not name a type; did you mean ‘dictionary’?
   52 |         IOdictionary metaDict_;
      |         ^~~~~~~~~~~~
      |         dictionary
utilities/meshes/polyMeshGen/polyMeshGen.H: In member function ‘const Foam::dictionary& Foam::polyMeshGen::metaData() const’:
utilities/meshes/polyMeshGen/polyMeshGen.H:89:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
   89 |             return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
utilities/meshes/polyMeshGen/polyMeshGen.H: In member function ‘Foam::dictionary& Foam::polyMeshGen::metaData()’:
utilities/meshes/polyMeshGen/polyMeshGen.H:95:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
   95 |             return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
utilities/meshes/polyMeshGen/polyMeshGen.C: In constructor ‘Foam::polyMeshGen::polyMeshGen(const Foam::Time&)’:
utilities/meshes/polyMeshGen/polyMeshGen.C:40:5: error: class ‘Foam::polyMeshGen’ does not have any field named ‘metaDict_’
   40 |     metaDict_
      |     ^~~~~~~~~
utilities/meshes/polyMeshGen/polyMeshGen.C: In constructor ‘Foam::polyMeshGen::polyMeshGen(const Foam::Time&, const pointField&, const faceList&, const cellList&)’:
utilities/meshes/polyMeshGen/polyMeshGen.C:64:5: error: class ‘Foam::polyMeshGen’ does not have any field named ‘metaDict_’
   64 |     metaDict_
      |     ^~~~~~~~~
utilities/meshes/polyMeshGen/polyMeshGen.C: In constructor ‘Foam::polyMeshGen::polyMeshGen(const Foam::Time&, const pointField&, const faceList&, const cellList&, const wordList&, const labelList&, const labelList&)’:
utilities/meshes/polyMeshGen/polyMeshGen.C:100:5: error: class ‘Foam::polyMeshGen’ does not have any field named ‘metaDict_’
  100 |     metaDict_
      |     ^~~~~~~~~
utilities/meshes/polyMeshGen/polyMeshGen.C: In member function ‘void Foam::polyMeshGen::write() const’:
utilities/meshes/polyMeshGen/polyMeshGen.C:156:5: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
  156 |     metaDict_.writeHeader(fName);
      |     ^~~~~~~~~
      |     metaData
make: *** [/opt/openfoam8/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/utilities/meshes/polyMeshGen/polyMeshGen.o] Fehler 1
wmake executables
wmake cartesian2DMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/executables/cartesian2DMesh“ wird betreten
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/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude   -fPIC -c cartesian2DMesh.C -o Make/linux64GccDPInt32Opt/cartesian2DMesh.o
In file included from ../../meshLibrary/lnInclude/meshSubset.H:162,
                 from ../../meshLibrary/lnInclude/polyMeshGenPoints.H:45,
                 from ../../meshLibrary/lnInclude/polyMeshGenFaces.H:40,
                 from ../../meshLibrary/lnInclude/polyMeshGenCells.H:40,
                 from ../../meshLibrary/lnInclude/polyMeshGen.H:39,
                 from ../../meshLibrary/lnInclude/cartesian2DMeshGenerator.H:38,
                 from cartesian2DMesh.C:33:
../../meshLibrary/lnInclude/meshSubsetI.H: In member function ‘bool Foam::meshSubset::operator==(const Foam::meshSubset&) const’:
../../meshLibrary/lnInclude/meshSubsetI.H:173:18: warning: self-comparison always evaluates to false [-Wtautological-compare]
  173 |     if( ms.type_ != ms.type_ )
      |         ~~~~~~~~ ^~ ~~~~~~~~
In file included from ../../meshLibrary/lnInclude/cartesian2DMeshGenerator.H:38,
                 from cartesian2DMesh.C:33:
../../meshLibrary/lnInclude/polyMeshGen.H: At global scope:
../../meshLibrary/lnInclude/polyMeshGen.H:52:9: error: ‘IOdictionary’ does not name a type; did you mean ‘dictionary’?
   52 |         IOdictionary metaDict_;
      |         ^~~~~~~~~~~~
      |         dictionary
../../meshLibrary/lnInclude/polyMeshGen.H: In member function ‘const Foam::dictionary& Foam::polyMeshGen::metaData() const’:
../../meshLibrary/lnInclude/polyMeshGen.H:89:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
   89 |             return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
../../meshLibrary/lnInclude/polyMeshGen.H: In member function ‘Foam::dictionary& Foam::polyMeshGen::metaData()’:
../../meshLibrary/lnInclude/polyMeshGen.H:95:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
   95 |             return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
make[1]: *** [/opt/openfoam8/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/cartesian2DMesh.o] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/executables/cartesian2DMesh“ wird verlassen
make: *** [/opt/openfoam8/wmake/makefiles/apps:39: cartesian2DMesh] Fehler 2
wmake utilities
wmake checkSurfaceMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/utilities/checkSurfaceMesh“ wird betreten
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/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude   -fPIC -fuse-ld=bfd -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/checkSurfaceMesh.o -L/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib \
    -lmeshTools -ltriSurface -lfiniteVolume -ledgeMesh -L/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh
/usr/bin/ld.bfd: -ledgeMesh kann nicht gefunden werden
/usr/bin/ld.bfd: -lmeshLibrary kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam8/wmake/makefiles/general:142: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/utilities/checkSurfaceMesh“ wird verlassen
make: *** [/opt/openfoam8/wmake/makefiles/apps:39: checkSurfaceMesh] Fehler 2

Where can i find the WM_LABEL_SIZE Option or the original thread of wyldckat or even better the wiki post ?



Best regards
Kai

Last edited by Kahnbein.Kai; December 29, 2020 at 11:56.
Kahnbein.Kai is offline   Reply With Quote

Old   December 29, 2020, 11:46
Default
  #35
Member
 
Join Date: Feb 2018
Posts: 58
Rep Power: 8
Kahnbein.Kai is on a distinguished road
Is this the "right" file $WM_PROJECT_DIR/etc/bashrc ?
At line 80 ? The value is already at 32 at my file.


Best regards
Kai
Kahnbein.Kai is offline   Reply With Quote

Old   December 30, 2020, 12:29
Default
  #36
Member
 
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9
Malkocoglu is on a distinguished road
@Anushaa

Quote:
I am using OpenFOAM 6 and in its modules cfMesh is included.
Are you sure that Foundation (CFD Direct) branch of OpenFOAM contains built-in cfMesh? I also use CFD Direct OpenFOAM and I have never seen any utility regarding cfMesh? I have additionally compiled cfMesh with OpenFOAM. So, you may need to re-compile it as well.
Malkocoglu is offline   Reply With Quote

Old   December 30, 2020, 12:55
Default
  #37
Member
 
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9
Malkocoglu is on a distinguished road
Quote:
Originally Posted by Kahnbein.Kai View Post
Hello,
sorry to interrupt, i would like to install cfmesh with OF v8.


I changed the line 35 in the options file but still get an error while compiling.



ops, i forgot to post my error:
Code:
wmake libso meshLibrary
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    mkdir: das Verzeichnis »/opt/openfoam8/src/meshTools/edgeMesh//lnInclude“ kann nicht angelegt werden: Keine Berechtigung
wmakeLnInclude error: failed to create include directory /opt/openfoam8/src/meshTools/edgeMesh//lnInclude
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/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/surfMesh/lnInclude -I/opt/openfoam8/src/meshTools/edgeMesh/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude   -fPIC -c utilities/meshes/polyMeshGen/polyMeshGen.C -o Make/linux64GccDPInt32Opt/utilities/meshes/polyMeshGen/polyMeshGen.o
In file included from lnInclude/meshSubset.H:162,
                 from utilities/meshes/polyMeshGen/polyMeshGenPoints.H:45,
                 from utilities/meshes/polyMeshGen/polyMeshGenFaces.H:40,
                 from utilities/meshes/polyMeshGen/polyMeshGenCells.H:40,
                 from utilities/meshes/polyMeshGen/polyMeshGen.H:39,
                 from utilities/meshes/polyMeshGen/polyMeshGen.C:28:
lnInclude/meshSubsetI.H: In member function ‘bool Foam::meshSubset::operator==(const Foam::meshSubset&) const’:
lnInclude/meshSubsetI.H:173:18: warning: self-comparison always evaluates to false [-Wtautological-compare]
  173 |     if( ms.type_ != ms.type_ )
      |         ~~~~~~~~ ^~ ~~~~~~~~
In file included from utilities/meshes/polyMeshGen/polyMeshGen.C:28:
utilities/meshes/polyMeshGen/polyMeshGen.H: At global scope:
utilities/meshes/polyMeshGen/polyMeshGen.H:52:9: error: ‘IOdictionary’ does not name a type; did you mean ‘dictionary’?
   52 |         IOdictionary metaDict_;
      |         ^~~~~~~~~~~~
      |         dictionary
utilities/meshes/polyMeshGen/polyMeshGen.H: In member function ‘const Foam::dictionary& Foam::polyMeshGen::metaData() const’:
utilities/meshes/polyMeshGen/polyMeshGen.H:89:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
   89 |             return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
utilities/meshes/polyMeshGen/polyMeshGen.H: In member function ‘Foam::dictionary& Foam::polyMeshGen::metaData()’:
utilities/meshes/polyMeshGen/polyMeshGen.H:95:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
   95 |             return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
utilities/meshes/polyMeshGen/polyMeshGen.C: In constructor ‘Foam::polyMeshGen::polyMeshGen(const Foam::Time&)’:
utilities/meshes/polyMeshGen/polyMeshGen.C:40:5: error: class ‘Foam::polyMeshGen’ does not have any field named ‘metaDict_’
   40 |     metaDict_
      |     ^~~~~~~~~
utilities/meshes/polyMeshGen/polyMeshGen.C: In constructor ‘Foam::polyMeshGen::polyMeshGen(const Foam::Time&, const pointField&, const faceList&, const cellList&)’:
utilities/meshes/polyMeshGen/polyMeshGen.C:64:5: error: class ‘Foam::polyMeshGen’ does not have any field named ‘metaDict_’
   64 |     metaDict_
      |     ^~~~~~~~~
utilities/meshes/polyMeshGen/polyMeshGen.C: In constructor ‘Foam::polyMeshGen::polyMeshGen(const Foam::Time&, const pointField&, const faceList&, const cellList&, const wordList&, const labelList&, const labelList&)’:
utilities/meshes/polyMeshGen/polyMeshGen.C:100:5: error: class ‘Foam::polyMeshGen’ does not have any field named ‘metaDict_’
  100 |     metaDict_
      |     ^~~~~~~~~
utilities/meshes/polyMeshGen/polyMeshGen.C: In member function ‘void Foam::polyMeshGen::write() const’:
utilities/meshes/polyMeshGen/polyMeshGen.C:156:5: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
  156 |     metaDict_.writeHeader(fName);
      |     ^~~~~~~~~
      |     metaData
make: *** [/opt/openfoam8/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/utilities/meshes/polyMeshGen/polyMeshGen.o] Fehler 1
wmake executables
wmake cartesian2DMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/executables/cartesian2DMesh“ wird betreten
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/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude   -fPIC -c cartesian2DMesh.C -o Make/linux64GccDPInt32Opt/cartesian2DMesh.o
In file included from ../../meshLibrary/lnInclude/meshSubset.H:162,
                 from ../../meshLibrary/lnInclude/polyMeshGenPoints.H:45,
                 from ../../meshLibrary/lnInclude/polyMeshGenFaces.H:40,
                 from ../../meshLibrary/lnInclude/polyMeshGenCells.H:40,
                 from ../../meshLibrary/lnInclude/polyMeshGen.H:39,
                 from ../../meshLibrary/lnInclude/cartesian2DMeshGenerator.H:38,
                 from cartesian2DMesh.C:33:
../../meshLibrary/lnInclude/meshSubsetI.H: In member function ‘bool Foam::meshSubset::operator==(const Foam::meshSubset&) const’:
../../meshLibrary/lnInclude/meshSubsetI.H:173:18: warning: self-comparison always evaluates to false [-Wtautological-compare]
  173 |     if( ms.type_ != ms.type_ )
      |         ~~~~~~~~ ^~ ~~~~~~~~
In file included from ../../meshLibrary/lnInclude/cartesian2DMeshGenerator.H:38,
                 from cartesian2DMesh.C:33:
../../meshLibrary/lnInclude/polyMeshGen.H: At global scope:
../../meshLibrary/lnInclude/polyMeshGen.H:52:9: error: ‘IOdictionary’ does not name a type; did you mean ‘dictionary’?
   52 |         IOdictionary metaDict_;
      |         ^~~~~~~~~~~~
      |         dictionary
../../meshLibrary/lnInclude/polyMeshGen.H: In member function ‘const Foam::dictionary& Foam::polyMeshGen::metaData() const’:
../../meshLibrary/lnInclude/polyMeshGen.H:89:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
   89 |             return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
../../meshLibrary/lnInclude/polyMeshGen.H: In member function ‘Foam::dictionary& Foam::polyMeshGen::metaData()’:
../../meshLibrary/lnInclude/polyMeshGen.H:95:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
   95 |             return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
make[1]: *** [/opt/openfoam8/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/cartesian2DMesh.o] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/executables/cartesian2DMesh“ wird verlassen
make: *** [/opt/openfoam8/wmake/makefiles/apps:39: cartesian2DMesh] Fehler 2
wmake utilities
wmake checkSurfaceMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/utilities/checkSurfaceMesh“ wird betreten
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/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude   -fPIC -fuse-ld=bfd -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/checkSurfaceMesh.o -L/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib \
    -lmeshTools -ltriSurface -lfiniteVolume -ledgeMesh -L/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh
/usr/bin/ld.bfd: -ledgeMesh kann nicht gefunden werden
/usr/bin/ld.bfd: -lmeshLibrary kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam8/wmake/makefiles/general:142: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/utilities/checkSurfaceMesh“ wird verlassen
make: *** [/opt/openfoam8/wmake/makefiles/apps:39: checkSurfaceMesh] Fehler 2

Where can i find the WM_LABEL_SIZE Option or the original thread of wyldckat or even better the wiki post ?



Best regards
Kai
Hello @Kahnbein.Kai

Because there is not extended instructions for OpenFOAM-8 in OFWiki, I have to direct you to OpenFOAM-7 (there is no significant difference from 7 to 8 - at least, in this issue) variant in OFWiki, the link is:

https://openfoamwiki.net/index.php/I...7/Ubuntu/18.04

Here, when you are building OpenFOAM in step 7:

Quote:
"For x86_64, it depends on whether you need 64-bit integer support or not:
For building with the normal 32-bit integer support (maximum 2.147×109 cells, faces or points):

source $HOME/OpenFOAM/OpenFOAM-7/etc/bashrc FOAMY_HEX_MESH=yes

..."
Therefore, you may either use this form or alternatively:

Quote:
source $HOME/OpenFOAM/OpenFOAM-7/etc/bashrc WM_LABEL_SIZE=32 FOAMY_HEX_MESH=yes
I do not know how you complied at the building phase, but in post 30, I meant this way.

Quote:
the original thread of wyldckat or even better the wiki post ?
I struggled to find it, unfortunately, but I was not able to do. However;

I do not know if you directly source OpenFOAM or use alias for sourcing every time that you use OpenFOAM, anyway does not matter, source your OpenFOAM by using WM_LABEL_SIZE=32 option (at least when you would like to use cfMesh, as well). If you use alias, please update your ~/.bashrc file regarding that.

If this also does not work, turn back and build your OpenFOAM by using "WM_LABEL_SIZE=32" as written above.

Hope that it helps, take care of yourselves,
Malkocoglu
Malkocoglu is offline   Reply With Quote

Old   December 30, 2020, 19:32
Default
  #38
New Member
 
Anusha
Join Date: Dec 2020
Posts: 6
Rep Power: 5
Anushaa is on a distinguished road
This is what I have :

anusha@DESKTOP-JPOD8EC:~$ cd /mnt/c/OpenFOAM-v2006/modules/
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules$ ls
Allwmake OpenQBMM README.md adios avalanche cfmesh doc external-solver list-modules visualization
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules$ cd cfmesh/
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules/cfmesh$ ls
Allwclean Allwmake README executables meshLibrary python testingInterfaces tutorials userGuide utilities
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules/cfmesh$ cd tutorials/
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules/cfmesh/tutorials$ ls
Allclean Allrun cartesian2DMesh cartesianMesh pMesh tetMesh
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules/cfmesh/tutorials$ cd cartesianMesh/
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules/cfmesh/tutorials/cartesianMesh$ ls
asmoOctree elbow_90degree multipleOrifices sawOctree singleOrifice
bunnyOctree intakePortOctree sBendOctree ship5415Octree trial
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules/cfmesh/tutorials/cartesianMesh$ cd asmoOctree/
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules/cfmesh/tutorials/cartesianMesh/asmoOctree$ cartesianMesh
cartesianMesh: command not found
anusha@DESKTOP-JPOD8EC:/mnt/c/OpenFOAM-v2006/modules/cfmesh/tutorials/cartesianMesh/asmoOctree$


i tired compile the code but ... I got this :

anusha@DESKTOP-JPOD8EC:~$ git clone https://github.com/blueCFD/cfMesh.git cfmesh
fatal: destination path 'cfmesh' already exists and is not an empty directory.
anusha@DESKTOP-JPOD8EC:~$ w (0.36-0ubuntu0.18.04.1) ...
anusha@DESKTOP-JPOD8EC:~$ me-support (3.60ubuntu1) ...
anusha@DESKTOP-JPOD8EC:~$ eadahead (0.100.0-21) ...
anusha@DESKTOP-JPOD8EC:~$ stall-info (6.5.0.dfsg.1-2) ...
anusha@DESKTOP-JPOD8EC:~$ bc-bin (2.27-3ubuntu1.3) ...
anusha@DESKTOP-JPOD8EC:~$ stemd (237-3ubuntu10.43) ...
anusha@DESKTOP-JPOD8EC:~$
anusha@DESKTOP-JPOD8EC:~$ cd cfmesh
anusha@DESKTOP-JPOD8EC:~/cfmesh$ git checkout development-OF5x
fatal: not a git repository (or any of the parent directories): .git
anusha@DESKTOP-JPOD8EC:~/cfmesh$ ls
cfmesh
anusha@DESKTOP-JPOD8EC:~/cfmesh$ ./Allwmake > log.make 2>&1
anusha@DESKTOP-JPOD8EC:~/cfmesh$ ./Allwmake
-bash: ./Allwmake: No such file or directory
Anushaa is offline   Reply With Quote

Old   December 31, 2020, 08:06
Default
  #39
Member
 
Join Date: Feb 2018
Posts: 58
Rep Power: 8
Kahnbein.Kai is on a distinguished road
Hey Malkocoglu, thank you for this detailed answer. I'm a little bit confused now, to install OF v7 and v8 i used this https://openfoam.org/download/8-ubuntu/ instruction. Both installations are placed in Computer/opt/openfoam(7 or 8). In my home folder i copied the tutorial folder, to edit and run it. Is this the wrong way to install OpenFaom ? Your linked instruction is much longer then i have used. Best regards and i wish you a healthy start into the new year, Kai
Kahnbein.Kai is offline   Reply With Quote

Reply

Tags
cfmesh, installation


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 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


All times are GMT -4. The time now is 09:21.