CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

extBlockMesh compilation errors OpenFoam 5

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By snak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2018, 09:42
Default extBlockMesh compilation errors OpenFoam 5
  #1
New Member
 
Héctor Lodoso
Join Date: Oct 2015
Location: Spain
Posts: 15
Rep Power: 11
Héctor Lodoso is on a distinguished road
Hello,

I was trying to compile this interesting tool developed by Etudes-NG some years ago for snapping surfaces with blockMesh (called extBlockMesh):

https://github.com/Etudes-NG/extBlockMesh

The problem is that it was built for openFoam 2.X.X and it does not run in the new version 5. Some errors come up during the compilation process. I am sure these are pretty easy to fix but I am new in the OpenFoam world and still is a bit confusing to me. Any help is welcome.

Code:
$ ./Allwmake.sh
+ export EXTBLOCKMESH_CODE=/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMe                                                                                                                                                             sh
+ EXTBLOCKMESH_CODE=/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMesh
+ wmake MeshSmoother
wmake MeshSmoother
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file SmootherBoundaryLayer.cpp
Making dependency list for source file SmootherSurface.cpp
Making dependency list for source file SmootherFeature.cpp
Making dependency list for source file SmootherEdge.cpp
Making dependency list for source file SmootherVertex.cpp
Making dependency list for source file SmootherPoint.cpp
Making dependency list for source file SmootherCell.cpp
Making dependency list for source file SmootherParameter.cpp
Making dependency list for source file SmootherControl.cpp
Making dependency list for source file SmootherBoundary.cpp
Making dependency list for source file MeshSmoother.cpp
x86_64-w64-mingw32-g++ -m64 -std=c++11 -Dcygwin64 -DWM_ARCH_OPTION=64 -DWM_DP -D                                                                                                                                                             WM_LABEL_SIZE=32 -DMSWIN -DLITTLE_ENDIAN -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -                                                                                                                                                             Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -                                                                                                                                                             O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/bl                                                                                                                                                             ockMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/Op                                                                                                                                                             enFOAM/OpenFOAM-dev/src/edgeMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/dyna                                                                                                                                                             micMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/fileFormats/lnInclude -I/opt/                                                                                                                                                             OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/sr                                                                                                                                                             c/triSurface/lnInclude -I/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMesh                                                                                                                                                             /MeshSmoother -I/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMesh/MeshSmoo                                                                                                                                                             ther/Point -I/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMesh/MeshSmoothe                                                                                                                                                             r/Point/Features -I/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMesh/MeshS                                                                                                                                                             moother/BoundaryLayer -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/                                                                                                                                                             lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/MSWindows/lnInclude   -c M                                                                                                                                                             eshSmoother.cpp -o Make/cygwin64mingw-w64DPInt32Opt/MeshSmoother.o
x86_64-w64-mingw32-g++ -m64 -std=c++11 -Dcygwin64 -DWM_ARCH_OPTION=64 -DWM_DP -D                                                                                                                                                             WM_LABEL_SIZE=32 -DMSWIN -DLITTLE_ENDIAN -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -                                                                                                                                                             Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -                                                                                                                                                             O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/bl                                                                                                                                                             ockMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/Op                                                                                                                                                             enFOAM/OpenFOAM-dev/src/edgeMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/dyna                                                                                                                                                             micMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/fileFormats/lnInclude -I/opt/                                                                                                                                                             OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/sr                                                                                                                                                             c/triSurface/lnInclude -I/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMesh                                                                                                                                                             /MeshSmoother -I/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMesh/MeshSmoo                                                                                                                                                             ther/Point -I/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMesh/MeshSmoothe                                                                                                                                                             r/Point/Features -I/cygdrive/c/OpenFOAM/18.02/hlodoso-dev/run/extBlockMesh/MeshS                                                                                                                                                             moother/BoundaryLayer -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/                                                                                                                                                             lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/MSWindows/lnInclude   -c S                                                                                                                                                             mootherBoundary.cpp -o Make/cygwin64mingw-w64DPInt32Opt/SmootherBoundary.o
SmootherBoundary.cpp: In member function ‘void Foam::SmootherBoundary::analyseDi                                                                                                                                                             ct(Foam::dictionary&)’:
SmootherBoundary.cpp:99:67: error: ‘class Foam::IOobject’ has no member named ‘f                                                                                                                                                             ilePath’
                         triSurface* bnd = new triSurface(surfFile.filePath());
                                                                   ^
