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 9, 2006, 08:32
Default Well, I have written the code
  #41
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Well, I have written the code which reads the Star couples and creates the proper cells. This is a part of the starToFoam converter and everything should just work.

If you really want to do us a favour, you can dump the faces raw because I'm sure Harpoon needs to mess about with the native format to create Star couples in the first place. The easies mesh format I can imagine would be:
1) list of vertices
2) list of faces in terms of vertices; I don't care if they are polygons
3) there's options, whichever is easier for you:
- list of cells in terms of faces, i.e. all faces that belong to a cell, or
- "left" and "right" cell for each faces (for boundary ones, only one is required).

If you can provide this info, I cna take it from there.

Regards,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   March 21, 2006, 08:49
Default The Fluent export would be the
  #42
New Member
 
Richard Bardwell
Join Date: Mar 2009
Posts: 9
Rep Power: 17
sharc is on a distinguished road
The Fluent export would be the most useful.
It is probably quicker to finish off the FOAM export I started. Can I send you some files to test? If so, what email address should I use?
sharc is offline   Reply With Quote

Old   March 21, 2006, 08:54
Default No probs - if needed, I will a
  #43
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
No probs - if needed, I will add the stuff into the Fluent export as well. The best E-mail is h dot jasak at wikki dot co dot uk.

Thanks,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   March 23, 2006, 11:12
Default Thanks to Hrvoje checking our
  #44
New Member
 
Richard Bardwell
Join Date: Mar 2009
Posts: 9
Rep Power: 17
sharc is on a distinguished road
Thanks to Hrvoje checking our meshes, the next release of Harpoon will have a OpenFoam direct export. This will be available in the next couple of weeks to download from www.sharc.co.uk
sharc is offline   Reply With Quote

Old   March 28, 2006, 08:49
Default Hi, Richard, Could you ple
  #45
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, Richard,

Could you please post here when the new release of Harpoon with OpenFOAM export is available? I am interested in trying it. Thanks!

Pei
hsieh is offline   Reply With Quote

Old   March 30, 2006, 03:40
Default Pei Will do. I have run som
  #46
New Member
 
Richard Bardwell
Join Date: Mar 2009
Posts: 9
Rep Power: 17
sharc is on a distinguished road
Pei

Will do. I have run some tests on it and it looks ok but would need more testing. Version will not be ready until end of next week at the earliest

Richard
sharc is offline   Reply With Quote

Old   April 12, 2006, 04:49
Default All Version v2.0(e) is now
  #47
New Member
 
Richard Bardwell
Join Date: Mar 2009
Posts: 9
Rep Power: 17
sharc is on a distinguished road
All

Version v2.0(e) is now available for download. Run with the command line option -foam to allow OpenFoam export

Richard
sharc is offline   Reply With Quote

Old   April 13, 2006, 17:08
Default Hi, Richard, Can you explai
  #48
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, Richard,

Can you explain how to export OpenFOAM using command line option? I am using Windows version and I cannot find a window for entering commands.
Thanks!

Pei
hsieh is offline   Reply With Quote

Old   April 13, 2006, 19:10
Default Just start the executable: "ha
  #49
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
Just start the executable: "harpoon -foam"
stefanke is offline   Reply With Quote

Old   April 20, 2006, 22:47
Default Hi, Richard, I encountered
  #50
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, Richard,

I encountered a couple of problems when trying out Harpoon. The most serious one is that, after exporting the mesh to OpenFOAM format, these files (boundary/cells/points/faces) are not usable. When I tried to open the files, I got "this file is binary...". This occurred to both the 32 bit windows version and the 64 bit Linux version.

I am wondering how this can be resolved.

Pei
hsieh is offline   Reply With Quote

Old   April 21, 2006, 04:20
Default Harpoon is not ready for OpenF
  #51
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
Harpoon is not ready for OpenFoam 1.3. But with OpenFoam 1.2 it should work!
stefanke is offline   Reply With Quote

Old   April 21, 2006, 06:58
Default Whats wrong with binary files?
  #52
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Whats wrong with binary files? What does checkMesh say?

The OF 1.3 mesh constructors are backward compatible with 1.2 formats so there should be no issue.
eugene is offline   Reply With Quote

Old   April 21, 2006, 07:08
Default I have tested the new Harpoon
  #53
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
I have tested the new Harpoon release and there was always the same problem with OF 1.3 (same failure as described above). With OF 1.2 all works fine.

So it has definitly something to do with the version of OF and/or the way how the meshes are created in Harpoon so OF is able to read them.
stefanke is offline   Reply With Quote

Old   April 21, 2006, 11:42
Default Could you mail me a small exam
  #54
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Could you mail me a small example mesh from harpoon please?
eugene is offline   Reply With Quote

Old   May 17, 2006, 09:27
Default I have found out why the harpo
  #55
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
I have found out why the harpoon exported mesh does not work under OF1.3.

The boundary file has been written in DOS format and the handling of the DOS characters have changed between 1.2 and 1.3.

To fix the problem execute the following command:
dos2unix -n[list=1] <newboundaryfile>

This works on the test case I received. Could someone please confirm the fix.
eugene is offline   Reply With Quote

Old   June 19, 2006, 09:12
Default The problem is probably that y
  #56
New Member
 
Richard Bardwell
Join Date: Mar 2009
Posts: 9
Rep Power: 17
sharc is on a distinguished road
The problem is probably that you are using the single precision version. Harpoon exports the data in double precision
sharc is offline   Reply With Quote

Old   June 19, 2006, 09:20
Default Use the ASCII export. Should b
  #57
New Member
 
Richard Bardwell
Join Date: Mar 2009
Posts: 9
Rep Power: 17
sharc is on a distinguished road
Use the ASCII export. Should be fine
sharc is offline   Reply With Quote

Old   June 19, 2006, 10:03
Default the harpoon export works fine
  #58
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
the harpoon export works fine with OF1.2 and OF1.3 but as Eugene has already mentioned one have to convert the boundary file (ASCII) from the dos to unix format!

I think the following 2 options were very useful in order to use harpoon with OpenFOAM:

- boundary file in unix format (instead of dos)
- save the exported files as boundary, cells, faces, points and not as xxx.boundary etc.
stefanke is offline   Reply With Quote

Old   March 25, 2008, 19:38
Default I am trying to use Harpoon as
  #59
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
I am trying to use Harpoon as a mesher for OpenFOAM... i am now using OF 1.4.1 under Ubuntu 7.10 32 bits...

Anyone has experience running Harpoon unde Linux x32 Kernel 2.6.x?

I can start the gui... and i can mesh geometries, but once i try to export in any format, OpenFoam, Fluent, CFX5, shell states that it cannot get Global nears... and no export file is created...

Any hint on what might be happening?

Thanks for your time

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


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