|
[Sponsors] |
How are people getting on with current open source meshing software? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 15, 2023, 18:51 |
How are people getting on with current open source meshing software?
|
#1 |
Senior Member
andy
Join Date: May 2009
Posts: 303
Rep Power: 18 |
I have recently started a project with the intention of maximising the use of open source software. I was expecting meshing to go fairly smoothly but with the exception of initial tetrahedral meshes this has so far not been the case. Have others been able to use gmsh, salome or similar open source meshing programs without significant issues for engineering-type projects?
|
|
March 17, 2023, 17:32 |
|
#2 |
Senior Member
andy
Join Date: May 2009
Posts: 303
Rep Power: 18 |
Apologies for replying to and bumping my own post. Does anybody engaged in primarily engineering rather than academic work use open source meshing software?
|
|
March 18, 2023, 16:02 |
|
#3 |
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 530
Rep Power: 20 |
No answer is also an answer. Maybe you should ask at first, who is using OpenSource software for doing serious engineering work.
I know OF since version 1.0 and also used it sometimes for engineering projects. But usually with GridPro meshes. |
|
March 18, 2023, 17:27 |
|
#4 |
Senior Member
Join Date: Oct 2011
Posts: 242
Rep Power: 17 |
Hello,
We use freecad, gmsh, paraview on a regular basis for different projects, played a bit with salome some time ago. These open source softwares are used with our pde solver. Most of our projects involve trivial geometries but very tough physics and there these great softwares do the job very nicely. But sometimes some projects come with really complicated geometries and things get more tricky, usually heavy scripting is necessary to build the workflow. Example, we did some python scripts to make freecad deal with SRTM data and cities shapefiles (but could we have been able to do so with a closed proprietary soft ?). Other annoying things generally occur to make CAD soft communicate properly with the mesher, like surface and volume markers getting lost in the process, cleaning geometry, holes etc. Other limitation, as far as I know freecad does not have an official assembler which makes complex systems difficult to build and constrain. Gmsh gui is still a bit limited and you have to go deep in the scripting to leverage the full potential of the algorithms. Etc Nevertheless, with some efforts, you can get quite complex simulations done with these pre/post softwares and their development curve is very steep considering they are open source. In the end, time is valuable and there is always a tradeoff to be made between licence cost and soft capabilities vs engineer cost and capabilities Last edited by naffrancois; March 18, 2023 at 22:35. |
|
March 19, 2023, 05:30 |
|
#5 |
Senior Member
andy
Join Date: May 2009
Posts: 303
Rep Power: 18 |
I had picked up the impression from the chat on the web that open source meshing software was being used for a registerable amount of engineering work. Having now had a go with gmsh and salome I am checking how true that might be. The issues experienced were different but I was surprised to find them given the length of time the software has been around.
|
|
March 19, 2023, 07:40 |
|
#6 | |||||
Senior Member
andy
Join Date: May 2009
Posts: 303
Rep Power: 18 |
Quote:
Quote:
Quote:
Quote:
Quote:
I tried to report/discuss some bugs/problems in gmsh but my application for a userid to do so was rejected. That may be a clue. Having looked at how the salome software is developed it is from the other end of the spectrum to how I develop code. Doesn't make it poor software but it does make it harder to work with than I want to pick up. PS What type of mesh/elements does your software use? |
||||||
March 19, 2023, 13:12 |
|
#7 | ||||
Senior Member
Join Date: Oct 2011
Posts: 242
Rep Power: 17 |
Quote:
Quote:
Quote:
Quote:
|
|||||
March 19, 2023, 16:43 |
|
#8 | |
Senior Member
andy
Join Date: May 2009
Posts: 303
Rep Power: 18 |
Quote:
Have you had issues generating acceptable hex and prism elements with gmsh? |
||
March 19, 2023, 18:28 |
|
#9 | ||
Senior Member
Join Date: Oct 2011
Posts: 242
Rep Power: 17 |
Quote:
Quote:
|
|||
March 20, 2023, 04:44 |
|
#10 | ||
Senior Member
andy
Join Date: May 2009
Posts: 303
Rep Power: 18 |
Quote:
Quote:
|
|||
March 20, 2023, 04:59 |
|
#11 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
I once suggested to the developer of gmsh about exporting the mesh to one very simple format that one can load from a simple c or c++ (or fortran) code. So that one can convert the mesh to their solvers format easily. This i did after having huge pain in A**s from converting from su2 format (another opensource that can not describe their format) that was exported from gmsh. He told me to just open a token. Well I wanted to suggest gmsh to people who use Wildkatze but then if they themselves do not want to make life easy for people then who am i to argue with that. PS: This was needed because su2 format is not clear and every time i had to convert i had to make changes in code to load it. Their BCs (numbering of nodes in them) are just random guess since docs do not explain. PS2: I no longer support su2 files in wildkatze since in l have better things to do in life than to fix their import every time a new mesh has to be converted. |
||
March 20, 2023, 05:52 |
|
#12 |
New Member
Ivan
Join Date: Nov 2012
Location: Czech Republic
Posts: 22
Rep Power: 13 |
Could you please recommend some software for OpenFOAM ?
|
|
March 20, 2023, 06:29 |
|
#13 | |
Senior Member
andy
Join Date: May 2009
Posts: 303
Rep Power: 18 |
Quote:
The gmsh bug tracker is the first I have come across that prevents people from reporting bugs and feature suggestions but they do seem to be using it as a forum as well which is likely to be relevant. There was something about using work emails which I will no longer do for casual forums on the web given the problems it has caused me in the past. This is possibly the reason for the rejection given they would seem to have little else to work with. Again an interesting and probably informative choice should one be considering a similar open source project. Gmsh is a good project that seems to be doing well and growing. I would recommend it as a free and reasonably straightforward automatic tet mesh generator but not for other types of meshes. |
||
March 20, 2023, 07:26 |
|
#14 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Yaa it seems it is working out for them. Too bad can't recommend it for Wildkatze.
Quote:
|
||
March 20, 2023, 08:59 |
|
#15 |
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 530
Rep Power: 20 |
Is gmesh able to export OF format?
In that case you can use "foamMeshToFluent" to create a *.msh file as long as you have only regular cells or use "foamToCcm" in case you have polyhedral cells. |
|
March 20, 2023, 09:21 |
|
#16 |
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 530
Rep Power: 20 |
We would be happy if there was a free software that we could recommend. Some people buy a single core license of StarCCM+ to use it for the meshing stuff :-) At first you need a CAD-program that can read solid models and pure surface models and also partially defective solids, which then can be repaired. It is always very embarrassing when you can't even read the client's data. |
|
March 20, 2023, 11:52 |
|
#17 |
New Member
Ivan
Join Date: Nov 2012
Location: Czech Republic
Posts: 22
Rep Power: 13 |
Hello, I would like to ask you have you ever try to find opensource software for polyhedral meshes with prism. layer ?
For FMV central centered ? |
|
March 21, 2023, 03:29 |
|
#18 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
That would require one to install openfoam. If there was an easy output then i would have written a converter from it to Fluent format and created a git repository so that people can download and simply use it in their projects. (A simple C++ code). That way the mesh would be available to almost all of the finite volume users. The mesh that is exported by gmsh is for finite element solvers. That is they just list nodes for each element. While the finite volume solvers need face based mesh export ie list of faces and nodes for them. Anyway if someone want to use gmsh then i only advise them to convert the mesh themselves. (I wanted to remove this part and make life easy for user). |
||
September 29, 2023, 04:14 |
My experience with open source meshing...
|
#19 |
Member
Bob Tipton
Join Date: Apr 2020
Posts: 34
Rep Power: 6 |
I was taught that if I have nothing nice to say, I should say nothing at all.
<Long silence goes here> I am trying to do develop devices relying on passively energized vortices, large vortices. The shapes are complex as is the fluid dynamics. I had expected the engineering challenge to be in developing the shapes and I've run about 100 trade studies. I've done enough to convince myself I have to keep going. The unfortunate facts are that meshing the models is taking about 90% of my labor time and 2/3 of my CPU budget. I've been searching for 3 years. BlockMesh and SnappyHexMesh seem to be the only widely used apps. I have no experience with Salome, but based on posts here I doubt I'll invest the time. BlockMesh is a setup tool, for my use case. It lays out hexahedrals which are Cartesian grids in their coordinate systems. Parallelepiped blocks, hexahedral cylindrical sections etc. More than adequate for pipe flow and heat transfer in rectilinear models. SnappyHexMesh seems to be the most (only?) supported tool for creating meshes of arbitrary shapes. It can be made to work, but it's highly iterative, can take hours and frequently fails to converge. cfMesh is regularly reported as the best open source tool - but its SourceForge page shows it was abandoned two years ago and it won't compile with OpenFoam-11. I just tried that. No binaries are provided for download. cfMesh+ is available for purchase. That seems to be it. Right now my problem is obscure and difficult enough that I'm weighing the cost/benefits of writing a new one. Not joking. Our research grant's budget isn't large enough to afford to purchase the pro-meshers. I've spent the last 20+ years in 3D cad doing meshing, voxels, distance fields etc. So I have the algorithm figured out. The analysis itself has enough error that we will probably end up doing much of the work empirically anyway. Last edited by Bob Tipton; September 29, 2023 at 04:15. Reason: typos |
|
September 29, 2023, 04:22 |
Follow up...
|
#20 |
Member
Bob Tipton
Join Date: Apr 2020
Posts: 34
Rep Power: 6 |
I see many posts in the "you can force it to get your job done" category. Perhaps some of you have the luxury of expending hours or days setting up a run.
Some of us have 4 weeks to get 100 trade studies done or lose a project. We are looking for a mesher that actually works quickly, reliably and we don't have to hold its hand while it runs. One other issue - thin walls, fabric, sails and baffles. We're working in the area. SnappyHexMesh supports these, but the leading edge conditions combined with the mesher insufficiently sample the region resulting in early predictions of detachment and stall. Modeling a good fabric sail design accurately requires much better meshing. Worse, we have Coanda slots and ejectors which must be modeled insitu. That results in micro-meshes in and around the slots and macrmeshes on the rest of the body - or the slots detach and choke. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc | ofslcm | OpenFOAM Community Contributions | 25 | March 6, 2017 11:03 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 13:41 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |