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

[Other] Problems with mesh processing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2015, 20:36
Default Problems with mesh processing
  #1
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 10
STutexas is on a distinguished road
Hi

I am trying to convert a stacked CT images to Openfoam mesh. I use the matlab (Iso2mesh) to process the images and generate the mesh in the stacked images. Then I save it as a gmsh file. The problem that I have is that the mesh generated does not seem to have a separate boundary settings. So Openfoam (or any other software like gmsh) is not able to read my mesh file. Please let me know if there is a fix for this problem. I am open to other suggestions about mesh processing in CT images as well.

Thank you.
STutexas is offline   Reply With Quote

Old   November 16, 2015, 07:40
Default
  #2
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
Hi,

depending on the complexity of your geometry and the resulting iso surface either autoPatch (create Patches by splitting along feature edged) or a combination of topoSet/setSet (selection of a set of faces boxes etc.) together with createPatch (create a patch from the face set) might be a viable option.

Please have a look at the tutorial cases and the header files of the tools' source code for some sample dictionaries for these tools.

Cutter
cutter is offline   Reply With Quote

Old   November 17, 2015, 18:34
Default
  #3
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 10
STutexas is on a distinguished road
Hi

Thank you for the help. I will peruse the createPatch command
This is the format of my .msh file that I upload into Openfoam.

$MeshFormat
2.2 0 8
$EndMeshFormat

$PhysicalNames
1
3 1 "region_1"
$EndPhysicalNames

$Nodes

226574

..List of nodes

$EndNodes

$Elements

433391

..List of Elements

$End of Elements

When I use gmshToFoam I get the following error. Please help me understand this error.

Create time
#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::PtrList<Foam:olyPatch>:perator[](int) const at ??:?
#4 ? at ??:?
#5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6 ? at ??:?
Segmentation fault (core dumped)
saurabh@saurabh-VirtualBox:~/OpenFOAM/saurabh-2.4.0/run/tutorials/basic/import_check$
STutexas is offline   Reply With Quote

Old   November 23, 2015, 00:56
Default
  #4
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 10
STutexas is on a distinguished road
I have sorted the problem of using gmsh by modifying the code that created teh gmsh file. But I am having trouble controlling the quality of the mesh that I generated. Are there any tools in OpenFOAM that can help me improve mesh quality or would I have to do that before I upload the mesh.

Thanks again for the help.

Saurabh
STutexas 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
[Technical] Problems with mesh processing STutexas OpenFOAM Meshing & Mesh Conversion 3 November 26, 2015 01:12
[blockMesh] mesh causing problems with convergence Tetragramm OpenFOAM Meshing & Mesh Conversion 0 September 22, 2012 16:00
problems about mesh size and post processing cuteapathy FLUENT 1 July 3, 2012 16:41
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09


All times are GMT -4. The time now is 09:14.