CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...

Harpoon to Foam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 5, 2005, 16:59
Default Hi, we have been testing H
  #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, 23: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, 07: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, 12: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, 20: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, 20: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, 05: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, 08: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, 08: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, 12: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, 12: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, 13: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, 17: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, 21: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, 06:36
Default Hi Manuel, the problem was
  #15
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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, 06:43
Default Here is the new netgenNeutralT
  #16
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Here is the new netgenNeutralToFoam.

netgenNeutralToFoam.tgz
mattijs is offline   Reply With Quote

Old   March 8, 2005, 10:28
Default Hi, manuel, I tried meshing
  #17
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
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, 10:34
Default Hi Manuel, netgen seems to
  #18
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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, 12:22
Default Hi, Mattijss The netgenNeut
  #19
New Member
 
Manuel Garcia
Join Date: Mar 2009
Posts: 9
Rep Power: 8
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, 12:26
Default Hi Manuel, glad to hear.
  #20
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Did you try Harpoon? HSeldon Main CFD Forum 3 November 27, 2006 05:50
Harpoon CFD-Junior Main CFD Forum 0 June 23, 2005 07:40
Harpoon/CFX5 Oko CFX 8 May 19, 2005 18:53
Harpoon CFD-junior Main CFD Forum 0 May 4, 2005 09:21


All times are GMT -4. The time now is 22:36.