make: *** [/opt/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:26: Make/cyg                                                                                                                                                             win64mingw-w64DPInt32Opt/SmootherBoundary.o] Error 1
+ wmake
Making dependency list for source file extBlockMesh.cpp
x86_64-w64-mingw32-g++ -m64 -std=c++11 -Dcygwin64 -DWM_ARCH_OPTION=64 -DWM_DP -D                                                                                                                                                             WM_LABEL_SIZE=32 -DMSWIN -DLITTLE_ENDIAN -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -                                                                                                                                                             Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -                                                                                                                                                             O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/bl                                                                                                                                                             ockMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/Op                                                                                                                                                             enFOAM/OpenFOAM-dev/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/f                                                                                                                                                             initeVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/triSurface/lnInclude -I/o                                                                                                                                                             pt/OpenFOAM/OpenFOAM-dev/src/fileFormats/lnInclude -I/cygdrive/c/OpenFOAM/18.02/                                                                                                                                                             hlodoso-dev/run/extBlockMesh/MeshSmoother -IlnInclude -I. -I/opt/OpenFOAM/OpenFO                                                                                                                                                             AM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/MSWind                                                                                                                                                             ows/lnInclude   -c extBlockMesh.cpp -o Make/cygwin64mingw-w64DPInt32Opt/extBlock                                                                                                                                                             Mesh.o
extBlockMesh.cpp: In function ‘int main(int, char**)’:
extBlockMesh.cpp:169:21: error: ‘class Foam::IOobject’ has no member named ‘head                                                                                                                                                             erOk’
     if (!meshDictIO.headerOk())
                     ^
extBlockMesh.cpp:181:29: error: cannot call member function ‘void Foam::blockMes                                                                                                                                                             h::verbose(bool)’ without object
     blockMesh::verbose(false);
                             ^
extBlockMesh.cpp:267:25: error: ‘class Foam::IOobject’ has no member named ‘head                                                                                                                                                             erOk’
     if (!smootherDictIO.headerOk())
                         ^
extBlockMesh.cpp:340:54: error: invalid initialization of reference of type ‘con                                                                                                                                                             st labelListList& {aka const Foam::List<Foam::List<int> >&}’ from expression of                                                                                                                                                              type ‘Foam::List<Foam::FixedList<int, 8u> >’
             const labelListList& blockCells = b.cells();
                                                      ^
extBlockMesh.cpp:341:38: error: ‘const class Foam::block’ has no member named ‘b                                                                                                                                                             lockDef’
             const word& zoneName = b.blockDef().zoneName();
                                      ^
