|
[Sponsors] |
November 16, 2015, 03:03 |
|
#21 | |
Member
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11 |
Quote:
I was reading this post and I have a similar problem of converting CT images to OpenFoam meshes. I can generate a gmsh file but I cannot define patches for the boundaries. Please let me know if you finally found any solution to this problem. Thank you. Saurabh |
||
November 16, 2015, 05:39 |
|
#22 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
Quote:
Currently the solution we use is:
As you can see we are trying to use open-source software but we still need ANSYS ICEM CFD to cut the STL into patches. Philip |
||
November 16, 2015, 14:42 |
Information about meshing.
|
#23 |
Member
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11 |
Hi Philip
Thank you for replying so quickly and for your advice. Could you let me know how big is the mesh file that you use or if you have ever had an issue with memory for any of the mesh files. Thanks again for the help. Saurabh |
|
November 16, 2015, 16:44 |
|
#24 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
Quote:
We have generated final "OpenFOAM" meshes of about 5 million cells with no problem, where the STL would be less than 100 MB; so I suppose we have not tried very big problems yet. Depending on the final mesh density you desire, it can also be convenient to "decimate" (i.e. reduce the number of triangles) of the STL using meshlab too, after smoothing; but you should make sure that the STL resolution is still greater than the volume mesh resolution that you want. Philip |
||
November 16, 2015, 22:59 |
|
#25 |
Member
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11 |
Hi Philip
Thanks again for replying so quickly and for all your advice. It was very insightful. I was wondering if you ever looked into the use of Iso2mesh toolbox in Matlab and if you used it for meshing of 3d CT images. Thanks again for the advice. Saurabh |
|
November 17, 2015, 10:14 |
|
#26 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
Quote:
No I have not tried the Iso2mesh toolbox, though it looks interesting from a quick look at the website. As much as we would like it to be, our current procedure still requires quite a bit of manual effort and is potentially subjective. I might have a look at Iso2mesh in the future. Best, Philip |
||
November 20, 2015, 23:35 |
Improving mesh quality.
|
#27 |
Member
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11 |
Hi Philip
I have been able to create a pore scale mesh using gmsh and Iso2mesh software. The mesh quality is not very good and I still can't run simulations but the process is still very simple and repeatable if you have CT image slices. Can you advice me on how to improve the mesh. Can OpenFOAM do it for me or do I have to go back to the originial image and improve my mesh. This is the error that I get when I run simulation. Thanks again for the help. #0 Foam::error:rintStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::fv::gaussGrad<double>::gradf(Foam::Geometric Field<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::word const&) at ??:? #4 Foam::fv::gaussGrad<double>::calcGrad(Foam::Geomet ricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) const at ??:? #5 Foam::fv::gradScheme<double>::grad(Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) const at ??:? |
|
November 23, 2015, 18:31 |
|
#28 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
Quote:
In my experience, OpenFOAM does not have tools to improve a mesh (though I think one of the foam extend dynamic tet meshers can be used to smooth a tetrahedral mesh). The best option is probably to create a better mesh in the software that created it. Alternatively, depending on the solver you are using, a more appropriate choice of schemes and boundary conditions might give you a result (search around the forum for similar problems). Philip |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Salome] Script for converting a mesh from Salome-Platform to OpenFOAM | nsf | OpenFOAM Meshing & Mesh Conversion | 86 | February 8, 2023 11:30 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
[Commercial meshers] OpenFoam Mesh to Fluent Mesh in parallel case | DominicTNC | OpenFOAM Meshing & Mesh Conversion | 3 | November 22, 2017 10:19 |
OpenFOAM Foundation releases OpenFOAM 2.2.2 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | October 14, 2013 08:18 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |