CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Meshing & Mesh Conversion (
-   -   LBIEMesher Fast and with potential (

bastil December 31, 2007 15:12

Hi CFD-guys, I found the fo
Hi CFD-guys,

I found the following mesher:


I think it has great potential, expecially for hex-meshes. It is extremely quick, near real-time. However I could not test it for FOAM, converters for in- and export are missing (beyond some other things). In my eyes it has definitely potential for complex geometries. There seems to be no need for closes surfaces :-).
I am looking forward for you commends and tests. I think this tool is a great basis for developing an automatic mesher for FOAM.


hsieh December 31, 2007 18:57

Hi, BastiL, Thanks for the
Hi, BastiL,

Thanks for the link!

This mesher looked pretty interesting. I will definitely check it out.


bastil January 1, 2008 06:34

Hi all, I took a closer loo
Hi all,

I took a closer look at the tool now. I think it is worth trying. However, conversion seems to be difficult. I have triangulated surface in stl-Format and want to convert it to rawiv. Conversation from stl to raw could be done with blender, but I am not sure if this is the same raw-Format. Even more challenging is adding a binary header with the starting octree information in big-endian binary format. I have never done something like this before and I have no real idea how to write a tool for this :-(.


mattijs January 2, 2008 14:20

I've cobbled together a conver
I've cobbled together a converter (for 1.4.1). LBIEMeshToFoam.tgz

The LBIE gui is quite flaky but you can convert the supplied 'rawiv' dataset. Load it. Select 'quad' at the bottom. Select 'hex'. Press 'Save' (not 'Save as'). You should now have saved the hex mesh. Run the LBIEMeshToFoam converter as usual on this file.

- There is no boundary information in the mesh format.
- The hex mesh have some flat cells in them, don't know about the tet one.

bastil January 2, 2008 18:28

Great work Mattijs, thanks. I
Great work Mattijs, thanks. I will try this out. I also realised that some hexas might be problematic. HOwever, I think this can be solved and I still think the tool has potential. I will care for an surface import to LBIE as soon as possible.


bastil January 2, 2008 18:50

I tried to compile the convert
I tried to compile the converter but failed. wmake fails, maybe this is because I use 64 Bit version?
char> >& std::basic_ostream<char,> >::_M_insert<long>(long)@GLIBCXX_3.4.9'
/home/basti/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/ undefined reference to `std::basic_ostream<char,> >& std::basic_ostream<char,> >::_M_insert<unsigned>(unsigned long)@GLIBCXX_3.4.9'
/home/basti/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/ undefined reference to `std::basic_ostream<char,> >& std::basic_ostream<char,> >::_M_insert<long>(long long)@GLIBCXX_3.4.9'
collect2: ld gab 1 als Ende-Status zurück
make: *** [/home/basti/OpenFOAM/basti-1.4.1/applications/bin/linux64GccDPOpt/LBIEMeshToFoa m] Fehler 1

hsieh January 3, 2008 16:19

Hi, BastiL, I downloaded bo
Hi, BastiL,

I downloaded both the windows version and the linux version (32 bit). I was able to open the sample data (head.rawiv). Select Tet and/or Hex. but, when I tried to use the algorithm under Qual (I have tried all 4), I got "Application Errors", and then, the program quit. Did the same think occur to you?

Also, when I tried to download the souce codes, I was directed to contact the author. Were you able to download the source codes?


bastil January 4, 2008 03:33

Hi, same for me Qual dues n

same for me Qual dues not work. However I could load source and will try to compile from source. I do not know how where I found source....


bastil January 4, 2008 19:11

I took a closer look into the
I took a closer look into the compilation problems I have with Matthijs LBIEMeshToFoam converter. I think error message tells me that linking against fails.
I do not know what to do. However, the Make/options file from Matthijs is empty, is this correct?

bastil January 5, 2008 08:22

I could compile LBIEMeshToFoam
I could compile LBIEMeshToFoam now. My compiler setting was wrong, wmake tried to use the system compiler. I will test it, stay tuned!


bastil January 5, 2008 17:02

Hi, I have some problems no

I have some problems now in checking the mesh from LBIE. Checkmesh created some sets which I want to look on. Creating subset with subsetmesh fails (witrh every mesh I try). Maybe I do something wrong?:

subsetMesh . Tetra_1 Tetra_1/constant/polyMesh/sets/nonOrthoFaces
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: |
| \/ M anipulation | |

Exec : subsetMesh . Tetra_1 Tetra_1/constant/polyMesh/sets/nonOrthoFaces
Date : Jan 05 2008
Time : 21:53:05
Host : localhost
PID : 14431
Root : /home/basti/OpenFOAM/basti-1.4.1/LBIE
Case : Tetra_1
Nprocs : 1
Create time

Create mesh for time = 0

word::stripInvalid() called for string Tetra_1constantpolyMeshsetsnonOrthoFaces

nbaranco August 11, 2009 12:06

Hi, I'm also trying to use the LBIE Mesher, but I'm relatively new to the field.

My question is, I guess, more about a rawiv file in general. How can the LBIE Mesher get enough data from a raw file to determine the borders between segments, and how can I take segmented data, and stuff it into a raw file?

Sorry for such a simple-minded question, and thanks in advance to anyone who can help.

All times are GMT -4. The time now is 16:18.