Hi Bruno
Thank you for the stub! I haven't found time in quite a while to work with hexBlocker but every contribution to the code or wiki are more than welcome! Nicolas |
Hi all;
I was trying to nenerate BlockMeshDict using hexBlocker, but I had these errors, so i din't know how to fix it.... I have to tell you this is my first time i use ubuntu an OpenFoam. so please can you help me, so I'm thankful for you all also for this great work you Nicolas :o . here is my errors: from /usr/include/c++/4.9/iostream:38, from /usr/include/vtk-5.8/vtkIOStream.h:35, from /usr/include/vtk-5.8/vtkSystemIncludes.h:40, from /usr/include/vtk-5.8/vtkIndent.h:24, from /usr/include/vtk-5.8/vtkObjectBase.h:43, from /usr/include/vtk-5.8/vtkSmartPointerBase.h:26, from /usr/include/vtk-5.8/vtkSmartPointer.h:23, from /home/bm/hexBlocker/src/HexEdge.h:29, from /home/bm/hexBlocker/src/HexEdge.cpp:26: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:54:1: note: ‘acos’ __MATHCALL (acos,, (_Mdouble_ __x)); ^ CMakeFiles/HexBlocker.dir/build.make:650: recipe for target 'CMakeFiles/HexBlocker.dir/HexEdge.cpp.o' failed make[2]: *** [CMakeFiles/HexBlocker.dir/HexEdge.cpp.o] Error 1 CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/HexBlocker.dir/all' failed make[1]: *** [CMakeFiles/HexBlocker.dir/all] Error 2 Makefile:116: recipe for target 'all' failed make: *** [all] Error 2 + '[' false == true ']' + exit 0 |
Hi Imed,
I hope you'll find running OpenFOAM usefull! It's a good code but it has a rather steep learning curve. One has to be prepared to dig around (reading mostly) in the code in order to really understand whats going on but you'll learn alot. From what I can tell you are trying to compile hexBlocker using the system VTK version 5.8: Code:
from /usr/include/vtk-5.8/vtkIOStream.h:35, Could you please provide more information on what you did? Which version of ubuntu are you running? Also make sure you've installed all packages required to compile paraview. /Nicolas |
file needed ???
hello again;
QTcreator told me this problem : libQVTK.so.5.10.0 needed so where can I download this file so I can compile HexBlocker thanks for your help |
Hi,
There is an install script included. Run that before compiling in qtcreator. It will download and compile the correct version of VTK. /Nicolas |
Quote:
I fuond the error, I think, it was not about VTK, the problem is that the compiler didn't understand this: double alpha = std::acos(dotp); // line 450 in HexEdge.cpp and double alphaMax = std::acos(dotp);//+std::asin(1); // line 452 in the same file this what made the compilation stops. thank u again for your replay |
HexBlocker Executed ...
hi again Necolas;
after fixing the 2 errors, HexBlocker works properly. thank you for your help Necolas, I'll tell you how wonderful I'll find HexBlocker thank you much more again. |
No worries. I'm glad it worked out!
If you would like to contribute on some code you are more than welcome! Nicolas |
Quote:
also would you like to tell me how can I use HexBlocker, especialy for generating BlockMeshDict file please. |
|
Quote:
Thank you so very much Nicolase, you did a great job... |
Hi Nicolas,
i'm a Chemical Engineer in Erlangen (Germany) learning and working with OpenFoam for 3 Years. In the past , i mesh my geometries mostly with ANSYS-Mesh and fluent3DMeshToFoam. You did a great job with hexblocker. I tried to load the blockmeshDict from various Openfoam 2.4.x tutorials. The mixervessel2d blockMeshDict (.e.g. tutorials/incompressible/simpleFoam/mixerVessel2D) could not loaded correctly. I assume, the reason is a blockMeshDict format from a old OpenFoam Version 1.7. for the blocks there is a zone-name (rotor) in the block-definition : Code:
blocks The zone info after the vertices in the hex definition isn't described in the actual blockMesh the Online User http://cfd.direct/openfoam/user-guide/blockmesh/Guide. The patches info can easily replaced with a boundary section, but the zone name is a prerequisite for running simpleFoam. May be i try to change your code and hopefully i succeed. This is only for your Information, no request for correction. I have a question: Did you start rewriting the code in pyqt and vtk, as mentioned earlier (see quote below) ? I also think about a python based hex-blocker . Best Regards Michael Quote:
|
Hi Michael,
Thanks for the info. I've just bought a house so my spare time is a bit limited. Well I've got a bit of spare time but it all goes to unboxing and setting up shelves. But I'll try to fix the region issue. Though it won't be any time soon. If you would like to contribute then check out the function getBlocks in hexReader.cpp, line 193. Around line 244 one could probalby check if there is a region entry in cellNumbersList. The list should have four entries one word and three integers. Let me know if you do change any thing and I'll be happy to merge it. I haven't yet started any work with pyqt. The only thing I did was to create a QtWindow with a vtk window inside. If you would like to start work I would be happy to have a talk about implementation. For instance I keep thinking one could skip qt entirely and only use the 3D widgets of VTK. Best Regards Nicolas |
Hi, what is the current status of this tool?
|
Hi,
These days I'm not active with hexBlocker. Mostly because I have less spare time these days but also because I mostly use other mesh generators. I only use hexBlocker if I need to modify a tutorial and for that it's in my eyes good enough. But I gladly accept contributions and will be willing to help. Best regards Nicolas |
Hi All
I have installed hexBlocker without any errors. But how can I turn it on? I do not have hexBlocker command ?? |
Hi Pblasiak,
In the folder where you have hexblocker you should have a folder called bin. In there you have a executable called HexBlocker. If you wan't to start it from another location provide the full path to the executable, add the bin folder to the path or create an alias in your bashrc. I hope that helped! Best Regards Nicolas |
Quote:
Thank's a lot. It works :) |
HexBlocker installation on Ubuntu 18.04
Hi, can you, please, help me with installation:
I did everything exactly as in wiki: Code:
This is what you need to compile and install hexBlocker on Ubunt 12.04 And my effort ended with this list of errors: Code:
ivan@ivan-VirtualBox:~/OpenFOAM/ivan-5.0/run/hexBlocker$ ./install.sh |
Quote:
I am also having this problem, did you solve it? |
All times are GMT -4. The time now is 03:47. |