make: *** [/opt/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:26: Make/cyg                                                                                                                                                             win64mingw-w64DPInt32Opt/extBlockMesh.o] Error 1
+ wmake hexMeshSmoother
wmake hexMeshSmoother
Making dependency list for source file hexMeshSmoother.cpp
x86_64-w64-mingw32-g++ -m64 -std=c++11 -Dcygwin64 -DWM_ARCH_OPTION=64 -DWM_DP -D                                                                                                                                                             WM_LABEL_SIZE=32 -DMSWIN -DLITTLE_ENDIAN -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -                                                                                                                                                             Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -                                                                                                                                                             O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/bl                                                                                                                                                             ockMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/Op                                                                                                                                                             enFOAM/OpenFOAM-dev/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/f                                                                                                                                                             initeVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/triSurface/lnInclude -I/o                                                                                                                                                             pt/OpenFOAM/OpenFOAM-dev/src/fileFormats/lnInclude -I/cygdrive/c/OpenFOAM/18.02/                                                                                                                                                             hlodoso-dev/run/extBlockMesh/MeshSmoother -IlnInclude -I. -I/opt/OpenFOAM/OpenFO                                                                                                                                                             AM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/MSWind                                                                                                                                                             ows/lnInclude   -c hexMeshSmoother.cpp -o Make/cygwin64mingw-w64DPInt32Opt/hexMe                                                                                                                                                             shSmoother.o
hexMeshSmoother.cpp: In function ‘int main(int, char**)’:
hexMeshSmoother.cpp:75:25: error: ‘class Foam::IOobject’ has no member named ‘he                                                                                                                                                             aderOk’
     if (!smootherDictIO.headerOk())
                         ^
make: *** [/opt/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:26: Make/cyg                                                                                                                                                             win64mingw-w64DPInt32Opt/hexMeshSmoother.o] Error 1
Thank you
__________________
Best regards!
Héctor Lodoso
Héctor Lodoso is offline   Reply With Quote

Old   July 19, 2018, 08:17
Default
  #2
New Member
 
Join Date: Jun 2018
Posts: 11
Rep Power: 8
xshmuel is on a distinguished road
Hi guys I am also very interested in using the extblockmesh tool. I was wondering if you just used the extblockmesh utility for smoothing the mesh or also for the snapping behavior to the more complex shapes?
xshmuel is offline   Reply With Quote

Old   July 19, 2018, 08:44
Default
  #3
Senior Member
 
shinji nakagawa
Join Date: Mar 2009
Location: Japan
Posts: 113
Blog Entries: 1
Rep Power: 18
snak is on a distinguished road
Hi,



The blockMesh of recent OpenFOAM can project mesh onto geometry faces.


https://cfd.direct/openfoam/user-gui...#x25-1790005.3

"blockMesh can be configured to create body fitted meshes using projection of vertices, edges and/or faces onto specified geometry."


The User guide explain it. Tutorials using this functionality are included in the OpenFOAM under tutorials/mesh/blockMesh.
hwangpo likes this.
snak is offline   Reply With Quote

Old   July 19, 2018, 08:50
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


I think it is included in OF6, maybe in OF5, and v1712 and v1806.
You can find examples in $FOAM_TUTORIALS/mesh/blockMesh
for example the sphere case.
(Based on their page, this is nearly the same as extBlockMesh. You define a block, a surface, and project a face of the block to the surface)
simrego is offline   Reply With Quote

Old   July 19, 2018, 09:00
Default
  #5
New Member
 
Join Date: Jun 2018
Posts: 11
Rep Power: 8
xshmuel is on a distinguished road
Oh thats great to know thanks i didnt know blockmesh had that functionaity.

related question: would you know of a tool/utility/trick to use to run a mesh smoother on a blockmesh mesh file. I have a rather complex shape which i just put in blockmesh but there are some mesh quality issues.
xshmuel is offline   Reply With Quote

Old   July 19, 2018, 09:08
Default
  #6
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
It is just a guess but what if you run a snappy on it without the castellation step?
simrego is offline   Reply With Quote

Old   August 14, 2018, 04:53
Default
  #7
New Member
 
Orcun Kozaka
Join Date: Dec 2009
Posts: 6
Rep Power: 17
excolade is on a distinguished road
Quote:
Originally Posted by xshmuel View Post
Oh thats great to know thanks i didnt know blockmesh had that functionaity.

related question: would you know of a tool/utility/trick to use to run a mesh smoother on a blockmesh mesh file. I have a rather complex shape which i just put in blockmesh but there are some mesh quality issues.

Hi did you find an answer to your smoothing question by any chance?


