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

Mesh for porous media

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

Reply
 
LinkBack Thread Tools 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: 5
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: 235
Rep Power: 9
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 n2: 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: 577
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
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, 12:37
Default
  #4
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 289
Rep Power: 9
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, 15:22
Default
  #5
New Member
 
LB_K kjk
Join Date: Nov 2011
Location: Moscow, Russia
Posts: 9
Rep Power: 5
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 39 June 5, 2013 19:02
Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Native Meshers: snappyHexMesh and Others 8 September 13, 2012 09:28
Layers:problem with curvature giulio.topazio OpenFOAM Native Meshers: snappyHexMesh and Others 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 23:09.