CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Mesh for porous media

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2013, 11:11
Default Mesh for porous media
  #1
New Member
 
LB_K kjk
Join Date: Nov 2011
Location: Moscow, Russia
Posts: 9
Rep Power: 14
LB_K is on a distinguished road
Hello.

I have a binary array (1 - is void, 0 - rock). Is there any method to convert such array to foam mesh?

typical slice of pore -
LB_K is offline   Reply With Quote

Old   October 16, 2013, 08:54
Default
  #2
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
hello,

I do not know if there is a straightforward tools for this task, but you may try this method:

1) create a mesh (with blockmesh or other) of a big box (should be the size of your domain array, or bigger ?)
NB: mesh should be fine enough to get small cavity.
2) try to map your binary data to a field: take a look at how we can export data from coordinate to the mesh structure. Don't know how to do this here, but this is possible.
3) with topoSet, you can create a cellset with source as a "fieldToCell": you can extract here void and rock cellset
4) then you can keep only void cells, or both is your are going to do multiregion. Use "subSetMesh" to get your mesh from the cellSet.
5) refine your mesh if needed with refineMesh.

As you can see, the only difficult part is n°2: mapping your field data in OF.

good luck,

regards,
olivier

Last edited by olivierG; October 16, 2013 at 08:58. Reason: missing info.
olivierG is offline   Reply With Quote

Old   October 16, 2013, 11:18
Default
  #3
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

i would suggest to read
"Simulation Of Displacement Efficiency In Micromodels"
T. Clemens*, K. Tsikouris**
from "Open Source CFD International Conference 2011"
usually you should get presentations http://www.opensourcecfd.com/conference2013/
but there are dead links!! so the "Previous Events" will not work as I tried today
elvis is offline   Reply With Quote

Old   February 4, 2014, 11:37
Default
  #4
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
A talk with similar title was given here:
http://www.openfoamworkshop.org/6th_...m_Tuesday.html
jherb is offline   Reply With Quote

Old   February 4, 2014, 14:22
Default
  #5
New Member
 
LB_K kjk
Join Date: Nov 2011
Location: Moscow, Russia
Posts: 9
Rep Power: 14
LB_K is on a distinguished road
Thanks for your answers. i've solved my problem by writing a script in python.
LB_K is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 44 April 14, 2016 06:41
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 09:03
basic of mesh refinement arya CFX 4 June 19, 2007 12:21


All times are GMT -4. The time now is 01:06.