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

[Other] vtk mesh or Abaqus mesh to OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2015, 02:03
Default
  #21
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 10
STutexas is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Hi Bertrand,

Unfortunately I have not come across any other software to convert vtk/abaqus to OpenFOAM.
You could write a program to convert them but this may be a lot of effort.

Another possible option is to use a free meshing program that tet meshes your geometry, then import to OpenFOAM and then convert this geometry into polyhedral using polyDualMesh.

Philip
Hi Philip

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
STutexas is offline   Reply With Quote

Old   November 16, 2015, 04:39
Default
  #22
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by STutexas View Post
Hi Philip

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
Hi Saurabh,

Currently the solution we use is:
  • generate castellated surface STL from CT images using 3Dslicer;
  • smooth STL using volume preserving smoothing in meshlab;
  • open smoothed STL in ANSYS ICEM CFD meshing program: cut surface geometry into desired boundary patches;
  • create volume mesh using the STL and cfMesh OR ANSYS ICEM CFD.

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
bigphil is offline   Reply With Quote

Old   November 16, 2015, 13:42
Default Information about meshing.
  #23
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 10
STutexas is on a distinguished road
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
STutexas is offline   Reply With Quote

Old   November 16, 2015, 15:44
Default
  #24
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by STutexas View Post
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
Hi Saurabh,

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
bigphil is offline   Reply With Quote

Old   November 16, 2015, 21:59
Default
  #25
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 10
STutexas is on a distinguished road
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
STutexas is offline   Reply With Quote

Old   November 17, 2015, 09:14
Default
  #26
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by STutexas View Post
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
Hi Saurabh,

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
bigphil is offline   Reply With Quote

Old   November 20, 2015, 22:35
Default Improving mesh quality.
  #27
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 10
STutexas is on a distinguished road
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 ??:?
STutexas is offline   Reply With Quote

Old   November 23, 2015, 17:31
Default
  #28
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by STutexas View Post
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 ??:?
Hi Saurabh,

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
bigphil 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
[Salome] Script for converting a mesh from Salome-Platform to OpenFOAM nsf OpenFOAM Meshing & Mesh Conversion 86 February 8, 2023 10:30
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
[Commercial meshers] OpenFoam Mesh to Fluent Mesh in parallel case DominicTNC OpenFOAM Meshing & Mesh Conversion 3 November 22, 2017 09:19
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 07:18
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 00:53.