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

[Commercial meshers] Harpoon to Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2005, 15:59
Default Harpoon to Foam
  #1
Manuel Garcia (Garcia)
Guest
 
Posts: n/a
Hi,

we have been testing Harpoon mesh generator to use it with openfoam. It produces a variaty of formats included fluent, gambit, ansys/ideas, etc. but so far we haven't been able to make the conversion. The main problem seems to be that Harpoon producess the binary version of the formats and OpenFoam converters use the Ascii version. Although gambit is ascii but gambitToFoam dies with a segmentation fault. HAs anyone have been able to convert meshes from Harpoon?

On the other hand I read in the forum that someone wrote a translator from netgen to openFoam. Is possible to have access to it?

thanks

manuel
  Reply With Quote

Old   March 5, 2005, 22:11
Default Hi Manuel, Sorry to say th
  #2
Ali (Ali)
Guest
 
Posts: n/a
Hi Manuel,

Sorry to say this here, but did you manage to build openFOAM from source for SGI IRIX. If so, a number of members (including me) would appreciate if we can access those binary files or instructions on how to build it for SGI IRIX.
  Reply With Quote

Old   March 6, 2005, 06:18
Default Hi Manuel, I can send you
  #3
Mattijs Janssens (Mattijs)
Guest
 
Posts: n/a
Hi Manuel,

I can send you the netgenNeutralToFoam converter. Just contact me directly at opencfd.co.uk as m.janssens.

Did you have a look at that segmentation fault in a debugger? Can you tell where it goes wrong? Do you have a simple testfile?

Mattijs
  Reply With Quote

Old   March 6, 2005, 11:35
Default My understanding is that Harp
  #4
Henry Weller (Henry)
Guest
 
Posts: n/a
My understanding is that Harpoon is a cut-hex mesh generator which can produce arbitrary shaped cells. However, Gambit/Fluent cannot handle arbitrary shaped cells so what happens to the cut cells on the boundary when they are converted into Gambit format? Are they split into prisms and tets? If so that isn't ideal and OpenFOAM can handle the native polyhedra. What formats can Harpoon export?
  Reply With Quote

Old   March 6, 2005, 19:40
Default 1) Yes, I did finish compiling
  #5
Manuel Garcia (Garcia)
Guest
 
Posts: n/a
1) Yes, I did finish compiling Openfoam on the SGI. That was like a two months task. I wonder how much time took to write the whole thing. I should do a cleaner build from zero to check everything is ok. I was procrastinating this one because I was so anxious of using it after all this time. What shall I do to provide the binary?

Also I did a small test of the parallel performance.
I used icoFoam on a cylinder geometry.
http://www.cs.ualberta.ca/~mgarcia/O...der-vortex.png
The grid has 88000 cells. The computer was a SGI Onix with 24 processors. Openfoam was compiled in 32 bit.
http://www.cs.ualberta.ca/~mgarcia/O...rallelPerf.png
This test is not by any way definitive. It was made to have an idea of OpenFoam parallel performance. If anyone knows about a good test? I can go up to 256 processors in another SGI machine.


2) Thevinitial reason of the thread. I put the gambit file produced by harpoon in
http://www.cs.ualberta.ca/~mgarcia/O...phin.gambit.gz
It is a 782 kBytes file. I tried to get a smaller one but the person who provide it to me wasn't here. I didn't go far with the debugger:


Exec : /compsci/foisy2/cshome/mgarcia/OpenFOAM/OpenFOAM-1.0.2/applications/bin/linuxOpt/gambitToFoam . dolphin Dolphin.gambit
Date : Mar 06 2005
Time : 14:10:27
Host : usona3
PID : 18421
Root : /compsci/foisy2/cshome/mgarcia/OpenFOAM/mgarcia-1.0.2/run/tutorials/icoFoam
Case : wing
Nprocs : 1
Create database


Written by Harpoon v1.4.0(a)Title:
Written by Harpoon v version 1.4.0
(a)
Date Time
NUMNP NELEM NGRPS NBSETS NDCFD NDFVL
30683 32764 1 0 3 3
Reading nodal coordinates

Program received signal SIGSEGV, Segmentation fault.
0x0804d23b in yyFlexLexer::yylex() ()
(gdb) where
#0 0x0804d23b in yyFlexLexer::yylex() ()
#1 0x0804e02d in main ()
#2 0x4097a62d in __libc_start_main () from /lib/libc.so.6
(gdb)
  Reply With Quote

Old   March 6, 2005, 19:47
Default Manuel, if you have the binar
  #6
Ali (Ali)
Guest
 
Posts: n/a
Manuel, if you have the binaries I think Mattijs can put up the binaries into the website.

thanks in advance to you and Mattijs.
  Reply With Quote

Old   March 7, 2005, 04:08
Default Hi Manuel, I get a permissi
  #7
Mattijs Janssens (Mattijs)
Guest
 
Posts: n/a
Hi Manuel,

I get a permission denied on all the files in
http://www.cs.ualberta.ca/~mgarcia/OpenFoam/

Mattijs
  Reply With Quote

Old   March 7, 2005, 07:39
Default Harpoon does not create polyh
  #8
Joern Beilke (Beilke)
Guest
 
Posts: n/a
Harpoon does not create polyhedral cells but only hex, tet, pyramd and prism cells, either with or without hanging nodes (there is an option to choose) . As far as I know they do not save the mesh in an own format, but export it to the different formats (star, fluent , cfx, ...). So it is probably the best way to ask the developers of Harpoon for the implementation of the FOAM export.
  Reply With Quote

Old   March 7, 2005, 07:43
Default Given that OpenFOAM supports
  #9
Henry Weller (Henry)
Guest
 
Posts: n/a
Given that OpenFOAM supports "hanging-nodes" in the form of correctly connected polyhedra it is probably best to choose this option in Harpoon. However, does Gambit support "hanging-nodes"? If not it would probably be better to use a file-format which does.

I agree it would probbably be best if the developers of Harpoon implement an OpenFOAM export option.
  Reply With Quote

Old   March 7, 2005, 11:07
Default I just fixed the permision of
  #10
Manuel Garcia (Garcia)
Guest
 
Posts: n/a
I just fixed the permision of the files. They can now be reached at http://www.cs.ualberta.ca/~mgarcia/OpenFoam/

The format files that harpoon support are:
Ensight, start-CD, CobaltAVVS STL, NAstran, Fluent, CFD++, Gambit, LS-Dyna, Abacus.. however most of them in the binary version. They do mention in the web page support for the FOAM format. However, when we got the evaluation copy, they say that it will be avalilable in future releases

manuel
  Reply With Quote

Old   March 7, 2005, 11:45
Default Hi Manuel, we managed to g
  #11
Mattijs Janssens (Mattijs)
Guest
 
Posts: n/a
Hi Manuel,

we managed to get a bit further with converting your gambit file. The problem is that the header written by Harpoon is not correct or at least not the same as that written by Gambit.

We changed on line 6 the NDCFD to NDFCD and then we get a message about some pointer dereference since there are 0 patches (NBSETS) in your file. Can you try putting all outside faces in patches in Harpoon before writing?

Mattijs
  Reply With Quote

Old   March 7, 2005, 12:53
Default Hi, Manuel, I am also in t
  #12
Pei-Ying Hsieh (Hsieh)
Guest
 
Posts: n/a
Hi, Manuel,

I am also in the same boat as you. I got an evaluation verion last Friday and ran into the same problem you have.

Also, I built a simple part (a cube) using SoildWorks. Name all 6 faces indivisually, such as inlet, outlet, front, back, right, left. And saved it as stl format. It looked like Harpoon did not import the face information. After generating the mesh, I still have not face information for setting up boundary conditions.

Also, Harpoon told me the same thing - it is not clear when they will have the direct export for OpenFOAM.

I like netgen a lot, but, my concern with netgen is that it only meshes with tet elements and not enough control over cell density. I will have to keep looking for a decent mesher with reasonable price.

Please let me know if you solve this Harpoon problem. Thanks!

Pei
  Reply With Quote

Old   March 7, 2005, 16:20
Default Hi Pei, after loading your
  #13
Joern Beilke (Beilke)
Guest
 
Posts: n/a
Hi Pei,

after loading your stl file into Harpoon do a Surface->Separate->by Region to get the surface splitted and then regroup and rename the surfaces as you want.

Do not expect too much from using harpoon. It is fine for some geometries and for a quick shot. But I would not consider using it for serious scientific work.

Jörn
  Reply With Quote

Old   March 7, 2005, 20:48
Default thanks Mattijs for the convers
  #14
Manuel Garcia (Garcia)
Guest
 
Posts: n/a
thanks Mattijs for the conversion program. These are the steps I followed:

0. export the file from netgen as neutral file

1. create a new case with foamX: Case Browser -> right click -> Create Case


2. Convert the mesh file to openFoam:

$ netgenNeutralToFoam


For some reason it creates the file in a subdirectory: case/0.005

3. copy the files from case/0.005/polyMesh to case/constant/polyMesh

4. Edit the boundary file and set proper names. That is, change patch by
wall, inlet, etc

5. In FoamX: Edit the field dictionary and save.


I was able to run icoFoam in a very simple case (fichera.geo from the netgen tutorial). However, when I visualize the mesh with paraFoam I notice that there were some elements missing. Although the number of elements is the same as in the neutral file... I put the files at http://www.cs.ualberta.ca/~mgarcia/OpenFoam/fichera.tgz
It may be a netgen related problem.

I also tried to mesh several stl files in netgen but it dies... I wonder how usefull netgen is with stl files...

I will try again with harpoon tonight...

thanks

manuel
  Reply With Quote

Old   March 8, 2005, 05:36
Default Hi Manuel, the problem was
  #15
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Hi Manuel,

the problem was in the converter. Some boundary faces were inside out. I think I fixed the problem in the converter - at least it works for your case.

My experience with netgen is that it requires a perfect stl, so fully closed (all edges connected to two triangles), not self intersecting. Usually if surfaceCheck does not complain it will mesh ok if your mesh resolution is fine enough.

Mattijs
mattijs is offline   Reply With Quote

Old   March 8, 2005, 05:43
Default Here is the new netgenNeutralT
  #16
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Here is the new netgenNeutralToFoam.

netgenNeutralToFoam.tgz
mattijs is offline   Reply With Quote

Old   March 8, 2005, 09:28
Default Hi, manuel, I tried meshing
  #17
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, manuel,

I tried meshing a medium complex geometry (step format) using netgen without any problem. For the same problem with stl format that failed using netgen, can you convert it into step and try netgen again?

pei
hsieh is offline   Reply With Quote

Old   March 8, 2005, 09:34
Default Hi Manuel, netgen seems to
  #18
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Hi Manuel,

netgen seems to need perfect surfaces as input: non self-intersecting, every edge connected to two faces. Also you need enough mesh resolution compared to the surface features.

Don't know how good or bad you surface files were. Does surfaceCheck throw up any problem with them?

Mattijs
mattijs is offline   Reply With Quote

Old   March 9, 2005, 11:22
Default Hi, Mattijss The netgenNeut
  #19
New Member
 
Manuel Garcia
Join Date: Mar 2009
Posts: 9
Rep Power: 17
garcia is on a distinguished road
Hi, Mattijss

The netgenNeutralToFoam converter seems to be working fine now.

Is there a way to tell the converter to put the files at the constant/polyMesh directory?

manuel
garcia is offline   Reply With Quote

Old   March 9, 2005, 11:26
Default Hi Manuel, glad to hear.
  #20
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Hi Manuel,

glad to hear.

The 1.1 version should put them in the constant directory.

Mattijs
mattijs is offline   Reply With Quote

Reply


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
error with reactingFoam BakedAlmonds OpenFOAM Running, Solving & CFD 4 June 22, 2016 02:21
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


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