Edit: I tried compiling eBM (extBlockMesh) with OF5.x. In my case the make script directly jumps to linking stage without compiling the source. I am pretty sure this is a rookie mistake for compilation stage but any help would be appreciated. I am thinking of giving a shot to fix other compilation errors if they are in the range of my programming capability.



Anyway, below you can find the error output for anyone interested.



[kozaka@anka extBlockMesh]$ ./Allwmake.sh
+ export EXTBLOCKMESH_CODE=/yapboz/kozaka/OpenFOAM/kozaka-5.x/extBlockMesh
+ EXTBLOCKMESH_CODE=/yapboz/kozaka/OpenFOAM/kozaka-5.x/extBlockMesh
+ wmake MeshSmoother
wmake MeshSmoother
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file SmootherBoundaryLayer.cpp
Making dependency list for source file SmootherSurface.cpp
Making dependency list for source file SmootherFeature.cpp
Making dependency list for source file SmootherEdge.cpp
Making dependency list for source file SmootherVertex.cpp
Making dependency list for source file SmootherPoint.cpp
Making dependency list for source file SmootherCell.cpp
Making dependency list for source file SmootherParameter.cpp
Making dependency list for source file SmootherControl.cpp
Making dependency list for source file SmootherBoundary.cpp
Making dependency list for source file MeshSmoother.cpp
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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-5.x/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/edgeMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/fileFormats/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/triSurface/lnInclude -I/yapboz/kozaka/OpenFOAM/kozaka-5.x/extBlockMesh/MeshSmoother -I/yapboz/kozaka/OpenFOAM/kozaka-5.x/extBlockMesh/MeshSmoother/Point -I/yapboz/kozaka/OpenFOAM/kozaka-5.x/extBlockMesh/MeshSmoother/Point/Features -I/yapboz/kozaka/OpenFOAM/kozaka-5.x/extBlockMesh/MeshSmoother/BoundaryLayer -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/MeshSmoother.o Make/linux64GccDPInt32Opt/SmootherBoundary.o Make/linux64GccDPInt32Opt/SmootherControl.o Make/linux64GccDPInt32Opt/SmootherParameter.o Make/linux64GccDPInt32Opt/SmootherCell.o Make/linux64GccDPInt32Opt/Point/SmootherPoint.o Make/linux64GccDPInt32Opt/Point/SmootherVertex.o Make/linux64GccDPInt32Opt/Point/Features/SmootherEdge.o Make/linux64GccDPInt32Opt/Point/Features/SmootherFeature.o Make/linux64GccDPInt32Opt/Point/Features/SmootherSurface.o Make/linux64GccDPInt32Opt/BoundaryLayer/SmootherBoundaryLayer.o -L/opt/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib \
-lblockMesh -lmeshTools -ledgeMesh -lfiniteVolume -ldynamicMesh -o /yapboz/kozaka/OpenFOAM/kozaka-5.x/platforms/linux64GccDPInt32Opt/lib/libMeshSmoother.so
g++: error: Make/linux64GccDPInt32Opt/MeshSmoother.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/SmootherBoundary.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/SmootherControl.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/SmootherParameter.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/SmootherCell.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/Point/SmootherPoint.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/Point/SmootherVertex.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/Point/Features/SmootherEdge.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/Point/Features/SmootherFeature.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/Point/Features/SmootherSurface.o: No such file or directory
g++: error: Make/linux64GccDPInt32Opt/BoundaryLayer/SmootherBoundaryLayer.o: No such file or directory
make: *** [/yapboz/kozaka/OpenFOAM/kozaka-5.x/platforms/linux64GccDPInt32Opt/lib/libMeshSmoother.so] Error 1
+ wmake
Making dependency list for source file extBlockMesh.cpp
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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-5.x/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/fileFormats/lnInclude -I/yapboz/kozaka/OpenFOAM/kozaka-5.x/extBlockMesh/MeshSmoother -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/extBlockMesh.o -L/opt/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib \
-lblockMesh -lmeshTools -ledgeMesh -ldynamicMesh -L/yapboz/kozaka/OpenFOAM/kozaka-5.x/platforms/linux64GccDPInt32Opt/lib -lMeshSmoother -lOpenFOAM -ldl \
-lm -o /yapboz/kozaka/OpenFOAM/kozaka-5.x/platforms/linux64GccDPInt32Opt/bin/extBlockMesh
g++: error: Make/linux64GccDPInt32Opt/extBlockMesh.o: No such file or directory
make: *** [/yapboz/kozaka/OpenFOAM/kozaka-5.x/platforms/linux64GccDPInt32Opt/bin/extBlockMesh] Error 1
+ wmake hexMeshSmoother
wmake hexMeshSmoother
Making dependency list for source file hexMeshSmoother.cpp
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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-5.x/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/fileFormats/lnInclude -I/yapboz/kozaka/OpenFOAM/kozaka-5.x/extBlockMesh/MeshSmoother -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/hexMeshSmoother.o -L/opt/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib \
-lblockMesh -lmeshTools -ledgeMesh -ldynamicMesh -L/yapboz/kozaka/OpenFOAM/kozaka-5.x/platforms/linux64GccDPInt32Opt/lib -lMeshSmoother -lOpenFOAM -ldl \
-lm -o /yapboz/kozaka/OpenFOAM/kozaka-5.x/platforms/linux64GccDPInt32Opt/bin/hexMeshSmoother
g++: error: Make/linux64GccDPInt32Opt/hexMeshSmoother.o: No such file or directory
make: *** [/yapboz/kozaka/OpenFOAM/kozaka-5.x/platforms/linux64GccDPInt32Opt/bin/hexMeshSmoother] Error 1

