|
[Sponsors] |
|
October 15, 2013, 11:11 |
Mesh for porous media
|
#1 |
New Member
LB_K kjk
Join Date: Nov 2011
Location: Moscow, Russia
Posts: 9
Rep Power: 14 |
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 - |
|
October 16, 2013, 08:54 |
|
#2 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17 |
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. |
|
October 16, 2013, 11:18 |
|
#3 |
Senior Member
|
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 |
|
February 4, 2014, 11:37 |
|
#4 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21 |
A talk with similar title was given here:
http://www.openfoamworkshop.org/6th_...m_Tuesday.html |
|
February 4, 2014, 14:22 |
|
#5 |
New Member
LB_K kjk
Join Date: Nov 2011
Location: Moscow, Russia
Posts: 9
Rep Power: 14 |
Thanks for your answers. i've solved my problem by writing a script in python.
|
|
|
|
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 |