Last edited by excolade; August 14, 2018 at 05:05. Reason: Added compilation error output.
excolade is offline   Reply With Quote

Old   August 28, 2018, 06:59
Default Different solution - moveDynamicMesh
  #8
New Member
 
Héctor Lodoso
Join Date: Oct 2015
Location: Spain
Posts: 15
Rep Power: 11
Héctor Lodoso is on a distinguished road
Quote:
Originally Posted by snak View Post
Hi,


The blockMesh of recent OpenFOAM can project mesh onto geometry faces.

https://cfd.direct/openfoam/user-gui...#x25-1790005.3

"blockMesh can be configured to create body fitted meshes using projection of vertices, edges and/or faces onto specified geometry."

The User guide explain it. Tutorials using this functionality are included in the OpenFOAM under tutorials/mesh/blockMesh.

Hi all,

Unfortunately I have been a long time disconnected of the forum.

I already knew the project capability of blockMesh but it did not exactly behave as I needed since it generates high skewness and non-orthogonality in the first layers of cells when projecting over complex shapes (in my case complex terrains for ABL simulation).

I was finally told about another possibility through moveDynamicMesh solver which provides better adjustment. See the tutorial in tutorials/mesh/moveDynamicMesh.

Still I suspect is not sufficiently good for really really complex terrains...


PD: forget about the compilation errors of extBlockMesh, they were already solved by a colleague too.
__________________
Best regards!
Héctor Lodoso
Héctor Lodoso is offline   Reply With Quote

Old   October 3, 2019, 14:32
Default
  #9
New Member
 
Mansur Zhussupbekov
Join Date: Mar 2017
Location: Ithaca, NY, USA
Posts: 4
Rep Power: 9
Mansur is on a distinguished road
Quote:
Originally Posted by Héctor Lodoso View Post
PD: forget about the compilation errors of extBlockMesh, they were already solved by a colleague too.
Hi Héctor,
Would you be able to share how to fix the compilation error of extBlockMesh?
I am trying to use it with OF6, still getting the error.

Thank you,
Mansur
Mansur is offline   Reply With Quote

Reply

Tags
compilation, extblockmesh, filepath, headerok, openfoam 5.0


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
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 08:09
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 14:07.